aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkLua.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-03-29 11:32:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-29 11:32:50 -0700
commitcfb6bdf767796c950f89985445738d2d8e7f12b0 (patch)
tree5b412fe9d767eef852f55316a99eb9776751ccaf /src/utils/SkLua.cpp
parent3ebd2760dd34da6f5af23e9c7cb1b6a61e9cea9d (diff)
switch xfermodes over to sk_sp
Diffstat (limited to 'src/utils/SkLua.cpp')
-rw-r--r--src/utils/SkLua.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
index 01bf507f17..9af5bfd84e 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;
}