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

Unified Diff: cc/layer.h

Issue 11659004: Add support for tagging layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: exposing enum in cc. 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 | « no previous file | cc/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer.h
diff --git a/cc/layer.h b/cc/layer.h
index e7df4c08417438213d18838adcc177e5d440b765..de7d427d2dc72875f43b8414856ab866571cb7c6 100644
--- a/cc/layer.h
+++ b/cc/layer.h
@@ -52,6 +52,12 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
public:
typedef std::vector<scoped_refptr<Layer> > LayerList;
+ enum Tag {
+ kTagNone = 0x00,
+ kTagNonCompositedContentHost = 0x01,
+ kTagIgnoreForContinuousRepaints = 0x02,
+ };
+
static scoped_refptr<Layer> create();
int id() const;
@@ -284,6 +290,11 @@ public:
gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const;
+ void setTags(unsigned int tags);
+ unsigned int getTags() const;
+ void addTag(Tag tag);
+ bool getTag(Tag tag) const;
+
// In impl-side painting, this returns true if this layer type is not
// compatible with the main thread running freely, such as a double-buffered
// canvas that doesn't want to be triple-buffered across all three trees.
@@ -401,6 +412,8 @@ private:
WebKit::WebLayerScrollClient* m_layerScrollClient;
DrawProperties<Layer, RenderSurface> m_drawProperties;
+
+ unsigned int m_tags;
};
void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped_refptr<Layer> >::iterator, void*);
« no previous file with comments | « no previous file | cc/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698