add key handlers to lua
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/652473002
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
index 1336404..4a65465 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -693,6 +693,11 @@
return 1;
}
+static int lpaint_setSubpixelText(lua_State* L) {
+ get_obj<SkPaint>(L, 1)->setSubpixelText(lua2bool(L, 2));
+ return 1;
+}
+
static int lpaint_isDevKernText(lua_State* L) {
lua_pushboolean(L, get_obj<SkPaint>(L, 1)->isDevKernText());
return 1;
@@ -936,6 +941,7 @@
{ "isFakeBoldText", lpaint_isFakeBoldText },
{ "isLinearText", lpaint_isLinearText },
{ "isSubpixelText", lpaint_isSubpixelText },
+ { "setSubpixelText", lpaint_setSubpixelText },
{ "isDevKernText", lpaint_isDevKernText },
{ "isLCDRenderText", lpaint_isLCDRenderText },
{ "isEmbeddedBitmapText", lpaint_isEmbeddedBitmapText },