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

Unified Diff: cc/picture_layer_impl.h

Issue 11639050: cc: Support mask layers in impl-side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « cc/picture_layer.cc ('k') | cc/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_impl.h
diff --git a/cc/picture_layer_impl.h b/cc/picture_layer_impl.h
index 66f739bbb18dc9966cbcb08ced8883b44b090656..bf2db9e0764460998ecdc018b3f70dd2e6fec97f 100644
--- a/cc/picture_layer_impl.h
+++ b/cc/picture_layer_impl.h
@@ -41,10 +41,15 @@ public:
void SyncFromActiveLayer();
void SyncTiling(const PictureLayerTiling* tiling);
+ // Mask-related functions
+ void SetIsMask(bool is_mask);
+ virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE;
+
protected:
PictureLayerImpl(LayerTreeImpl* treeImpl, int id);
void AddTiling(float contents_scale, gfx::Size tile_size);
void SyncFromActiveLayer(const PictureLayerImpl* other);
+ gfx::Size TileSize() const;
PictureLayerTilingSet tilings_;
scoped_refptr<PicturePileImpl> pile_;
@@ -56,6 +61,7 @@ protected:
gfx::Size last_content_bounds_;
float last_content_scale_x_;
float last_content_scale_y_;
+ bool is_mask_;
friend class PictureLayer;
DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
« no previous file with comments | « cc/picture_layer.cc ('k') | cc/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698