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

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 (past the Great Renaming) 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
« no previous file with comments | « cc/gl_renderer.cc ('k') | 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 e912afb1117bf9a574fb57294004a1bb81c39cc8..6607b3598f72cc8f7ce8b7d28b88bdbca69ce0dc 100644
--- a/cc/layer.h
+++ b/cc/layer.h
@@ -22,6 +22,8 @@ class WebAnimationDelegate;
class WebLayerScrollClient;
}
+class SkImageFilter;
+
namespace cc {
class ActiveAnimation;
@@ -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;
« no previous file with comments | « cc/gl_renderer.cc ('k') | cc/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698