From d06562175e93bdebd94cfff8c9651a7fab728452 Mon Sep 17 00:00:00 2001 From: Ryan Hunt Date: Wed, 15 Feb 2017 14:41:02 -0500 Subject: [PATCH] Bug 1339907 - Make sure WebRender windows record into different files r=jrmuizel --HG-- extra : amend_source : cfd58276cde8f518b72a292bf509767627c2be03 --- gfx/webrender_bindings/src/bindings.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/webrender_bindings/src/bindings.rs b/gfx/webrender_bindings/src/bindings.rs index 04e478fde471..98c124b8670b 100644 --- a/gfx/webrender_bindings/src/bindings.rs +++ b/gfx/webrender_bindings/src/bindings.rs @@ -170,7 +170,8 @@ pub extern fn wr_window_new(window_id: WrWindowId, assert!(unsafe { is_in_render_thread() }); let recorder: Option> = if ENABLE_RECORDING { - Some(Box::new(BinaryRecorder::new(&PathBuf::from("wr-record.bin")))) + let name = format!("wr-record-{}.bin", window_id.0); + Some(Box::new(BinaryRecorder::new(&PathBuf::from(name)))) } else { None };