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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContextTest.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/graphics/GraphicsContextTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp
index 5b5886e53fbab9f10c28584a257ae23f4d209edf..54d8e18fcc1d1b64e26bca39b45ed3637a292e57 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp
@@ -78,7 +78,7 @@ TEST(GraphicsContextTest, pictureRecording)
context.beginRecording(bounds);
context.fillRect(FloatRect(0, 0, 50, 50), opaque, SkXfermode::kSrcOver_Mode);
- RefPtr<const SkPicture> picture = context.endRecording();
+ sk_sp<const SkPicture> picture = context.endRecording();
canvas.drawPicture(picture.get());
EXPECT_OPAQUE_PIXELS_ONLY_IN_RECT(bitmap, IntRect(0, 0, 50, 50))
@@ -121,7 +121,7 @@ TEST(GraphicsContextTest, UnboundedDrawsAreClipped)
// Make the device opaque in 10,10 40x40.
context.fillRect(FloatRect(10, 10, 40, 40), opaque, SkXfermode::kSrcOver_Mode);
- RefPtr<const SkPicture> picture = context.endRecording();
+ sk_sp<const SkPicture> picture = context.endRecording();
canvas.drawPicture(picture.get());
EXPECT_OPAQUE_PIXELS_ONLY_IN_RECT(bitmap, IntRect(10, 10, 40, 40));

Powered by Google App Engine
This is Rietveld 408576698