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

Unified Diff: skia/ext/bitmap_platform_device_mac_unittest.cc

Issue 2519083002: Revert "Revert "Change call-sites now that SkCanvas is not ref-counted"" (Closed)
Patch Set: rebase 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 b1f6ee74dab194fbcb6c7295996a3f66e0aea036..9d8020b0d6990aa23986119523380538bb52b9d9 100644
--- a/skia/ext/bitmap_platform_device_mac_unittest.cc
+++ b/skia/ext/bitmap_platform_device_mac_unittest.cc
@@ -32,7 +32,8 @@ TEST_F(BitmapPlatformDeviceMacTest, ClipRectTransformWithTranslate) {
SkMatrix transform;
transform.setTranslate(50, 140);
- sk_sp<SkCanvas> canvas(skia::CreateCanvas(bitmap_, CRASH_ON_FAILURE));
+ std::unique_ptr<SkCanvas> canvas =
+ skia::CreateCanvas(bitmap_, CRASH_ON_FAILURE);
canvas->setMatrix(transform);
ScopedPlatformPaint p(canvas.get());
@@ -50,7 +51,8 @@ TEST_F(BitmapPlatformDeviceMacTest, ClipRectTransformWithScale) {
SkMatrix transform;
transform.setScale(0.5, 0.5);
- sk_sp<SkCanvas> canvas(skia::CreateCanvas(bitmap_, CRASH_ON_FAILURE));
+ std::unique_ptr<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