Bug 1514382 - Update webrender to commit fab59ceef070c11aba2a86c4ddf6ddc3c4e8f97d (WR PR #3417). r=kats
authorWR Updater Bot <graphics-team@mozilla.staktrace.com>
Fri, 14 Dec 2018 21:45:07 +0000
changeset 450590 305e1b5c76177bcb031552fc3784204a3207a9b4
parent 450589 e7ae93be5f42ff04a5525aeda6d4309dec283768
child 450591 af31c054af9b1e53d223e0abd9136f0eec47953e
push id35207
push useraciure@mozilla.com
push dateSat, 15 Dec 2018 02:27:37 +0000
treeherdermozilla-central@d8a944c012a7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1514382
milestone66.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 1514382 - Update webrender to commit fab59ceef070c11aba2a86c4ddf6ddc3c4e8f97d (WR PR #3417). r=kats https://github.com/servo/webrender/pull/3417 Differential Revision: https://phabricator.services.mozilla.com/D14624
gfx/webrender_bindings/revision.txt
gfx/wr/webrender/src/clip.rs
gfx/wr/webrender/src/frame_builder.rs
--- a/gfx/webrender_bindings/revision.txt
+++ b/gfx/webrender_bindings/revision.txt
@@ -1,1 +1,1 @@
-40aa1851b6453108d1c47a3264360362b9b2d053
+fab59ceef070c11aba2a86c4ddf6ddc3c4e8f97d
--- a/gfx/wr/webrender/src/clip.rs
+++ b/gfx/wr/webrender/src/clip.rs
@@ -691,16 +691,21 @@ impl ClipStore {
             clips_range,
             has_non_local_clips,
             local_clip_rect,
             pic_clip_rect,
             needs_mask,
         })
     }
 
+    pub fn clear_old_instances(&mut self) {
+        self.clip_node_instances.clear();
+    }
+
+
     /// Walk the clip chain of a primitive, and calculate a minimal
     /// local clip rect for the primitive.
     #[allow(dead_code)]
     pub fn build_local_clip_rect(
         &self,
         prim_clip_rect: LayoutRect,
         spatial_node_index: SpatialNodeIndex,
         clip_chain_id: ClipChainId,
--- a/gfx/wr/webrender/src/frame_builder.rs
+++ b/gfx/wr/webrender/src/frame_builder.rs
@@ -402,16 +402,17 @@ impl FrameBuilder {
         gpu_cache.begin_frame(stamp.frame_id());
 
         let mut transform_palette = TransformPalette::new();
         clip_scroll_tree.update_tree(
             pan,
             scene_properties,
             Some(&mut transform_palette),
         );
+        self.clip_store.clear_old_instances();
 
         let mut render_tasks = RenderTaskTree::new(stamp.frame_id());
         let mut surfaces = Vec::new();
 
         let screen_size = self.screen_rect.size.to_i32();
         let mut special_render_passes = SpecialRenderPasses::new(&screen_size);
 
         let main_render_task_id = self.build_layer_screen_rects_and_cull_layers(