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

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: Updated to ToT 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 1db1c3b8db591fe3e8572b21515a31f65ea0505b..e0450303327a53e8d0d49c72af04ec57d075cd85 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);
+ 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;
WebKit::WebFilterOperations m_filters;
WebKit::WebFilterOperations m_backgroundFilters;
float m_anchorPointZ;

Powered by Google App Engine
This is Rietveld 408576698