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

Unified Diff: cc/resources/managed_tile_state.h

Issue 183663003: cc: Add tiling raster tile iterators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
Index: cc/resources/managed_tile_state.h
diff --git a/cc/resources/managed_tile_state.h b/cc/resources/managed_tile_state.h
index 644562309f0446a8ca29b6396348f462d56970ba..e4579833829d992308512b6e4fe1a1c9fb016794 100644
--- a/cc/resources/managed_tile_state.h
+++ b/cc/resources/managed_tile_state.h
@@ -69,10 +69,15 @@ class CC_EXPORT ManagedTileState {
return mode_ == RESOURCE_MODE || mode_ == PICTURE_PILE_MODE;
}
+ inline bool has_resource() const { return !!resource_; }
+
size_t GPUMemoryUsageInBytes() const;
void SetSolidColorForTesting(SkColor color) { set_solid_color(color); }
void SetHasTextForTesting(bool has_text) { has_text_ = has_text; }
+ void SetResourceForTesting(scoped_ptr<ScopedResource> resource) {
+ resource_ = resource.Pass();
+ }
private:
friend class TileManager;

Powered by Google App Engine
This is Rietveld 408576698