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

Unified Diff: cc/layers/picture_layer_impl.h

Issue 672283003: cc: ReadyToDraw notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More clean-ups. Created 6 years, 1 month 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 | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.h
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index 024e31527e9c8413c7943d3f561451d459ba7b90..9c89b9ae97f6f6b27dbff08ffcf3bc22c4c25e91 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -149,6 +149,7 @@ class CC_EXPORT PictureLayerImpl
// Virtual for testing.
virtual bool HasValidTilePriorities() const;
bool AllTilesRequiredForActivationAreReadyToDraw() const;
+ bool AllTilesRequiredForDrawAreReadyToDraw() const;
protected:
friend class LayerRasterTileIterator;
@@ -180,6 +181,11 @@ class CC_EXPORT PictureLayerImpl
bool CanHaveTilings() const;
bool CanHaveTilingWithScale(float contents_scale) const;
void SanityCheckTilingState() const;
+ // Checks if all tiles required for a certain action (e.g. activation) are
+ // ready to draw. is_tile_required_callback gets called on all candidate
+ // tiles and returns true if the tile is required for the action.
+ template <typename F>
+ bool AllTilesRequiredAreReadyToDraw(const F& is_tile_required_callback) const;
bool ShouldAdjustRasterScaleDuringScaleAnimations() const;
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698