| Index: third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp b/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
|
| index 287fd124498edcfa51663c1da581a42f60292d0e..b435bac0e55d6bba12305ab44cdc6a8773b152c8 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
|
| @@ -30,13 +30,11 @@ ImagePattern::ImagePattern(PassRefPtr<Image> image, RepeatMode repeatMode)
|
| }
|
| }
|
|
|
| -sk_sp<SkShader> ImagePattern::createShader() const
|
| +sk_sp<SkShader> ImagePattern::createShader(const SkMatrix& localMatrix) const
|
| {
|
| if (!m_tileImage)
|
| return SkShader::MakeColorShader(SK_ColorTRANSPARENT);
|
|
|
| - SkMatrix localMatrix = affineTransformToSkMatrix(m_patternSpaceTransformation);
|
| -
|
| if (isRepeatXY()) {
|
| // Fast path: for repeatXY we just return a shader from the original image.
|
| return m_tileImage->makeShader(SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, &localMatrix);
|
|
|