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

Unified Diff: cc/picture_layer_tiling_set.cc

Issue 11467020: cc: Only create tilings for layers that draws content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't create tilings unless drawsContent() is true Created 8 years 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_tiling_set.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_tiling_set.cc
diff --git a/cc/picture_layer_tiling_set.cc b/cc/picture_layer_tiling_set.cc
index f8f8ac95280f5d52931ba3a086993295baa1ef98..e435a1001c406d4a43ae85ef1f1f7dbce4d37866 100644
--- a/cc/picture_layer_tiling_set.cc
+++ b/cc/picture_layer_tiling_set.cc
@@ -48,6 +48,11 @@ void PictureLayerTilingSet::AddTiling(float contents_scale,
tilings_.last()->SetLayerBounds(layer_bounds_);
}
+void PictureLayerTilingSet::Reset() {
+ for (size_t i = 0; i < tilings_.size(); ++i)
+ tilings_[i]->Reset();
+}
+
PictureLayerTilingSet::Iterator::Iterator(PictureLayerTilingSet* set,
float contents_scale,
gfx::Rect content_rect)
« no previous file with comments | « cc/picture_layer_tiling_set.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698