Bug 1561305. Eliminate unused viewport_tiles field. r=nical
authorJeff Muizelaar <jrmuizel@gmail.com>
Mon, 01 Jul 2019 07:28:41 +0000
changeset 543625 1e3513e5290b6927d3f34474c29c65d9718ad4c7
parent 543624 0eb0c9aad565a438f9eb162a90cd2239cdfaee5c
child 543626 ef154e1221d66e844a1854ca00f984c771e9b36d
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1561305
milestone69.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 1561305. Eliminate unused viewport_tiles field. r=nical Differential Revision: https://phabricator.services.mozilla.com/D35807
gfx/wr/webrender/src/resource_cache.rs
--- a/gfx/wr/webrender/src/resource_cache.rs
+++ b/gfx/wr/webrender/src/resource_cache.rs
@@ -166,17 +166,16 @@ struct BlobImageTemplate {
     dirty_rect: BlobDirtyRect,
     viewport_tiles: Option<TileRange>,
 }
 
 struct ImageResource {
     data: CachedImageData,
     descriptor: ImageDescriptor,
     tiling: Option<TileSize>,
-    viewport_tiles: Option<TileRange>,
 }
 
 #[derive(Clone, Debug)]
 pub struct ImageTiling {
     pub image_size: DeviceIntSize,
     pub tile_size: TileSize,
 }
 
@@ -846,17 +845,16 @@ impl ResourceCache {
             // if tiling was not requested.
             tiling = Some(DEFAULT_TILE_SIZE);
         }
 
         let resource = ImageResource {
             descriptor,
             data,
             tiling,
-            viewport_tiles: None,
         };
 
         self.resources.image_templates.insert(image_key, resource);
     }
 
     pub fn update_image_template(
         &mut self,
         image_key: ImageKey,
@@ -904,17 +902,16 @@ impl ResourceCache {
             }
             _ => {}
         }
 
         *image = ImageResource {
             descriptor,
             data,
             tiling,
-            viewport_tiles: image.viewport_tiles,
         };
     }
 
     // Happens before scene building.
     pub fn add_blob_image(
         &mut self,
         key: BlobImageKey,
         descriptor: &ImageDescriptor,
@@ -2263,17 +2260,16 @@ impl ResourceCache {
                     CachedImageData::Raw(arc)
                 }
             };
 
             res.image_templates.images.insert(key, ImageResource {
                 data,
                 descriptor: template.descriptor,
                 tiling: template.tiling,
-                viewport_tiles: None,
             });
         }
 
         external_images
     }
 }
 
 /// For now the blob's coordinate space have the same pixel sizes as the