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

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: fixing unit tests and an optimization to CreateTile 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
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 a619a1e093df195caa551b24effb5b888526aae1..03e595ac9a19498ba73767e308fed3182028fcb6 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,10 @@ 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;
-
- void Invalidate(const Region& layer_invalidation);
+ gfx::Size layer_bounds() const { return layer_bounds_; }
PictureLayerTiling* AddTiling(float contents_scale);
size_t num_tilings() const { return tilings_.size(); }
@@ -47,9 +44,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,

Powered by Google App Engine
This is Rietveld 408576698