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

Unified Diff: gm/lcdoverlap.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/lcdoverlap.cpp
diff --git a/gm/lcdoverlap.cpp b/gm/lcdoverlap.cpp
index 17775646a6bee6256bb1924311311da8a1fb4925..aae27d8c1aa5a3e42c7225091174504bc096d44d 100644
--- a/gm/lcdoverlap.cpp
+++ b/gm/lcdoverlap.cpp
@@ -60,8 +60,8 @@ protected:
SK_ColorMAGENTA,
};
- SkAutoTUnref<SkXfermode> xfermode(SkXfermode::Create(mode));
- SkAutoTUnref<SkXfermode> xfermode2(SkXfermode::Create(mode2));
+ sk_sp<SkXfermode> xfermode(SkXfermode::Make(mode));
+ sk_sp<SkXfermode> xfermode2(SkXfermode::Make(mode2));
for (size_t i = 0; i < SK_ARRAY_COUNT(colors); i++) {
canvas->save();
canvas->translate(x, y);
« no previous file with comments | « gm/lcdblendmodes.cpp ('k') | gm/patch.cpp » ('j') | include/effects/SkXfermodeImageFilter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698