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

Unified Diff: cc/picture_layer_tiling.h

Issue 11953005: cc: Update picture pile on tiles to prevent memory leak (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename MoveTilePriorities to DidBecomeActive Created 7 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 | « cc/picture_layer_impl.cc ('k') | 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 563ac415aaa30d345f2c25de879efd07accf9781..e69c6e3642eeba3124004cb3ee8c08a449b6f421 100644
--- a/cc/picture_layer_tiling.h
+++ b/cc/picture_layer_tiling.h
@@ -23,6 +23,7 @@ class PictureLayerTiling;
class PictureLayerTilingClient {
public:
virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, gfx::Rect) = 0;
+ virtual void UpdatePile(Tile* tile) = 0;
};
class CC_EXPORT PictureLayerTiling {
@@ -101,7 +102,10 @@ class CC_EXPORT PictureLayerTiling {
const gfx::Transform& current_screen_transform,
double time_delta);
- void MoveTilePriorities(WhichTree src_tree, WhichTree dst_tree);
+ // Copies the src_tree priority into the dst_tree priority for all tiles.
+ // The src_tree priority is reset to the lowest priority possible. This
+ // also updates the pile on each tile to be the current client's pile.
+ void DidBecomeActive();
protected:
typedef std::pair<int, int> TileMapKey;
« no previous file with comments | « cc/picture_layer_impl.cc ('k') | cc/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698