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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FEColorMatrix.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/FEColorMatrix.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEColorMatrix.cpp b/third_party/WebKit/Source/platform/graphics/filters/FEColorMatrix.cpp
index 39d5df9fa881fed7a0d1341737abd28a9a6f0314..fadfd3b21bfd68780736d781317bf8be3a0e4e3f 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEColorMatrix.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEColorMatrix.cpp
@@ -164,8 +164,8 @@ PassRefPtr<SkImageFilter> FEColorMatrix::createImageFilter(SkiaImageFilterBuilde
{
RefPtr<SkImageFilter> input(builder.build(inputEffect(0), operatingColorSpace()));
sk_sp<SkColorFilter> filter = createColorFilter(m_type, m_values);
- SkImageFilter::CropRect rect = getCropRect();
- return adoptRef(SkColorFilterImageFilter::Create(filter.get(), input.get(), &rect));
+ SkImageFilter::CropRect rect;
+ return adoptRef(SkColorFilterImageFilter::Create(filter.get(), input.get(), getCropRect(&rect)));
}
static TextStream& operator<<(TextStream& ts, const ColorMatrixType& type)

Powered by Google App Engine
This is Rietveld 408576698