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

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

Issue 1862733002: Remove all use of crop edges from SkImageFilter::CropRect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix FEMorphology bug Created 4 years, 8 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: 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 c391bb103aff66e60849886dd3ecef21611e1c15..e38000970a89651b0a8d0cd841807ab6d2d46ab2 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FETurbulence.cpp
@@ -153,8 +153,8 @@ PassRefPtr<SkImageFilter> FETurbulence::createImageFilter(SkiaImageFilterBuilder
SkPaint paint;
paint.setShader(createShader());
- SkImageFilter::CropRect rect = getCropRect();
- return adoptRef(SkPaintImageFilter::Create(paint, &rect));
+ SkImageFilter::CropRect rect;
+ return adoptRef(SkPaintImageFilter::Create(paint, getCropRect(&rect)));
}
static TextStream& operator<<(TextStream& ts, const TurbulenceType& type)

Powered by Google App Engine
This is Rietveld 408576698