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

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 afd96aa97dfd30467de5beb6f259b39ab928ec91..5865ec4a6607425e18882e8119ce8e48d79f3798 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -38,6 +38,8 @@ class CC_EXPORT PictureLayerImpl
LayerRasterTileIterator& operator++();
operator bool() const;
+ bool HasTilesRequiredForActivation() const;
+
private:
enum IteratorType { LOW_RES, HIGH_RES, NUM_ITERATORS };
@@ -136,6 +138,9 @@ class CC_EXPORT PictureLayerImpl
PictureLayerImpl* GetTwinLayer() { return twin_layer_; }
WhichTree GetTree() const;
bool IsOnActiveOrPendingTree() const;
+ bool LayerRegisteredInTileManager() const {
+ return !layer_needs_to_register_itself_;
+ }
protected:
friend class LayerRasterTileIterator;
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layers/picture_layer_impl.cc » ('j') | cc/resources/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698