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

Unified Diff: cc/tiles/tiling_set_raster_queue_all.h

Issue 1130343005: cc: Optimize OnePriorityRectIterator a little bit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/tiles/tiling_set_raster_queue_all.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tiling_set_raster_queue_all.h
diff --git a/cc/tiles/tiling_set_raster_queue_all.h b/cc/tiles/tiling_set_raster_queue_all.h
index 62d2249373046fcc10bdf06b198211b396bd5e66..951f9393da22df0a640d89c6c0ba66a2eee2cee2 100644
--- a/cc/tiles/tiling_set_raster_queue_all.h
+++ b/cc/tiles/tiling_set_raster_queue_all.h
@@ -41,7 +41,7 @@ class CC_EXPORT TilingSetRasterQueueAll {
protected:
~OnePriorityRectIterator() = default;
- bool TileNeedsRaster(Tile* tile) const {
+ bool TileNeedsRaster(const Tile* tile) const {
return tile->draw_info().NeedsRaster() && !tiling_->IsTileOccluded(tile);
}
@@ -49,6 +49,7 @@ class CC_EXPORT TilingSetRasterQueueAll {
void AdvanceToNextTile(TilingIteratorType* iterator);
template <typename TilingIteratorType>
bool GetFirstTileAndCheckIfValid(TilingIteratorType* iterator);
+ bool IsTileValid(const Tile* tile) const;
PrioritizedTile current_tile_;
PictureLayerTiling* tiling_;
« no previous file with comments | « no previous file | cc/tiles/tiling_set_raster_queue_all.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698