Index: cc/render_surface_filters.cc |
diff --git a/cc/render_surface_filters.cc b/cc/render_surface_filters.cc |
index 29c031cf5089319674a448d383e8c2855e9e5dc0..79421768c2852d8a2e7f7b3b132f4da6b3f2ec09 100644 |
--- a/cc/render_surface_filters.cc |
+++ b/cc/render_surface_filters.cc |
@@ -8,7 +8,6 @@ |
#include "skia/ext/refptr.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations.h" |
-#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
#include "third_party/skia/include/effects/SkBlurImageFilter.h" |
#include "third_party/skia/include/effects/SkColorMatrixFilter.h" |
@@ -377,9 +376,9 @@ WebKit::WebFilterOperations RenderSurfaceFilters::optimize(const WebKit::WebFilt |
return newList; |
} |
-SkBitmap RenderSurfaceFilters::apply(const WebKit::WebFilterOperations& filters, unsigned textureId, const gfx::SizeF& size, WebKit::WebGraphicsContext3D* context3D, GrContext* grContext) |
+SkBitmap RenderSurfaceFilters::apply(const WebKit::WebFilterOperations& filters, unsigned textureId, gfx::SizeF size, GrContext* grContext) |
{ |
- if (!context3D || !grContext) |
+ if (!grContext) |
return SkBitmap(); |
WebKit::WebFilterOperations optimizedFilters = optimize(filters); |
@@ -448,7 +447,6 @@ SkBitmap RenderSurfaceFilters::apply(const WebKit::WebFilterOperations& filters, |
} |
state.swap(); |
} |
- context3D->flush(); |
return state.source(); |
} |