| Index: third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
|
| diff --git a/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp b/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
|
| index 23ecc3d00cd0b2cdf325cd826974a7da4dcd24f9..9394b5d289e9e27556dee672377b056b3c1aef68 100644
|
| --- a/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
|
| +++ b/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
|
| @@ -25,20 +25,20 @@ public:
|
| DummyRectClient(const FloatRect& rect, Color color) : m_rect(rect), m_color(color) {}
|
| String debugName() const final { return "<dummy>"; }
|
| LayoutRect visualRect() const final { return enclosingLayoutRect(m_rect); }
|
| - PassRefPtr<SkPicture> makePicture() const;
|
| + sk_sp<SkPicture> makePicture() const;
|
| private:
|
| FloatRect m_rect;
|
| Color m_color;
|
| };
|
|
|
| -PassRefPtr<SkPicture> TestPaintArtifact::DummyRectClient::makePicture() const
|
| +sk_sp<SkPicture> TestPaintArtifact::DummyRectClient::makePicture() const
|
| {
|
| SkPictureRecorder recorder;
|
| SkCanvas* canvas = recorder.beginRecording(m_rect);
|
| SkPaint paint;
|
| paint.setColor(m_color.rgb());
|
| canvas->drawRect(m_rect, paint);
|
| - return fromSkSp(recorder.finishRecordingAsPicture());
|
| + return recorder.finishRecordingAsPicture();
|
| }
|
|
|
| TestPaintArtifact::TestPaintArtifact()
|
|
|