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

Unified Diff: gm/patch.cpp

Issue 1832223002: switch xfermodes over to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 9 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: gm/patch.cpp
diff --git a/gm/patch.cpp b/gm/patch.cpp
index d27c4e1a85fb18301603872850348cff5d98d27e..40eb46f4b6ca3729fddf5296bf7622b8474a2d9c 100644
--- a/gm/patch.cpp
+++ b/gm/patch.cpp
@@ -95,7 +95,7 @@ DEF_SIMPLE_GM(patch_primitive, canvas, 800, 800) {
canvas->save();
for (int y = 0; y < 3; y++) {
- SkAutoTUnref<SkXfermode> xfer(SkXfermode::Create(modes[y]));
+ sk_sp<SkXfermode> xfer(SkXfermode::Make(modes[y]));
for (int x = 0; x < 4; x++) {
canvas->save();

Powered by Google App Engine
This is Rietveld 408576698