Chromium Code Reviews| 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..dc602632192d554c2eec0ed05b0c20a95a7818af 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; |
| + typedef bool (PictureLayerTiling::*TileRequirementCheck)(const Tile*) const; |
|
danakj
2014/11/04 22:02:58
can you do this with using instead of typedef? the
ernstm
2014/11/04 22:41:14
Done.
|
| 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; |