Lines Matching refs:fL
100 fL = luaL_newstate();
101 luaL_openlibs(fL);
102 SkLua::Load(fL);
105 SkLua::SkLua(lua_State* L) : fL(L), fWeOwnL(false) {}
110 lua_getglobal(fL, fTermCode.c_str());
111 if (lua_pcall(fL, 0, 0, 0) != LUA_OK) {
112 SkDebugf("lua err: %s\n", lua_tostring(fL, -1));
115 lua_close(fL);
120 int err = luaL_loadstring(fL, code) || lua_pcall(fL, 0, 0, 0);
122 SkDebugf("--- lua failed: %s\n", lua_tostring(fL, -1));
135 #define CHECK_SETFIELD(key) do if (key) lua_setfield(fL, -2, key); while (0)
219 lua_pushboolean(fL, value);
224 lua_pushstring(fL, str);
231 lua_pushstring(fL, s.c_str());
236 lua_pushstring(fL, str.c_str());
241 lua_newtable(fL);
242 setfield_number(fL, "a", SkColorGetA(color) / 255.0);
243 setfield_number(fL, "r", SkColorGetR(color) / 255.0);
244 setfield_number(fL, "g", SkColorGetG(color) / 255.0);
245 setfield_number(fL, "b", SkColorGetB(color) / 255.0);
250 lua_pushnumber(fL, (double)value);
255 lua_pushnumber(fL, SkScalarToLua(value));
260 lua_newtable(fL);
263 setarray_number(fL, i + 1, (double)array[i]);
269 lua_newtable(fL);
272 lua_newtable(fL);
275 lua_rawseti(fL, -2, i + 1);
281 lua_newtable(fL);
284 setarray_scalar(fL, i + 1, array[i]);
290 lua_newtable(fL);
291 setfield_scalar(fL, "left", r.fLeft);
292 setfield_scalar(fL, "top", r.fTop);
293 setfield_scalar(fL, "right", r.fRight);
294 setfield_scalar(fL, "bottom", r.fBottom);
299 push_obj(fL, rr);
304 lua_newtable(fL);
305 setfield_scalar(fL, "phase", info.fPhase);
312 push_obj(fL, matrix);
317 push_obj(fL, paint);
322 push_obj(fL, path);
327 push_ref(fL, canvas);
332 push_ref(fL, const_cast<SkTextBlob*>(blob));
369 lua_newtable(fL);
375 lua_rawseti(fL, -2, ++i);
381 lua_newtable(fL);
1916 AutoCallLua(lua_State* L, const char func[], const char verb[]) : fL(L) {
1928 if (lua_pcall(fL, 1, 0, 0) != LUA_OK) {
1929 SkDebugf("lua err: %s\n", lua_tostring(fL, -1));
1931 lua_settop(fL, -1);
1935 lua_State* fL;
1938 #define AUTO_LUA(verb) AutoCallLua acl(fL, fFunc.c_str(), verb)