Bug 1371838 - set the window_id as renderer_id to WR. r=jrmuizel
authorJerryShih <hshih@mozilla.com>
Sat, 11 Nov 2017 18:57:31 +0800
changeset 696846 d352680181fc5034f86fa7658ca2d49d87ad7f79
parent 696845 3fe8d225b7baeb47a4c040d3db49025008f529a1
child 696847 9b5afe75d13f7cf77c9766d0a75f0faabd83a090
push id88807
push userbmo:ato@sny.no
push dateSun, 12 Nov 2017 01:46:20 +0000
reviewersjrmuizel
bugs1371838
milestone58.0a1
Bug 1371838 - set the window_id as renderer_id to WR. r=jrmuizel MozReview-Commit-ID: 7YbQNzTNpmE
gfx/webrender_bindings/src/bindings.rs
--- a/gfx/webrender_bindings/src/bindings.rs
+++ b/gfx/webrender_bindings/src/bindings.rs
@@ -692,16 +692,17 @@ pub extern "C" fn wr_window_new(window_i
                 None
             } else {
                 match CStr::from_ptr(override_charptr).to_str() {
                     Ok(override_str) => Some(PathBuf::from(override_str)),
                     _ => None
                 }
             }
         },
+        renderer_id: Some(window_id.0),
         ..Default::default()
     };
 
     let notifier = Box::new(CppNotifier {
         window_id: window_id,
     });
     let (renderer, sender) = match Renderer::new(gl, notifier, opts) {
         Ok((renderer, sender)) => (renderer, sender),