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

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

Issue 1579993003: Use SkPaintImageFilter instead of SkRectShaderImageFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/render_surface_filters.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp b/third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp
index 1a102d9a598296c3881470b56386384f660e676f..145dc763329550e7e7165deab209fab5b34199ab 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp
@@ -25,8 +25,8 @@
#include "platform/graphics/filters/FETurbulence.h"
+#include "SkPaintImageFilter.h"
#include "SkPerlinNoiseShader.h"
-#include "SkRectShaderImageFilter.h"
#include "platform/graphics/filters/Filter.h"
#include "platform/graphics/filters/SkiaImageFilterBuilder.h"
#include "platform/text/TextStream.h"
@@ -152,8 +152,10 @@ PassRefPtr<SkImageFilter> FETurbulence::createImageFilter(SkiaImageFilterBuilder
return createTransparentBlack(builder);
SkAutoTUnref<SkShader> shader(createShader());
+ SkPaint paint;
+ paint.setShader(shader);
SkImageFilter::CropRect rect = getCropRect(builder.cropOffset());
- return adoptRef(SkRectShaderImageFilter::Create(shader, &rect));
+ return adoptRef(SkPaintImageFilter::Create(paint, &rect));
}
static TextStream& operator<<(TextStream& ts, const TurbulenceType& type)
« no previous file with comments | « cc/output/render_surface_filters.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698