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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 void SetRasterSourceAndResize(scoped_refptr<RasterSource> raster_source); | 102 void SetRasterSourceAndResize(scoped_refptr<RasterSource> raster_source); |
103 void Invalidate(const Region& layer_invalidation); | 103 void Invalidate(const Region& layer_invalidation); |
104 void CreateMissingTilesInLiveTilesRect(); | 104 void CreateMissingTilesInLiveTilesRect(); |
105 void TakeTilesAndPropertiesFrom(PictureLayerTiling* pending_twin, | 105 void TakeTilesAndPropertiesFrom(PictureLayerTiling* pending_twin, |
106 const Region& layer_invalidation); | 106 const Region& layer_invalidation); |
107 | 107 |
108 bool IsTileRequiredForActivation(const Tile* tile) const; | 108 bool IsTileRequiredForActivation(const Tile* tile) const; |
109 bool IsTileRequiredForDraw(const Tile* tile) const; | 109 bool IsTileRequiredForDraw(const Tile* tile) const; |
110 | 110 |
| 111 // Returns true if the tile should be processed for decoding images skipped |
| 112 // during rasterization. |
| 113 bool ShouldDecodeCheckeredImagesForTile(const Tile* tile) const; |
| 114 |
111 void set_resolution(TileResolution resolution) { | 115 void set_resolution(TileResolution resolution) { |
112 resolution_ = resolution; | 116 resolution_ = resolution; |
113 may_contain_low_resolution_tiles_ |= resolution == LOW_RESOLUTION; | 117 may_contain_low_resolution_tiles_ |= resolution == LOW_RESOLUTION; |
114 } | 118 } |
115 TileResolution resolution() const { return resolution_; } | 119 TileResolution resolution() const { return resolution_; } |
116 bool may_contain_low_resolution_tiles() const { | 120 bool may_contain_low_resolution_tiles() const { |
117 return may_contain_low_resolution_tiles_; | 121 return may_contain_low_resolution_tiles_; |
118 } | 122 } |
119 void reset_may_contain_low_resolution_tiles() { | 123 void reset_may_contain_low_resolution_tiles() { |
120 may_contain_low_resolution_tiles_ = false; | 124 may_contain_low_resolution_tiles_ = false; |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 bool has_eventually_rect_tiles_ = false; | 388 bool has_eventually_rect_tiles_ = false; |
385 bool all_tiles_done_ = true; | 389 bool all_tiles_done_ = true; |
386 | 390 |
387 private: | 391 private: |
388 DISALLOW_COPY_AND_ASSIGN(PictureLayerTiling); | 392 DISALLOW_COPY_AND_ASSIGN(PictureLayerTiling); |
389 }; | 393 }; |
390 | 394 |
391 } // namespace cc | 395 } // namespace cc |
392 | 396 |
393 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ | 397 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ |
OLD | NEW |