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

Unified Diff: cc/resources/picture_layer_tiling.cc

Issue 295933008: cc: Fix tiling raster tile iterator to handle initializing tiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile fix Created 6 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/picture_layer_tiling.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling.cc
diff --git a/cc/resources/picture_layer_tiling.cc b/cc/resources/picture_layer_tiling.cc
index f0b38db18a857bb8c3009da185df33bd43ec2e98..9ab2cf5f06b2941c5fb3003c6b154cdcf7fbb962 100644
--- a/cc/resources/picture_layer_tiling.cc
+++ b/cc/resources/picture_layer_tiling.cc
@@ -859,8 +859,10 @@ void PictureLayerTiling::TilingRasterTileIterator::AdvancePhase() {
++spiral_iterator_;
}
- if (!spiral_iterator_ && type_ == TilePriority::EVENTUALLY)
+ if (!spiral_iterator_ && type_ == TilePriority::EVENTUALLY) {
+ current_tile_ = NULL;
break;
+ }
} while (!spiral_iterator_);
}
@@ -901,8 +903,10 @@ operator++() {
break;
case TilePriority::EVENTUALLY:
++spiral_iterator_;
- if (!spiral_iterator_)
+ if (!spiral_iterator_) {
+ current_tile_ = NULL;
return *this;
+ }
next_index = spiral_iterator_.index();
break;
}
« no previous file with comments | « cc/resources/picture_layer_tiling.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698