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_TILES_PICTURE_LAYER_TILING_H_ | 5 #ifndef CC_TILES_PICTURE_LAYER_TILING_H_ |
6 #define CC_TILES_PICTURE_LAYER_TILING_H_ | 6 #define CC_TILES_PICTURE_LAYER_TILING_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 TileResolution resolution() const { return resolution_; } | 119 TileResolution resolution() const { return resolution_; } |
120 bool may_contain_low_resolution_tiles() const { | 120 bool may_contain_low_resolution_tiles() const { |
121 return may_contain_low_resolution_tiles_; | 121 return may_contain_low_resolution_tiles_; |
122 } | 122 } |
123 void reset_may_contain_low_resolution_tiles() { | 123 void reset_may_contain_low_resolution_tiles() { |
124 may_contain_low_resolution_tiles_ = false; | 124 may_contain_low_resolution_tiles_ = false; |
125 } | 125 } |
126 void set_can_require_tiles_for_activation(bool can_require_tiles) { | 126 void set_can_require_tiles_for_activation(bool can_require_tiles) { |
127 can_require_tiles_for_activation_ = can_require_tiles; | 127 can_require_tiles_for_activation_ = can_require_tiles; |
128 } | 128 } |
| 129 bool can_require_tiles_for_activation() const { |
| 130 return can_require_tiles_for_activation_; |
| 131 } |
129 | 132 |
130 const scoped_refptr<RasterSource>& raster_source() const { | 133 const scoped_refptr<RasterSource>& raster_source() const { |
131 return raster_source_; | 134 return raster_source_; |
132 } | 135 } |
133 gfx::Size tiling_size() const { return tiling_data_.tiling_size(); } | 136 gfx::Size tiling_size() const { return tiling_data_.tiling_size(); } |
134 gfx::Rect live_tiles_rect() const { return live_tiles_rect_; } | 137 gfx::Rect live_tiles_rect() const { return live_tiles_rect_; } |
135 gfx::Size tile_size() const { return tiling_data_.max_texture_size(); } | 138 gfx::Size tile_size() const { return tiling_data_.max_texture_size(); } |
136 // PictureLayerTilingSet uses the scale component of the raster transform | 139 // PictureLayerTilingSet uses the scale component of the raster transform |
137 // as the key for indexing and sorting. In theory we can have multiple | 140 // as the key for indexing and sorting. In theory we can have multiple |
138 // tilings with the same scale but different translation, but currently | 141 // tilings with the same scale but different translation, but currently |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 bool has_eventually_rect_tiles_ = false; | 393 bool has_eventually_rect_tiles_ = false; |
391 bool all_tiles_done_ = true; | 394 bool all_tiles_done_ = true; |
392 | 395 |
393 private: | 396 private: |
394 DISALLOW_COPY_AND_ASSIGN(PictureLayerTiling); | 397 DISALLOW_COPY_AND_ASSIGN(PictureLayerTiling); |
395 }; | 398 }; |
396 | 399 |
397 } // namespace cc | 400 } // namespace cc |
398 | 401 |
399 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ | 402 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ |
OLD | NEW |