| 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 cc9ddb51291ffcd7aad922905b63e8c818a9e3ef..53263232608af2526a083fea1b4af254d3291a2e 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.cpp
|
| @@ -115,10 +115,10 @@ PassRefPtr<SkImageFilter> FEDisplacementMap::createImageFilter(SkiaImageFilterBu
|
| RefPtr<SkImageFilter> displ = builder.build(inputEffect(1), operatingColorSpace());
|
| SkDisplacementMapEffect::ChannelSelectorType typeX = toSkiaMode(m_xChannelSelector);
|
| SkDisplacementMapEffect::ChannelSelectorType typeY = toSkiaMode(m_yChannelSelector);
|
| - SkImageFilter::CropRect cropRect = getCropRect();
|
| + SkImageFilter::CropRect cropRect;
|
| // 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(getFilter()->applyHorizontalScale(m_scale)), displ.get(), color.get(), &cropRect));
|
| + return adoptRef(SkDisplacementMapEffect::Create(typeX, typeY, SkFloatToScalar(getFilter()->applyHorizontalScale(m_scale)), displ.get(), color.get(), getCropRect(&cropRect)));
|
| }
|
|
|
| static TextStream& operator<<(TextStream& ts, const ChannelSelectorType& type)
|
|
|