Index: third_party/WebKit/Source/platform/graphics/GeneratedImage.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/GeneratedImage.cpp b/third_party/WebKit/Source/platform/graphics/GeneratedImage.cpp |
index afe68b2419c1b73ab320a33ff569789c17523f26..5a1b25147f3bbf1f335b6ee5fcb8694eec06d51a 100644 |
--- a/third_party/WebKit/Source/platform/graphics/GeneratedImage.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/GeneratedImage.cpp |
@@ -47,14 +47,14 @@ void GeneratedImage::drawPattern(GraphicsContext& destContext, const FloatRect& |
SkPictureBuilder builder(tileRect, nullptr, &destContext); |
builder.context().beginRecording(tileRect); |
drawTile(builder.context(), srcRect); |
- RefPtr<const SkPicture> tilePicture = builder.endRecording(); |
+ RefPtr<SkPicture> tilePicture = builder.endRecording(); |
AffineTransform patternTransform; |
patternTransform.translate(phase.x(), phase.y()); |
patternTransform.scale(scale.width(), scale.height()); |
patternTransform.translate(tileRect.x(), tileRect.y()); |
- RefPtr<Pattern> picturePattern = Pattern::createPicturePattern(tilePicture); |
+ RefPtr<Pattern> picturePattern = Pattern::createPicturePattern(tilePicture.release()); |
Stephen White
2016/03/18 14:48:27
Out of curiosity, is this release() necessary? Or
f(malita)
2016/03/18 15:11:53
The latter: it would work fine without a release,
|
picturePattern->setPatternSpaceTransform(patternTransform); |
SkPaint fillPaint = destContext.fillPaint(); |