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

Unified Diff: cc/layers/picture_layer.h

Issue 2688673003: cc: Distinguish single texture mask from normal masks (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « cc/layers/picture_image_layer.cc ('k') | cc/layers/picture_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer.h
diff --git a/cc/layers/picture_layer.h b/cc/layers/picture_layer.h
index f4e2751404104b1c10af954fea6d5bf0d430c472..cec17df2613755765fd2bde0570f8ac8de421aad 100644
--- a/cc/layers/picture_layer.h
+++ b/cc/layers/picture_layer.h
@@ -34,7 +34,7 @@ class CC_EXPORT PictureLayer : public Layer {
void PushPropertiesTo(LayerImpl* layer) override;
void SetNeedsDisplayRect(const gfx::Rect& layer_rect) override;
bool Update() override;
- void SetIsMask(bool is_mask) override;
+ void SetLayerMaskType(Layer::LayerMaskType mask_type) override;
sk_sp<SkPicture> GetPicture() const override;
bool IsSuitableForGpuRasterization() const override;
@@ -70,7 +70,7 @@ class CC_EXPORT PictureLayer : public Layer {
bool HasDrawableContent() const override;
- bool is_mask() const { return is_mask_; }
+ Layer::LayerMaskType mask_type() { return mask_type_; }
PictureLayerInputs picture_layer_inputs_;
@@ -86,7 +86,7 @@ class CC_EXPORT PictureLayer : public Layer {
Region last_updated_invalidation_;
int update_source_frame_number_;
- bool is_mask_;
+ Layer::LayerMaskType mask_type_;
DISALLOW_COPY_AND_ASSIGN(PictureLayer);
};
« no previous file with comments | « cc/layers/picture_image_layer.cc ('k') | cc/layers/picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698