| Index: cc/tiles/tile.h
|
| diff --git a/cc/tiles/tile.h b/cc/tiles/tile.h
|
| index 76142e86699118f284d0e11acb86aba35ad80348..b58ed82f98b95d5e67f2b53dab125e8b09ad463a 100644
|
| --- a/cc/tiles/tile.h
|
| +++ b/cc/tiles/tile.h
|
| @@ -35,17 +35,20 @@ class CC_EXPORT Tile {
|
| gfx::Rect enclosing_layer_rect;
|
| gfx::Rect content_rect;
|
| float contents_scale;
|
| + gfx::Vector2dF contents_translation;
|
|
|
| CreateInfo(int tiling_i_index,
|
| int tiling_j_index,
|
| const gfx::Rect& enclosing_layer_rect,
|
| const gfx::Rect& content_rect,
|
| - float contents_scale)
|
| + float contents_scale,
|
| + const gfx::Vector2dF contents_translation)
|
| : tiling_i_index(tiling_i_index),
|
| tiling_j_index(tiling_j_index),
|
| enclosing_layer_rect(enclosing_layer_rect),
|
| content_rect(content_rect),
|
| - contents_scale(contents_scale) {}
|
| + contents_scale(contents_scale),
|
| + contents_translation(contents_translation) {}
|
| };
|
|
|
| enum TileRasterFlags { USE_PICTURE_ANALYSIS = 1 << 0, IS_OPAQUE = 1 << 1 };
|
| @@ -78,6 +81,9 @@ class CC_EXPORT Tile {
|
| TileDrawInfo& draw_info() { return draw_info_; }
|
|
|
| float contents_scale() const { return contents_scale_; }
|
| + const gfx::Vector2dF& contents_translation() const {
|
| + return contents_translation_;
|
| + }
|
| const gfx::Rect& content_rect() const { return content_rect_; }
|
| const gfx::Rect& enclosing_layer_rect() const {
|
| return enclosing_layer_rect_;
|
| @@ -124,6 +130,7 @@ class CC_EXPORT Tile {
|
| const gfx::Rect content_rect_;
|
| const gfx::Rect enclosing_layer_rect_;
|
| const float contents_scale_;
|
| + const gfx::Vector2dF contents_translation_;
|
|
|
| TileDrawInfo draw_info_;
|
|
|
|
|