| Index: cc/tiles/picture_layer_tiling.h
|
| diff --git a/cc/tiles/picture_layer_tiling.h b/cc/tiles/picture_layer_tiling.h
|
| index fcd06ace8cd20025ba207cfd4e22593ac392a40c..c9634dfbc37e356811ef8a1273d9c83e91508bf1 100644
|
| --- a/cc/tiles/picture_layer_tiling.h
|
| +++ b/cc/tiles/picture_layer_tiling.h
|
| @@ -82,6 +82,7 @@ class CC_EXPORT PictureLayerTiling {
|
|
|
| PictureLayerTiling(WhichTree tree,
|
| float contents_scale,
|
| + const gfx::Vector2dF& contents_translation,
|
| scoped_refptr<RasterSource> raster_source,
|
| PictureLayerTilingClient* client);
|
| ~PictureLayerTiling();
|
| @@ -119,6 +120,9 @@ class CC_EXPORT PictureLayerTiling {
|
| gfx::Rect live_tiles_rect() const { return live_tiles_rect_; }
|
| gfx::Size tile_size() const { return tiling_data_.max_texture_size(); }
|
| float contents_scale() const { return contents_scale_; }
|
| + const gfx::Vector2dF& contents_translation() const {
|
| + return contents_translation_;
|
| + }
|
| const TilingData* tiling_data() const { return &tiling_data_; }
|
|
|
| Tile* TileAt(int i, int j) const {
|
| @@ -319,8 +323,14 @@ class CC_EXPORT PictureLayerTiling {
|
| }
|
| void RemoveTilesInRegion(const Region& layer_region, bool recreate_tiles);
|
|
|
| + gfx::Rect EnclosingContentsRectFromLayerRect(
|
| + const gfx::Rect& layer_rect) const;
|
| + gfx::Rect EnclosingLayerRectFromContentsRect(
|
| + const gfx::Rect& contents_rect) const;
|
| +
|
| // Given properties.
|
| const float contents_scale_;
|
| + const gfx::Vector2dF contents_translation_;
|
| PictureLayerTilingClient* const client_;
|
| const WhichTree tree_;
|
| scoped_refptr<RasterSource> raster_source_;
|
|
|