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

Unified Diff: skia/ext/bitmap_platform_device_mac_unittest.cc

Issue 2509983004: Revert "Change call-sites now that SkCanvas is not ref-counted" (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « skia/ext/bitmap_platform_device_mac.cc ('k') | skia/ext/bitmap_platform_device_skia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_mac_unittest.cc
diff --git a/skia/ext/bitmap_platform_device_mac_unittest.cc b/skia/ext/bitmap_platform_device_mac_unittest.cc
index 9d8020b0d6990aa23986119523380538bb52b9d9..b1f6ee74dab194fbcb6c7295996a3f66e0aea036 100644
--- a/skia/ext/bitmap_platform_device_mac_unittest.cc
+++ b/skia/ext/bitmap_platform_device_mac_unittest.cc
@@ -32,8 +32,7 @@ TEST_F(BitmapPlatformDeviceMacTest, ClipRectTransformWithTranslate) {
SkMatrix transform;
transform.setTranslate(50, 140);
- std::unique_ptr<SkCanvas> canvas =
- skia::CreateCanvas(bitmap_, CRASH_ON_FAILURE);
+ sk_sp<SkCanvas> canvas(skia::CreateCanvas(bitmap_, CRASH_ON_FAILURE));
canvas->setMatrix(transform);
ScopedPlatformPaint p(canvas.get());
@@ -51,8 +50,7 @@ TEST_F(BitmapPlatformDeviceMacTest, ClipRectTransformWithScale) {
SkMatrix transform;
transform.setScale(0.5, 0.5);
- std::unique_ptr<SkCanvas> canvas =
- skia::CreateCanvas(bitmap_, CRASH_ON_FAILURE);
+ sk_sp<SkCanvas> canvas(skia::CreateCanvas(bitmap_, CRASH_ON_FAILURE));
canvas->setMatrix(transform);
ScopedPlatformPaint p(canvas.get());
« no previous file with comments | « skia/ext/bitmap_platform_device_mac.cc ('k') | skia/ext/bitmap_platform_device_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698