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

Unified Diff: cc/render_pass.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/render_pass.h
diff --git a/cc/render_pass.h b/cc/render_pass.h
index 7a15df18cbf4fd91cb5a8913963094f1a3df7549..4b6daa348b2a5028e70c90ec7e47dee9a2387b26 100644
--- a/cc/render_pass.h
+++ b/cc/render_pass.h
@@ -17,6 +17,8 @@
#include <public/WebTransformationMatrix.h>
#include <vector>
+class SkImageFilter;
+
namespace cc {
class CCLayerImpl;
@@ -90,6 +92,9 @@ public:
const WebKit::WebFilterOperations& backgroundFilters() const { return m_backgroundFilters; }
void setBackgroundFilters(const WebKit::WebFilterOperations& filters) { m_backgroundFilters = filters; }
+ SkImageFilter* filter() const { return m_filter; }
danakj 2012/10/19 19:34:24 can we rename this to imageFilter()?
+ void setFilter(SkImageFilter* filter);
+
bool hasTransparentBackground() const { return m_hasTransparentBackground; }
void setHasTransparentBackground(bool transparent) { m_hasTransparentBackground = transparent; }
@@ -108,6 +113,7 @@ protected:
bool m_hasOcclusionFromOutsideTargetSurface;
WebKit::WebFilterOperations m_filters;
WebKit::WebFilterOperations m_backgroundFilters;
+ SkImageFilter* m_filter;
DISALLOW_COPY_AND_ASSIGN(CCRenderPass);
};

Powered by Google App Engine
This is Rietveld 408576698