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

Unified Diff: cc/resources/tiling_set_raster_queue_required.cc

Issue 1139673008: cc: Make IsReadyToDraw/NeedsRaster usage consistent. (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 | « cc/resources/tiling_set_raster_queue_all.h ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tiling_set_raster_queue_required.cc
diff --git a/cc/resources/tiling_set_raster_queue_required.cc b/cc/resources/tiling_set_raster_queue_required.cc
index 4ff8b6e8e7390433b7fd4968c6e9724bcd1c7d14..19c2c8145344e635ddaedaa2d50e42601d89c5d7 100644
--- a/cc/resources/tiling_set_raster_queue_required.cc
+++ b/cc/resources/tiling_set_raster_queue_required.cc
@@ -101,7 +101,8 @@ TilingSetRasterQueueRequired::TilingIterator::TilingIterator(
tiling_->TileAt(visible_iterator_.index_x(), visible_iterator_.index_y());
// If this is a valid tile, return it. Note that we have to use a tiling check
// for occlusion, since the tile's internal state has not yet been updated.
- if (tile && tile->NeedsRaster() && !tiling_->IsTileOccluded(tile)) {
+ if (tile && tile->draw_info().NeedsRaster() &&
+ !tiling_->IsTileOccluded(tile)) {
tiling_->UpdateRequiredStatesOnTile(tile);
current_tile_ = tiling_->MakePrioritizedTile(tile);
return;
@@ -126,7 +127,7 @@ TilingSetRasterQueueRequired::TilingIterator&
tile = tiling_->TileAt(next_index.first, next_index.second);
// If the tile doesn't exist or if it exists but doesn't need raster work,
// we can move on to the next tile.
- if (!tile || !tile->NeedsRaster())
+ if (!tile || !tile->draw_info().NeedsRaster())
continue;
// If the tile is occluded, we also can skip it. Note that we use the tiling
« no previous file with comments | « cc/resources/tiling_set_raster_queue_all.h ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698