Bug 1510592 - Update webrender to commit 0c6b52ec22023fae247baaa98f6ca1615ef523c8 (WR PR #3365). r=kats
authorWR Updater Bot <graphics-team@mozilla.staktrace.com>
Thu, 29 Nov 2018 03:30:44 +0000
changeset 507872 b6628da730a9dd6c5d88fd75e4b1b6878d357e4e
parent 507871 30accf21bb0afe33b1459daa2dd80340fb05cb87
child 507873 54d56b9a77fb9d41eff3ce1662ba5fff538365d2
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1510592
milestone65.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 1510592 - Update webrender to commit 0c6b52ec22023fae247baaa98f6ca1615ef523c8 (WR PR #3365). r=kats https://github.com/servo/webrender/pull/3365 Differential Revision: https://phabricator.services.mozilla.com/D13354
gfx/webrender_bindings/revision.txt
gfx/wr/webrender/src/frame_builder.rs
gfx/wr/webrender/src/picture.rs
--- a/gfx/webrender_bindings/revision.txt
+++ b/gfx/webrender_bindings/revision.txt
@@ -1,1 +1,1 @@
-3d73e3885907ae3d48b46fba891073abdb59e76d
+0c6b52ec22023fae247baaa98f6ca1615ef523c8
--- a/gfx/wr/webrender/src/frame_builder.rs
+++ b/gfx/wr/webrender/src/frame_builder.rs
@@ -273,16 +273,24 @@ impl FrameBuilder {
             &frame_context,
             resource_cache,
             gpu_cache,
             &resources.prim_data_store,
             &self.clip_store,
             &mut retained_tiles,
         );
 
+        // If we had any retained tiles from the last scene that were not picked
+        // up by the new frame, then just discard them eagerly.
+        // TODO(gw): Maybe it's worth keeping them around for a bit longer in
+        //           some cases?
+        for (_, handle) in retained_tiles.drain() {
+            resource_cache.texture_cache.mark_unused(&handle);
+        }
+
         let mut frame_state = FrameBuildingState {
             render_tasks,
             profile_counters,
             clip_store: &mut self.clip_store,
             resource_cache,
             gpu_cache,
             special_render_passes,
             transforms: transform_palette,
--- a/gfx/wr/webrender/src/picture.rs
+++ b/gfx/wr/webrender/src/picture.rs
@@ -852,24 +852,16 @@ impl TileCache {
                 if !tile.is_valid && tile.is_visible && tile.in_use {
                     dirty_rect = dirty_rect.union(&tile_rect);
                     tile_offset.x = tile_offset.x.min(x);
                     tile_offset.y = tile_offset.y.min(y);
                 }
             }
         }
 
-        // If we had any retained tiles from the last scene that were not picked
-        // up by the new frame, then just discard them eagerly.
-        // TODO(gw): Maybe it's worth keeping them around for a bit longer in
-        //           some cases?
-        for (_, handle) in retained_tiles.drain() {
-            resource_cache.texture_cache.mark_unused(&handle);
-        }
-
         self.dirty_region = if dirty_rect.is_empty() {
             None
         } else {
             let dirty_world_rect = world_mapper.map(&dirty_rect).expect("todo");
             Some(DirtyRegion {
                 dirty_rect,
                 tile_offset,
                 dirty_world_rect,