Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: cc/tiles/picture_layer_tiling.h

Issue 2726343004: cc: Optimize decode scheduling for checker-images. (Closed)
Patch Set: fixed tile iteration Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 void SetRasterSourceAndResize(scoped_refptr<RasterSource> raster_source); 93 void SetRasterSourceAndResize(scoped_refptr<RasterSource> raster_source);
94 void Invalidate(const Region& layer_invalidation); 94 void Invalidate(const Region& layer_invalidation);
95 void CreateMissingTilesInLiveTilesRect(); 95 void CreateMissingTilesInLiveTilesRect();
96 void TakeTilesAndPropertiesFrom(PictureLayerTiling* pending_twin, 96 void TakeTilesAndPropertiesFrom(PictureLayerTiling* pending_twin,
97 const Region& layer_invalidation); 97 const Region& layer_invalidation);
98 98
99 bool IsTileRequiredForActivation(const Tile* tile) const; 99 bool IsTileRequiredForActivation(const Tile* tile) const;
100 bool IsTileRequiredForDraw(const Tile* tile) const; 100 bool IsTileRequiredForDraw(const Tile* tile) const;
101 101
102 // Returns true if the tile should be processed for decoding images skipped
103 // during rasterization.
104 bool ShouldProcessTileForCheckerImages(const Tile* tile) const;
105
102 void set_resolution(TileResolution resolution) { 106 void set_resolution(TileResolution resolution) {
103 resolution_ = resolution; 107 resolution_ = resolution;
104 may_contain_low_resolution_tiles_ |= resolution == LOW_RESOLUTION; 108 may_contain_low_resolution_tiles_ |= resolution == LOW_RESOLUTION;
105 } 109 }
106 TileResolution resolution() const { return resolution_; } 110 TileResolution resolution() const { return resolution_; }
107 bool may_contain_low_resolution_tiles() const { 111 bool may_contain_low_resolution_tiles() const {
108 return may_contain_low_resolution_tiles_; 112 return may_contain_low_resolution_tiles_;
109 } 113 }
110 void reset_may_contain_low_resolution_tiles() { 114 void reset_may_contain_low_resolution_tiles() {
111 may_contain_low_resolution_tiles_ = false; 115 may_contain_low_resolution_tiles_ = false;
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 bool has_eventually_rect_tiles_ = false; 367 bool has_eventually_rect_tiles_ = false;
364 bool all_tiles_done_ = true; 368 bool all_tiles_done_ = true;
365 369
366 private: 370 private:
367 DISALLOW_COPY_AND_ASSIGN(PictureLayerTiling); 371 DISALLOW_COPY_AND_ASSIGN(PictureLayerTiling);
368 }; 372 };
369 373
370 } // namespace cc 374 } // namespace cc
371 375
372 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ 376 #endif // CC_TILES_PICTURE_LAYER_TILING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698