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

Unified Diff: cc/resources/picture_layer_tiling_set.h

Issue 12865017: Makes tile-creation lazy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing last round of feedback Created 7 years, 8 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 | « cc/resources/picture_layer_tiling.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling_set.h
diff --git a/cc/resources/picture_layer_tiling_set.h b/cc/resources/picture_layer_tiling_set.h
index f88d1ef1f95e73f535f05220a2de5a9915359bee..c32d45aa74880232387b2a0a5c05b6a9e6815c8c 100644
--- a/cc/resources/picture_layer_tiling_set.h
+++ b/cc/resources/picture_layer_tiling_set.h
@@ -14,7 +14,8 @@ namespace cc {
class CC_EXPORT PictureLayerTilingSet {
public:
- explicit PictureLayerTilingSet(PictureLayerTilingClient* client);
+ PictureLayerTilingSet(PictureLayerTilingClient* client,
+ gfx::Size layer_bounds);
~PictureLayerTilingSet();
void SetClient(PictureLayerTilingClient* client);
@@ -22,14 +23,11 @@ class CC_EXPORT PictureLayerTilingSet {
// Shallow copies all data (except client and bounds from other).
void CloneAll(
const PictureLayerTilingSet& other,
- const Region& invalidation,
float minimum_contents_scale);
- void Clone(const PictureLayerTiling* tiling, const Region& invalidation);
+ void Clone(const PictureLayerTiling* tiling);
- void SetLayerBounds(gfx::Size layer_bounds);
- gfx::Size LayerBounds() const;
+ gfx::Size layer_bounds() const { return layer_bounds_; }
- void Invalidate(const Region& layer_invalidation);
void InvalidateTilesWithText();
PictureLayerTiling* AddTiling(float contents_scale);
@@ -48,9 +46,6 @@ class CC_EXPORT PictureLayerTilingSet {
// Remove all tiles; keep all tilings.
void RemoveAllTiles();
- // For all tilings, create any tile that intersects |layer_rect|.
- void CreateTilesFromLayerRect(gfx::Rect layer_rect);
-
void UpdateTilePriorities(
WhichTree tree,
gfx::Size device_viewport,
« no previous file with comments | « cc/resources/picture_layer_tiling.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698