Chromium Code Reviews| Index: third_party/WebKit/Source/platform/graphics/Image.cpp |
| diff --git a/third_party/WebKit/Source/platform/graphics/Image.cpp b/third_party/WebKit/Source/platform/graphics/Image.cpp |
| index 93ca41dc4074416e232eb394ee5e90c870597468..4d3174b34966d5122d49f38955070bcdc5877519 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/Image.cpp |
| +++ b/third_party/WebKit/Source/platform/graphics/Image.cpp |
| @@ -222,7 +222,7 @@ void Image::drawTiledBorder(GraphicsContext& ctxt, |
| namespace { |
| -sk_sp<PaintShader> createPatternShader(const SkImage* image, |
| +sk_sp<PaintShader> createPatternShader(sk_sp<const SkImage> image, |
| const SkMatrix& shaderMatrix, |
| const PaintFlags& paint, |
| const FloatSize& spacing, |
| @@ -310,7 +310,7 @@ void Image::drawPattern(GraphicsContext& context, |
| context.computeFilterQuality(this, destRect, normSrcRect)); |
| flags.setAntiAlias(context.shouldAntialias()); |
| flags.setShader( |
| - createPatternShader(image.get(), localMatrix, flags, |
| + createPatternShader(image, localMatrix, flags, |
|
danakj
2017/03/16 20:06:16
move()
|
| FloatSize(repeatSpacing.width() / scale.width(), |
| repeatSpacing.height() / scale.height()), |
| tmx, tmy)); |