Chromium Code Reviews| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 | 98 |
| 99 void SetRasterSourceAndResize(scoped_refptr<RasterSource> raster_source); | 99 void SetRasterSourceAndResize(scoped_refptr<RasterSource> raster_source); |
| 100 void Invalidate(const Region& layer_invalidation); | 100 void Invalidate(const Region& layer_invalidation); |
| 101 void CreateMissingTilesInLiveTilesRect(); | 101 void CreateMissingTilesInLiveTilesRect(); |
| 102 void TakeTilesAndPropertiesFrom(PictureLayerTiling* pending_twin, | 102 void TakeTilesAndPropertiesFrom(PictureLayerTiling* pending_twin, |
| 103 const Region& layer_invalidation); | 103 const Region& layer_invalidation); |
| 104 | 104 |
| 105 bool IsTileRequiredForActivation(const Tile* tile) const; | 105 bool IsTileRequiredForActivation(const Tile* tile) const; |
| 106 bool IsTileRequiredForDraw(const Tile* tile) const; | 106 bool IsTileRequiredForDraw(const Tile* tile) const; |
| 107 | 107 |
| 108 // Returns true if the tile should be processed for decoding images skipped | |
|
vmpstr
2017/04/18 00:20:00
Can you rephrase this a bit (it sounds confusing t
Khushal
2017/04/19 06:16:41
Its actually not necessary that images were skippe
| |
| 109 // during rasterization. | |
| 110 bool ShouldDecodeCheckeredImagesForTile(const Tile* tile) const; | |
| 111 | |
| 108 void set_resolution(TileResolution resolution) { | 112 void set_resolution(TileResolution resolution) { |
| 109 resolution_ = resolution; | 113 resolution_ = resolution; |
| 110 may_contain_low_resolution_tiles_ |= resolution == LOW_RESOLUTION; | 114 may_contain_low_resolution_tiles_ |= resolution == LOW_RESOLUTION; |
| 111 } | 115 } |
| 112 TileResolution resolution() const { return resolution_; } | 116 TileResolution resolution() const { return resolution_; } |
| 113 bool may_contain_low_resolution_tiles() const { | 117 bool may_contain_low_resolution_tiles() const { |
| 114 return may_contain_low_resolution_tiles_; | 118 return may_contain_low_resolution_tiles_; |
| 115 } | 119 } |
| 116 void reset_may_contain_low_resolution_tiles() { | 120 void reset_may_contain_low_resolution_tiles() { |
| 117 may_contain_low_resolution_tiles_ = false; | 121 may_contain_low_resolution_tiles_ = false; |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 381 bool has_eventually_rect_tiles_ = false; | 385 bool has_eventually_rect_tiles_ = false; |
| 382 bool all_tiles_done_ = true; | 386 bool all_tiles_done_ = true; |
| 383 | 387 |
| 384 private: | 388 private: |
| 385 DISALLOW_COPY_AND_ASSIGN(PictureLayerTiling); | 389 DISALLOW_COPY_AND_ASSIGN(PictureLayerTiling); |
| 386 }; | 390 }; |
| 387 | 391 |
| 388 } // namespace cc | 392 } // namespace cc |
| 389 | 393 |
| 390 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ | 394 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |