Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1268)

Unified Diff: cc/layers/picture_layer_impl.h

Issue 819643004: Cache viewport rect for tile priority in UpdateTiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.h
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index 57947cc0775523a30bb857e99c199c8d0615a4bf..7590903d171668b60b9ac6cba314304799899e74 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -119,7 +119,10 @@ class CC_EXPORT PictureLayerImpl
float MinimumContentsScale() const;
float MaximumContentsScale() const;
void ResetRasterScale();
- gfx::Rect GetViewportForTilePriorityInContentSpace() const;
+ gfx::Rect viewport_rect_for_tile_priority_in_content_space() const {
danakj 2015/01/21 22:32:18 I meant you can have this accessor on the FakePict
hush (inactive) 2015/01/21 22:40:46 Oh. I see. Done.
+ return viewport_rect_for_tile_priority_in_content_space_;
+ }
+ void CacheViewportForTilePriorityInContentSpace();
PictureLayerImpl* GetRecycledTwinLayer() const;
void SanityCheckTilingState() const;
@@ -173,6 +176,7 @@ class CC_EXPORT PictureLayerImpl
// from regular draws. Save a copy of the required draw properties of the last
// frame that has a valid viewport for prioritizing tiles.
gfx::Rect visible_rect_for_tile_priority_;
+ gfx::Rect viewport_rect_for_tile_priority_in_content_space_;
DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
};
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698