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

Unified Diff: cc/picture_layer_tiling.h

Issue 12289021: cc: Only register live tiles with the TileManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments, fix 80+char line Created 7 years, 10 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/picture_layer_tiling.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_tiling.h
diff --git a/cc/picture_layer_tiling.h b/cc/picture_layer_tiling.h
index d2330a1bc603d4cc1b0ff822995f358ab87d5689..e8e3b44222dbd82ecc4929b026cfd0fa2d5014aa 100644
--- a/cc/picture_layer_tiling.h
+++ b/cc/picture_layer_tiling.h
@@ -38,6 +38,8 @@ class TileHandle {
public:
TileHandle(scoped_refptr<Tile> tile);
Tile* tile() const { return tile_.get(); }
+ void RegisterWithTileManager();
+ void UnregisterFromTileManager();
private:
scoped_refptr<Tile> tile_;
scoped_refptr<ManagedTileState> managed_tile_state_;
@@ -67,6 +69,12 @@ class CC_EXPORT PictureLayerTiling {
gfx::SizeF ContentSizeF() const;
float contents_scale() const { return contents_scale_; }
+ void RegisterAllTilesManagedForTesting() {
+ for (TileMap::iterator it = tiles_.begin();
+ it != tiles_.end(); ++it)
+ it->second.RegisterWithTileManager();
+ }
+
std::vector<Tile*> AllTilesForTesting() const {
std::vector<Tile*> all_tiles;
for (TileMap::const_iterator it = tiles_.begin();
« no previous file with comments | « no previous file | cc/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698