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

Unified Diff: cc/resources/picture_layer_tiling.h

Issue 375923005: cc: Explicitly invalidate all dropped recordings on the main thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: invalid-resize: resizedeletestiles Created 6 years, 5 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/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling.h
diff --git a/cc/resources/picture_layer_tiling.h b/cc/resources/picture_layer_tiling.h
index 6f99c133188f69b73d265267bd8d16efed5a6bf2..f2726d8301f563d75d2e09f5de9f55ec60c49f83 100644
--- a/cc/resources/picture_layer_tiling.h
+++ b/cc/resources/picture_layer_tiling.h
@@ -127,9 +127,8 @@ class CC_EXPORT PictureLayerTiling {
const gfx::Size& layer_bounds,
PictureLayerTilingClient* client);
gfx::Size layer_bounds() const { return layer_bounds_; }
- void SetLayerBounds(const gfx::Size& layer_bounds);
- void Invalidate(const Region& layer_region);
- void RemoveTilesInRegion(const Region& layer_region);
+ void UpdateTilesToCurrentPile(const Region& layer_invalidation,
+ const gfx::Size& new_layer_bounds);
void CreateMissingTilesInLiveTilesRect();
void SetClient(PictureLayerTilingClient* client);
@@ -150,6 +149,8 @@ class CC_EXPORT PictureLayerTiling {
SetLiveTilesRect(tiling_data_.tiling_rect());
}
+ const TilingData& TilingDataForTesting() const { return tiling_data_; }
+
std::vector<Tile*> AllTilesForTesting() const {
std::vector<Tile*> all_tiles;
for (TileMap::const_iterator it = tiles_.begin();
@@ -230,8 +231,6 @@ class CC_EXPORT PictureLayerTiling {
// while DidBecomeActive promotes pending priority on a similar set of tiles.
void DidBecomeRecycled();
- void UpdateTilesToCurrentPile();
-
bool NeedsUpdateForFrameAtTime(double frame_time_in_seconds) {
return frame_time_in_seconds != last_impl_frame_time_in_seconds_;
}
@@ -282,7 +281,7 @@ class CC_EXPORT PictureLayerTiling {
const;
void UpdateEvictionCacheIfNeeded(TreePriority tree_priority);
- void DoInvalidate(const Region& layer_region, bool recreate_tiles);
+ void Invalidate(const Region& layer_region);
// Given properties.
float contents_scale_;
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698