OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkLua.h" | 8 #include "SkLua.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkData.h" | 10 #include "SkData.h" |
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 void SkLua::Load(lua_State* L) { | 917 void SkLua::Load(lua_State* L) { |
918 register_Sk(L); | 918 register_Sk(L); |
919 REG_CLASS(L, SkCanvas); | 919 REG_CLASS(L, SkCanvas); |
920 REG_CLASS(L, SkDocument); | 920 REG_CLASS(L, SkDocument); |
921 REG_CLASS(L, SkImage); | 921 REG_CLASS(L, SkImage); |
922 REG_CLASS(L, SkPath); | 922 REG_CLASS(L, SkPath); |
923 REG_CLASS(L, SkPaint); | 923 REG_CLASS(L, SkPaint); |
924 REG_CLASS(L, SkRRect); | 924 REG_CLASS(L, SkRRect); |
925 REG_CLASS(L, SkTypeface); | 925 REG_CLASS(L, SkTypeface); |
926 } | 926 } |
| 927 |
| 928 extern "C" int luaopen_skia(lua_State* L) { |
| 929 SkLua::Load(L); |
| 930 return 0; |
| 931 } |
OLD | NEW |