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

Unified Diff: cc/layers/layer.h

Issue 15051011: Add CompositingReasons to compositor layer types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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') | cc/layers/layer.cc » ('J')
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 82548ba66bcc35adab1abc4c6bb88d8aeb4ea9c1..7caab6e9ef46d997454466d5f11f4f11e26079d3 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -22,6 +22,7 @@
#include "cc/layers/render_surface.h"
#include "cc/trees/occlusion_tracker.h"
#include "skia/ext/refptr.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebCompositingReasons.h"
danakj 2013/05/15 14:02:43 Can we avoid adding new WebKit headers in cc? AIUI
enne (OOO) 2013/05/15 15:51:51 +1000 You'll need to add a parallel enum structur
#include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkImageFilter.h"
@@ -287,6 +288,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
virtual void SetIsMask(bool is_mask) {}
void SetDebugName(const std::string& debug_name);
+ void SetCompositingReasons(WebKit::WebCompositingReasons reasons);
virtual void PushPropertiesTo(LayerImpl* layer);
@@ -452,6 +454,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
gfx::PointF anchor_point_;
SkColor background_color_;
std::string debug_name_;
+ WebKit::WebCompositingReasons compositing_reasons_;
float opacity_;
skia::RefPtr<SkImageFilter> filter_;
WebKit::WebFilterOperations filters_;
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698