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

Unified Diff: Source/platform/graphics/filters/FETurbulence.cpp

Issue 205033010: Remove --enable-accelerated-filters flag, Blink-side. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take AcceleratedImageBufferSurface behind the woodshed. Created 6 years, 9 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 | « Source/platform/graphics/filters/FETurbulence.h ('k') | Source/platform/graphics/filters/Filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/FETurbulence.cpp
diff --git a/Source/platform/graphics/filters/FETurbulence.cpp b/Source/platform/graphics/filters/FETurbulence.cpp
index 0134e7fd585027edbad69190ef579c33aea84365..d3c7bf8d46084f8b40268800665fb6688af69b27 100644
--- a/Source/platform/graphics/filters/FETurbulence.cpp
+++ b/Source/platform/graphics/filters/FETurbulence.cpp
@@ -415,24 +415,6 @@ SkShader* FETurbulence::createShader(const IntRect& filterRegion)
stitchTiles() ? &size : 0);
}
-bool FETurbulence::applySkia()
-{
- // For now, only use the skia implementation for accelerated rendering.
- if (!filter()->isAccelerated())
- return false;
-
- ImageBuffer* resultImage = createImageBufferResult();
- if (!resultImage)
- return false;
-
- const IntRect filterRegion(IntPoint::zero(), absolutePaintRect().size());
-
- SkPaint paint;
- paint.setShader(createShader(filterRegion))->unref();
- resultImage->context()->drawRect((SkRect)filterRegion, paint);
- return true;
-}
-
PassRefPtr<SkImageFilter> FETurbulence::createImageFilter(SkiaImageFilterBuilder* builder)
{
SkAutoTUnref<SkShader> shader(createShader(IntRect()));
« no previous file with comments | « Source/platform/graphics/filters/FETurbulence.h ('k') | Source/platform/graphics/filters/Filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698