| 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;
|
|
|
|
|