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

Unified Diff: cc/layers/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 | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 0016527f3f4906bfda7a9927580d17870eb3b918..534316e10cc3236afe53f88b90204a26602c3bd1 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -65,6 +65,12 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
INVALID_ID = -1,
};
+ enum LayerMaskType {
+ NOT_MASK = 0,
+ MULTI_TEXTURE_MASK,
+ SINGLE_TEXTURE_MASK,
+ };
+
static scoped_refptr<Layer> Create();
int id() const { return inputs_.layer_id; }
@@ -312,7 +318,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
virtual void SavePaintProperties();
// Returns true iff anything was updated that needs to be committed.
virtual bool Update();
- virtual void SetIsMask(bool is_mask) {}
+ virtual void SetLayerMaskType(Layer::LayerMaskType type) {}
virtual bool IsSuitableForGpuRasterization() const;
virtual std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698