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

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: Created 7 years, 5 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/output/render_surface_filters.h
diff --git a/cc/output/render_surface_filters.h b/cc/output/render_surface_filters.h
index 5ab78dc77e7438ac31abcba184531e2ec98e0054..96aabb43235dbe4da731a5901449dc37756a7e66 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,9 @@ class CC_EXPORT RenderSurfaceFilters {
GrContext* gr_context);
static FilterOperations Optimize(const FilterOperations& filters);
+ static skia::RefPtr<SkImageFilter> BuildImageFilter(
+ const FilterOperations& filters);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(RenderSurfaceFilters);
};

Powered by Google App Engine
This is Rietveld 408576698