Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/SVGClipPainter.cpp |
| diff --git a/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp b/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp |
| index afa0355f9291cb28e228c1f4a313d85dfaa454b2..a3f295d6cdfd64e0d958a78c236de3e9b297fb20 100644 |
| --- a/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp |
| +++ b/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp |
| @@ -130,8 +130,7 @@ bool SVGClipPainter::drawClipAsMask(GraphicsContext& context, const LayoutObject |
| SubtreeContentTransformScope contentTransformScope(contentTransform); |
| TransformRecorder contentTransformRecorder(maskContext, layoutObject, contentTransform); |
| - RefPtr<const SkPicture> clipContentPicture = m_clip.createContentPicture(); |
| - maskContext.getPaintController().createAndAppend<DrawingDisplayItem>(layoutObject, DisplayItem::kSVGClip, clipContentPicture.get()); |
| + maskContext.getPaintController().createAndAppend<DrawingDisplayItem>(layoutObject, DisplayItem::kSVGClip, m_clip.createContentPicture()); |
| } |
| if (clipPathClipper) |
| @@ -139,7 +138,7 @@ bool SVGClipPainter::drawClipAsMask(GraphicsContext& context, const LayoutObject |
| } |
| LayoutObjectDrawingRecorder drawingRecorder(context, layoutObject, DisplayItem::kSVGClip, targetPaintInvalidationRect); |
| - RefPtr<SkPicture> maskPicture = maskPictureBuilder.endRecording(); |
| + sk_sp<SkPicture> maskPicture = maskPictureBuilder.endRecording(); |
| context.drawPicture(maskPicture.get()); |
|
f(malita)
2016/09/01 03:55:37
Nit: .get() not needed anymore.
Łukasz Anforowicz
2016/09/01 20:50:57
This won't work - AFAICT blink::GraphicsContext::d
f(malita)
2016/09/01 21:03:43
Doh, yeah, I was thinking we're drawing to an SkCa
|
| return true; |
| } |