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

Unified Diff: cc/resources/managed_tile_state.h

Issue 12642010: Implement on demand quad rasterization for PicturePiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit fixes & adding ResizeResource unit test. Created 7 years, 9 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 3452da75afaf10fe3d7b43ce3670245e42c67fb0..e935c69b771dfbd3731a71e9bbd9ac5ba675e782 100644
--- a/cc/resources/managed_tile_state.h
+++ b/cc/resources/managed_tile_state.h
@@ -67,6 +67,10 @@ class CC_EXPORT ManagedTileState {
friend class TileManager;
friend class ManagedTileState;
+ void set_texture() {
reveman 2013/03/22 23:56:50 set_resource() and please change the enum to RESOU
Leandro GraciĆ” Gil 2013/03/25 15:21:02 Done.
+ mode_ = TEXTURE_MODE;
+ }
+
void set_transparent() {
mode_ = TRANSPARENT_MODE;
}
@@ -76,6 +80,14 @@ class CC_EXPORT ManagedTileState {
solid_color_ = color;
}
+ void set_rasterize_on_demand() {
+ mode_ = PICTURE_PILE_MODE;
+ }
+
+ void set_contents_swizzled(bool contents_swizzled) {
+ contents_swizzled_ = contents_swizzled;
+ }
+
Mode mode_;
SkColor solid_color_;

Powered by Google App Engine
This is Rietveld 408576698