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

Unified Diff: cc/output/render_surface_filters.h

Issue 21154002: Add support for converting cc::FilterOperations into an SkImageFilter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 3 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/output/gl_renderer_unittest.cc ('k') | cc/output/render_surface_filters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/render_surface_filters.h
diff --git a/cc/output/render_surface_filters.h b/cc/output/render_surface_filters.h
index 5ab78dc77e7438ac31abcba184531e2ec98e0054..09d0f732a03b795fde5ef4cbc36cac57152161a3 100644
--- a/cc/output/render_surface_filters.h
+++ b/cc/output/render_surface_filters.h
@@ -8,9 +8,11 @@
#include "base/basictypes.h"
#include "cc/base/cc_export.h"
+#include "skia/ext/refptr.h"
class GrContext;
class SkBitmap;
+class SkImageFilter;
namespace gfx {
class SizeF;
@@ -28,6 +30,10 @@ class CC_EXPORT RenderSurfaceFilters {
GrContext* gr_context);
static FilterOperations Optimize(const FilterOperations& filters);
+ static skia::RefPtr<SkImageFilter> BuildImageFilter(
+ const FilterOperations& filters,
+ gfx::SizeF size);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(RenderSurfaceFilters);
};
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/render_surface_filters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698