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

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

Issue 2726343004: cc: Optimize decode scheduling for checker-images. (Closed)
Patch Set: rebase 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
« no previous file with comments | « cc/tiles/checker_image_tracker_unittest.cc ('k') | cc/tiles/picture_layer_tiling.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « cc/tiles/checker_image_tracker_unittest.cc ('k') | cc/tiles/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698