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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FEOffset.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/FEOffset.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEOffset.cpp b/third_party/WebKit/Source/platform/graphics/filters/FEOffset.cpp
index e5ccfd704e8f6e28c1200d44abd73b616c7975e3..35090177a9de1ba15097ae25ccf8d2528674328c 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEOffset.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEOffset.cpp
@@ -73,11 +73,15 @@ FloatRect FEOffset::mapRect(const FloatRect& rect, bool forward) const
return result;
}
-sk_sp<SkImageFilter> FEOffset::createImageFilter(SkiaImageFilterBuilder& builder)
+sk_sp<SkImageFilter> FEOffset::createImageFilter()
{
Filter* filter = this->getFilter();
SkImageFilter::CropRect cropRect = getCropRect();
- return SkOffsetImageFilter::Make(SkFloatToScalar(filter->applyHorizontalScale(m_dx)), SkFloatToScalar(filter->applyVerticalScale(m_dy)), builder.build(inputEffect(0), operatingColorSpace()), &cropRect);
+ return SkOffsetImageFilter::Make(
+ SkFloatToScalar(filter->applyHorizontalScale(m_dx)),
+ SkFloatToScalar(filter->applyVerticalScale(m_dy)),
+ SkiaImageFilterBuilder::build(inputEffect(0), operatingColorSpace()),
+ &cropRect);
}
TextStream& FEOffset::externalRepresentation(TextStream& ts, int indent) const

Powered by Google App Engine
This is Rietveld 408576698