| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
| 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 static scoped_ptr<PictureLayerTiling> Create( | 122 static scoped_ptr<PictureLayerTiling> Create( |
| 123 float contents_scale, | 123 float contents_scale, |
| 124 const gfx::Size& layer_bounds, | 124 const gfx::Size& layer_bounds, |
| 125 PictureLayerTilingClient* client); | 125 PictureLayerTilingClient* client); |
| 126 gfx::Size layer_bounds() const { return layer_bounds_; } | 126 gfx::Size layer_bounds() const { return layer_bounds_; } |
| 127 void SetLayerBounds(const gfx::Size& layer_bounds); | 127 void SetLayerBounds(const gfx::Size& layer_bounds); |
| 128 void Invalidate(const Region& layer_region); | 128 void Invalidate(const Region& layer_region); |
| 129 void RemoveTilesInRegion(const Region& layer_region); | 129 void RemoveTilesInRegion(const Region& layer_region); |
| 130 void CreateMissingTilesInLiveTilesRect(); | 130 void CreateMissingTilesInLiveTilesRect(); |
| 131 | 131 |
| 132 void SetCanUseLCDText(bool can_use_lcd_text); | |
| 133 | |
| 134 void SetClient(PictureLayerTilingClient* client); | 132 void SetClient(PictureLayerTilingClient* client); |
| 135 void set_resolution(TileResolution resolution) { resolution_ = resolution; } | 133 void set_resolution(TileResolution resolution) { resolution_ = resolution; } |
| 136 TileResolution resolution() const { return resolution_; } | 134 TileResolution resolution() const { return resolution_; } |
| 137 | 135 |
| 138 gfx::Rect TilingRect() const; | 136 gfx::Rect TilingRect() const; |
| 139 gfx::Rect live_tiles_rect() const { return live_tiles_rect_; } | 137 gfx::Rect live_tiles_rect() const { return live_tiles_rect_; } |
| 140 gfx::Size tile_size() const { return tiling_data_.max_texture_size(); } | 138 gfx::Size tile_size() const { return tiling_data_.max_texture_size(); } |
| 141 float contents_scale() const { return contents_scale_; } | 139 float contents_scale() const { return contents_scale_; } |
| 142 | 140 |
| 143 Tile* TileAt(int i, int j) const { | 141 Tile* TileAt(int i, int j) const { |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 303 |
| 306 private: | 304 private: |
| 307 DISALLOW_ASSIGN(PictureLayerTiling); | 305 DISALLOW_ASSIGN(PictureLayerTiling); |
| 308 | 306 |
| 309 RectExpansionCache expansion_cache_; | 307 RectExpansionCache expansion_cache_; |
| 310 }; | 308 }; |
| 311 | 309 |
| 312 } // namespace cc | 310 } // namespace cc |
| 313 | 311 |
| 314 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 312 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |