• Home
  • Raw
  • Download

Lines Matching refs:fL

124     fL = luaL_newstate();  in SkLua()
125 luaL_openlibs(fL); in SkLua()
126 SkLua::Load(fL); in SkLua()
129 SkLua::SkLua(lua_State* L) : fL(L), fWeOwnL(false) {} in SkLua()
134 lua_getglobal(fL, fTermCode.c_str()); in ~SkLua()
135 if (lua_pcall(fL, 0, 0, 0) != LUA_OK) { in ~SkLua()
136 SkDebugf("lua err: %s\n", lua_tostring(fL, -1)); in ~SkLua()
139 lua_close(fL); in ~SkLua()
144 int err = luaL_loadstring(fL, code) || lua_pcall(fL, 0, 0, 0); in runCode()
146 SkDebugf("--- lua failed: %s\n", lua_tostring(fL, -1)); in runCode()
159 #define CHECK_SETFIELD(key) do if (key) lua_setfield(fL, -2, key); while (0)
248 lua_pushboolean(fL, value); in pushBool()
253 lua_pushstring(fL, str); in pushString()
260 lua_pushstring(fL, s.c_str()); in pushString()
265 lua_pushstring(fL, str.c_str()); in pushString()
270 lua_newtable(fL); in pushColor()
271 setfield_number(fL, "a", SkColorGetA(color) / 255.0); in pushColor()
272 setfield_number(fL, "r", SkColorGetR(color) / 255.0); in pushColor()
273 setfield_number(fL, "g", SkColorGetG(color) / 255.0); in pushColor()
274 setfield_number(fL, "b", SkColorGetB(color) / 255.0); in pushColor()
279 lua_pushnumber(fL, (double)value); in pushU32()
284 lua_pushnumber(fL, SkScalarToLua(value)); in pushScalar()
289 lua_newtable(fL); in pushArrayU16()
292 setarray_number(fL, i + 1, (double)array[i]); in pushArrayU16()
298 lua_newtable(fL); in pushArrayPoint()
301 lua_newtable(fL); in pushArrayPoint()
304 lua_rawseti(fL, -2, i + 1); in pushArrayPoint()
310 lua_newtable(fL); in pushArrayScalar()
313 setarray_scalar(fL, i + 1, array[i]); in pushArrayScalar()
319 lua_newtable(fL); in pushRect()
320 setfield_scalar(fL, "left", r.fLeft); in pushRect()
321 setfield_scalar(fL, "top", r.fTop); in pushRect()
322 setfield_scalar(fL, "right", r.fRight); in pushRect()
323 setfield_scalar(fL, "bottom", r.fBottom); in pushRect()
328 push_obj(fL, rr); in pushRRect()
333 lua_newtable(fL); in pushDash()
334 setfield_scalar(fL, "phase", info.fPhase); in pushDash()
341 push_obj(fL, matrix); in pushMatrix()
346 push_obj(fL, paint); in pushPaint()
351 push_obj(fL, path); in pushPath()
356 push_ptr(fL, canvas); in pushCanvas()
361 push_ref(fL, const_cast<SkTextBlob*>(blob)); in pushTextBlob()
1767 AutoCallLua(lua_State* L, const char func[], const char verb[]) : fL(L) { in AutoCallLua()
1779 if (lua_pcall(fL, 1, 0, 0) != LUA_OK) { in ~AutoCallLua()
1780 SkDebugf("lua err: %s\n", lua_tostring(fL, -1)); in ~AutoCallLua()
1782 lua_settop(fL, -1); in ~AutoCallLua()
1786 lua_State* fL; member in AutoCallLua
1789 #define AUTO_LUA(verb) AutoCallLua acl(fL, fFunc.c_str(), verb)