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

Unified Diff: src/utils/SkLua.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: src/utils/SkLua.cpp
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
index 01bf507f170052504bb40206434bb64339c43e33..9af5bfd84e6fe38bced97df729a7eb113c032f65 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -1098,7 +1098,7 @@ static int lpaint_getXfermode(lua_State* L) {
static int lpaint_setXfermode(lua_State* L) {
SkPaint* paint = get_obj<SkPaint>(L, 1);
- paint->setXfermode(get_ref<SkXfermode>(L, 2));
+ paint->setXfermode(sk_ref_sp(get_ref<SkXfermode>(L, 2)));
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698