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

Unified Diff: cc/layer.h

Issue 11175009: Implement SkImageFilter support in the compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODOs; comment out OVERRIDE. Created 8 years, 2 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
Index: cc/layer.h
diff --git a/cc/layer.h b/cc/layer.h
index cfb80b04fcedbb4108249e2dbcc26bc3ecf167fa..6e55d243894ec3c4be47d677e3220cc7523c4bc3 100644
--- a/cc/layer.h
+++ b/cc/layer.h
@@ -22,6 +22,8 @@ class WebAnimationDelegate;
class WebLayerScrollClient;
}
+class SkImageFilter;
+
namespace cc {
class CCActiveAnimation;
@@ -95,6 +97,9 @@ public:
void setFilters(const WebKit::WebFilterOperations&);
const WebKit::WebFilterOperations& filters() const { return m_filters; }
+ void setFilter(SkImageFilter* filter);
danakj 2012/10/19 19:34:24 same, setImageFilter?
Stephen White 2012/10/19 21:34:50 Same as above.
+ SkImageFilter* filter() const { return m_filter; }
+
// Background filters are filters applied to what is behind this layer, when they are viewed through non-opaque
// regions in this layer. They are used through the WebLayer interface, and are not exposed to HTML.
void setBackgroundFilters(const WebKit::WebFilterOperations&);
@@ -335,6 +340,7 @@ private:
float m_debugBorderWidth;
std::string m_debugName;
float m_opacity;
+ SkImageFilter* m_filter;
jamesr 2012/10/19 19:15:30 Should this be a SkTAutoUnref<> or something of th
Stephen White 2012/10/19 21:34:50 You're totally right. Wow, what a doozy. I've ad
WebKit::WebFilterOperations m_filters;
WebKit::WebFilterOperations m_backgroundFilters;
float m_anchorPointZ;

Powered by Google App Engine
This is Rietveld 408576698