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 #ifndef SkLua_DEFINED | 8 #ifndef SkLua_DEFINED |
9 #define SkLua_DEFINED | 9 #define SkLua_DEFINED |
10 | 10 |
11 #include "SkClipStack.h" | 11 #include "SkClipStack.h" |
12 #include "SkColor.h" | 12 #include "SkColor.h" |
| 13 #include "SkPathEffect.h" |
13 #include "SkScalar.h" | 14 #include "SkScalar.h" |
14 #include "SkString.h" | 15 #include "SkString.h" |
15 | 16 |
16 struct lua_State; | 17 struct lua_State; |
17 | 18 |
18 class SkCanvas; | 19 class SkCanvas; |
19 class SkMatrix; | 20 class SkMatrix; |
20 class SkPaint; | 21 class SkPaint; |
21 class SkPath; | 22 class SkPath; |
22 struct SkRect; | 23 struct SkRect; |
(...skipping 21 matching lines...) Expand all Loading... |
44 void pushString(const char[], const char tableKey[] = NULL); | 45 void pushString(const char[], const char tableKey[] = NULL); |
45 void pushString(const char[], size_t len, const char tableKey[] = NULL); | 46 void pushString(const char[], size_t len, const char tableKey[] = NULL); |
46 void pushString(const SkString&, const char tableKey[] = NULL); | 47 void pushString(const SkString&, const char tableKey[] = NULL); |
47 void pushArrayU16(const uint16_t[], int count, const char tableKey[] = NULL)
; | 48 void pushArrayU16(const uint16_t[], int count, const char tableKey[] = NULL)
; |
48 void pushArrayPoint(const SkPoint[], int count, const char key[] = NULL); | 49 void pushArrayPoint(const SkPoint[], int count, const char key[] = NULL); |
49 void pushColor(SkColor, const char tableKey[] = NULL); | 50 void pushColor(SkColor, const char tableKey[] = NULL); |
50 void pushU32(uint32_t, const char tableKey[] = NULL); | 51 void pushU32(uint32_t, const char tableKey[] = NULL); |
51 void pushScalar(SkScalar, const char tableKey[] = NULL); | 52 void pushScalar(SkScalar, const char tableKey[] = NULL); |
52 void pushRect(const SkRect&, const char tableKey[] = NULL); | 53 void pushRect(const SkRect&, const char tableKey[] = NULL); |
53 void pushRRect(const SkRRect&, const char tableKey[] = NULL); | 54 void pushRRect(const SkRRect&, const char tableKey[] = NULL); |
| 55 void pushDash(const SkPathEffect::DashInfo&, const char tableKey[] = NULL); |
54 void pushMatrix(const SkMatrix&, const char tableKey[] = NULL); | 56 void pushMatrix(const SkMatrix&, const char tableKey[] = NULL); |
55 void pushPaint(const SkPaint&, const char tableKey[] = NULL); | 57 void pushPaint(const SkPaint&, const char tableKey[] = NULL); |
56 void pushPath(const SkPath&, const char tableKey[] = NULL); | 58 void pushPath(const SkPath&, const char tableKey[] = NULL); |
57 void pushCanvas(SkCanvas*, const char tableKey[] = NULL); | 59 void pushCanvas(SkCanvas*, const char tableKey[] = NULL); |
58 void pushClipStack(const SkClipStack&, const char tableKey[] = NULL); | 60 void pushClipStack(const SkClipStack&, const char tableKey[] = NULL); |
59 void pushClipStackElement(const SkClipStack::Element& element, const char ta
bleKey[] = NULL); | 61 void pushClipStackElement(const SkClipStack::Element& element, const char ta
bleKey[] = NULL); |
60 | 62 |
61 // This SkCanvas lua methods is declared here to benefit from SkLua's friend
ship with SkCanvas. | 63 // This SkCanvas lua methods is declared here to benefit from SkLua's friend
ship with SkCanvas. |
62 static int lcanvas_getReducedClipStack(lua_State* L); | 64 static int lcanvas_getReducedClipStack(lua_State* L); |
63 | 65 |
64 private: | 66 private: |
65 lua_State* fL; | 67 lua_State* fL; |
66 SkString fTermCode; | 68 SkString fTermCode; |
67 bool fWeOwnL; | 69 bool fWeOwnL; |
68 }; | 70 }; |
69 | 71 |
70 #endif | 72 #endif |
OLD | NEW |