Index: cc/resources/tile.cc |
diff --git a/cc/resources/tile.cc b/cc/resources/tile.cc |
index 48a10db70ffc205520fc8a26b41060420bab30b8..999ad322cb6df353c4af8b2b5722218e8cf65a14 100644 |
--- a/cc/resources/tile.cc |
+++ b/cc/resources/tile.cc |
@@ -101,4 +101,12 @@ RasterMode Tile::DetermineRasterModeForResolution( |
return std::min(raster_mode, current_mode); |
} |
+bool Tile::HasRasterTask() const { |
+ for (int mode = 0; mode < NUM_RASTER_MODES; ++mode) { |
+ if (managed_state_.tile_versions[mode].raster_task_) |
+ return true; |
+ } |
+ return false; |
+} |
+ |
} // namespace cc |