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

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: Use using. 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..fda512245370ed938c55c1eb7361751e8a3bdf19 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -149,9 +149,11 @@ class CC_EXPORT PictureLayerImpl
// Virtual for testing.
virtual bool HasValidTilePriorities() const;
bool AllTilesRequiredForActivationAreReadyToDraw() const;
+ bool AllTilesRequiredForDrawAreReadyToDraw() const;
protected:
friend class LayerRasterTileIterator;
+ using TileRequirementCheck = bool (PictureLayerTiling::*)(const Tile*) const;
PictureLayerImpl(LayerTreeImpl* tree_impl, int id);
PictureLayerTiling* AddTiling(float contents_scale);
@@ -180,6 +182,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.
+ bool AllTilesRequiredAreReadyToDraw(
+ TileRequirementCheck 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