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

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

Issue 1897333002: Refactor SkiaImageFilterBuilder into a namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 1d8da7f33b96fdfc79cc0d505782dbe32d87bcc1..8554cc88dc0dcab549c0555610b8f3d65106d2aa 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEColorMatrix.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEColorMatrix.cpp
@@ -160,9 +160,9 @@ bool FEColorMatrix::affectsTransparentPixels()
return m_type == FECOLORMATRIX_TYPE_MATRIX && m_values.size() >= kColorMatrixSize && m_values[19] > 0;
}
-sk_sp<SkImageFilter> FEColorMatrix::createImageFilter(SkiaImageFilterBuilder& builder)
+sk_sp<SkImageFilter> FEColorMatrix::createImageFilter()
{
- sk_sp<SkImageFilter> input(builder.build(inputEffect(0), operatingColorSpace()));
+ sk_sp<SkImageFilter> input(SkiaImageFilterBuilder::build(inputEffect(0), operatingColorSpace()));
sk_sp<SkColorFilter> filter = createColorFilter(m_type, m_values);
SkImageFilter::CropRect rect = getCropRect();
return SkColorFilterImageFilter::Make(std::move(filter), std::move(input), &rect);

Powered by Google App Engine
This is Rietveld 408576698