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

Unified Diff: cc/layers/picture_layer_impl.h

Issue 246673005: cc: Start using raster/eviction iterators in tile manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/layers/picture_layer_impl.h
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index 9609ccf3e449f282ec504f6e35a1001d5a4a93cc..747efcbb1ba0d0bfc80e3cd5d7e2d5331879a8d9 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -137,6 +137,13 @@ class CC_EXPORT PictureLayerImpl
WhichTree GetTree() const;
bool IsOnActiveOrPendingTree() const;
bool AllTilesRequiredForActivationAreReadyToDraw() const;
+ bool LayerRegisteredInTileManager() const {
+ return !layer_needs_to_register_itself_;
+ }
+
+ void SetLayerNeedsToRegisterItselfForTesting(bool needs_to_register) {
+ layer_needs_to_register_itself_ = needs_to_register;
+ }
protected:
friend class LayerRasterTileIterator;

Powered by Google App Engine
This is Rietveld 408576698