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_; |