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

Unified Diff: cc/resources/picture_layer_tiling.h

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 | « no previous file | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling.h
diff --git a/cc/resources/picture_layer_tiling.h b/cc/resources/picture_layer_tiling.h
index feb40ff16fdf79e9857ea44860257913ffdc78e4..131e338d33ccb3acc21e2f4ee80105082ea0ee26 100644
--- a/cc/resources/picture_layer_tiling.h
+++ b/cc/resources/picture_layer_tiling.h
@@ -51,9 +51,7 @@ class CC_EXPORT PictureLayerTiling {
TilingRasterTileIterator(PictureLayerTiling* tiling, WhichTree tree);
~TilingRasterTileIterator();
- operator bool() const {
- return current_tile_ && TileNeedsRaster(current_tile_);
- }
+ operator bool() const { return !!current_tile_; }
Tile* operator*() { return current_tile_; }
TilePriority::PriorityBin get_type() const { return type_; }
« no previous file with comments | « no previous file | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698