Bug 1339907 - Make sure WebRender windows record into different files r=jrmuizel
authorRyan Hunt <rhunt@eqrion.net>
Wed, 15 Feb 2017 14:41:02 -0500
changeset 373002 e53e00cd7900394faa41a28f28be9ea1d0ba1b99
parent 373001 605149bb964f58a17853e8c2ee08cee161afb363
child 373003 d2b4aa8dde09b73858b7cac79e54868d4ef8b3aa
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1339907
milestone54.0a1
Bug 1339907 - Make sure WebRender windows record into different files r=jrmuizel
gfx/webrender_bindings/src/bindings.rs
--- a/gfx/webrender_bindings/src/bindings.rs
+++ b/gfx/webrender_bindings/src/bindings.rs
@@ -165,17 +165,18 @@ pub unsafe extern fn wr_api_set_root_dis
 #[no_mangle]
 pub extern fn wr_window_new(window_id: WrWindowId,
                             enable_profiler: bool,
                             out_api: &mut *mut RenderApi,
                             out_renderer: &mut *mut Renderer) -> bool {
     assert!(unsafe { is_in_render_thread() });
 
     let recorder: Option<Box<ApiRecordingReceiver>> = 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
     };
 
     let opts = RendererOptions {
         device_pixel_ratio: 1.0,
         resource_override_path: None,
         enable_aa: false,