Bug 1470125 - Update bindings for changes in WR PR 2849. r=Gankro
authorKartikaya Gupta <kgupta@mozilla.com>
Thu, 28 Jun 2018 11:48:47 -0400
changeset 479443 720f0dd717a15ef09b53973bcdea013c5e902501
parent 479442 afe2313f83edb3bd1664553be57d5af483c4cb61
child 479444 ba2b15dbe7d87b170a8f89bcdef6c739583b322c
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGankro
bugs1470125
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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) }
     }