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

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

Issue 1387573003: Pass SkiaImageFilterBuilder& to FilterEffect::createImageFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/FEBlend.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEBlend.cpp b/third_party/WebKit/Source/platform/graphics/filters/FEBlend.cpp
index c793961e1c62e7c65665c337a57d4fd726462411..30585dd1b32c2cf36fc285640278312e450f75ac 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEBlend.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEBlend.cpp
@@ -56,12 +56,12 @@ bool FEBlend::setBlendMode(WebBlendMode mode)
return true;
}
-PassRefPtr<SkImageFilter> FEBlend::createImageFilter(SkiaImageFilterBuilder* builder)
+PassRefPtr<SkImageFilter> FEBlend::createImageFilter(SkiaImageFilterBuilder& builder)
{
- RefPtr<SkImageFilter> foreground(builder->build(inputEffect(0), operatingColorSpace()));
- RefPtr<SkImageFilter> background(builder->build(inputEffect(1), operatingColorSpace()));
+ RefPtr<SkImageFilter> foreground(builder.build(inputEffect(0), operatingColorSpace()));
+ RefPtr<SkImageFilter> background(builder.build(inputEffect(1), operatingColorSpace()));
RefPtr<SkXfermode> mode(adoptRef(SkXfermode::Create(WebCoreCompositeToSkiaComposite(CompositeSourceOver, m_mode))));
- SkImageFilter::CropRect cropRect = getCropRect(builder->cropOffset());
+ SkImageFilter::CropRect cropRect = getCropRect(builder.cropOffset());
return adoptRef(SkXfermodeImageFilter::Create(mode.get(), background.get(), foreground.get(), &cropRect));
}

Powered by Google App Engine
This is Rietveld 408576698