Bug 1470125 - Update bindings for changes in WR PR 2849. r=Gankro draft
authorKartikaya Gupta <kgupta@mozilla.com>
Thu, 28 Jun 2018 11:48:47 -0400
changeset 812183 c2543e9925efbdd0249d8f6e306f62455e12ac48
parent 812182 654102de6773960af67069e7e4c2b27474d9a04c
child 812184 64e156b488b5510c10d9cda5d466c76f9c2d9531
child 812185 6a0ef8c6d61ab937695c42224eb3acb0a5e531f7
push id114479
push userkgupta@mozilla.com
push dateThu, 28 Jun 2018 18:33:43 +0000
reviewersGankro
bugs1470125
milestone63.0a1
Bug 1470125 - Update bindings for changes in WR PR 2849. r=Gankro MozReview-Commit-ID: JZtSKH5hZtO
gfx/webrender_bindings/src/bindings.rs
--- a/gfx/webrender_bindings/src/bindings.rs
+++ b/gfx/webrender_bindings/src/bindings.rs
@@ -509,17 +509,18 @@ impl RenderNotifier for CppNotifier {
         unsafe {
             wr_notifier_wake_up(self.window_id);
         }
     }
 
     fn new_frame_ready(&self,
                        _: DocumentId,
                        _scrolled: bool,
-                       composite_needed: bool) {
+                       composite_needed: bool,
+                       _render_time_ns: Option<u64>) {
         unsafe {
             if composite_needed {
                 wr_notifier_new_frame_ready(self.window_id);
             } else {
                 wr_notifier_nop_frame_done(self.window_id);
             }
         }
     }
@@ -712,21 +713,21 @@ impl APZCallbacks {
     }
 }
 
 impl SceneBuilderHooks for APZCallbacks {
     fn register(&self) {
         unsafe { apz_register_updater(self.window_id) }
     }
 
-    fn pre_scene_swap(&self) {
+    fn pre_scene_swap(&self, _scenebuild_time: u64) {
         unsafe { apz_pre_scene_swap(self.window_id) }
     }
 
-    fn post_scene_swap(&self, info: PipelineInfo) {
+    fn post_scene_swap(&self, info: PipelineInfo, _sceneswap_time: u64) {
         let info = WrPipelineInfo::new(info);
         unsafe { apz_post_scene_swap(self.window_id, info) }
 
         // After a scene swap we should schedule a render for the next vsync,
         // otherwise there's no guarantee that the new scene will get rendered
         // anytime soon
         unsafe { wr_schedule_render(self.window_id) }
     }