Index: cc/resources/tile.h |
diff --git a/cc/resources/tile.h b/cc/resources/tile.h |
index 7a94d2b69a028a9fd6a4879a0957fe5f1246ed38..2aa4c651480412fd7a58d2a6274d484c27110d87 100644 |
--- a/cc/resources/tile.h |
+++ b/cc/resources/tile.h |
@@ -82,8 +82,12 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> { |
picture_pile_ = pile; |
} |
- bool IsAssignedGpuMemory() const { |
- return tile_version().memory_state_ != NOT_ALLOWED_TO_USE_MEMORY; |
+ // For test only methods. |
+ bool HasRasterTaskForTesting() const { |
+ return !managed_state().raster_task.is_null(); |
+ } |
+ void ResetRasterTaskForTesting() { |
+ managed_state().raster_task.Reset(); |
} |
private: |