Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(842)

Unified Diff: third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Rebasing... Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()
« no previous file with comments | « third_party/WebKit/Source/platform/image-decoders/SegmentReader.cpp ('k') | third_party/WebKit/Source/platform/text/TextRun.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698