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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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/FEDisplacementMap.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.cpp b/third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.cpp
index 616fe646fefd2db3c3d9e4babd5ddb0f5b0752ea..900e2b3469f5dafabf05bfd298b27ee6d8d860cf 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.cpp
@@ -48,8 +48,8 @@ PassRefPtrWillBeRawPtr<FEDisplacementMap> FEDisplacementMap::create(Filter* filt
FloatRect FEDisplacementMap::mapPaintRect(const FloatRect& rect, bool)
{
FloatRect result = rect;
- result.inflateX(filter()->applyHorizontalScale(m_scale / 2));
- result.inflateY(filter()->applyVerticalScale(m_scale / 2));
+ result.inflateX(getFilter()->applyHorizontalScale(m_scale / 2));
+ result.inflateY(getFilter()->applyVerticalScale(m_scale / 2));
return result;
}
@@ -118,7 +118,7 @@ PassRefPtr<SkImageFilter> FEDisplacementMap::createImageFilter(SkiaImageFilterBu
SkImageFilter::CropRect cropRect = getCropRect();
// FIXME : Only applyHorizontalScale is used and applyVerticalScale is ignored
// This can be fixed by adding a 2nd scale parameter to SkDisplacementMapEffect
- return adoptRef(SkDisplacementMapEffect::Create(typeX, typeY, SkFloatToScalar(filter()->applyHorizontalScale(m_scale)), displ.get(), color.get(), &cropRect));
+ return adoptRef(SkDisplacementMapEffect::Create(typeX, typeY, SkFloatToScalar(getFilter()->applyHorizontalScale(m_scale)), displ.get(), color.get(), &cropRect));
}
static TextStream& operator<<(TextStream& ts, const ChannelSelectorType& type)

Powered by Google App Engine
This is Rietveld 408576698