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 SkLuaCanvas_DEFINED | 8 #ifndef SkLuaCanvas_DEFINED |
9 #define SkLuaCanvas_DEFINED | 9 #define SkLuaCanvas_DEFINED |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 29 void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
30 | 30 |
31 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID
E; | 31 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID
E; |
32 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | 32 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, |
33 const SkPaint&) SK_OVERRIDE; | 33 const SkPaint&) SK_OVERRIDE; |
34 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | 34 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], |
35 const SkPaint&) SK_OVERRIDE; | 35 const SkPaint&) SK_OVERRIDE; |
36 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 36 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
37 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 37 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
38 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 38 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
39 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 39 const SkMatrix* matrix, |
| 40 SK_SUPPORT_LEGACY_DRAWTEXTONPATH_PARAM const Sk
Paint&) SK_OVERRIDE; |
40 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 41 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
41 const SkPaint& paint) SK_OVERRIDE; | 42 const SkPaint& paint) SK_OVERRIDE; |
42 | 43 |
43 void onDrawPaint(const SkPaint&) SK_OVERRIDE; | 44 void onDrawPaint(const SkPaint&) SK_OVERRIDE; |
44 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) SK_OVERRIDE; | 45 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) SK_OVERRIDE; |
45 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; | 46 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; |
46 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; | 47 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; |
47 void onDrawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; | 48 void onDrawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; |
48 void onDrawPath(const SkPath&, const SkPaint&) SK_OVERRIDE; | 49 void onDrawPath(const SkPath&, const SkPaint&) SK_OVERRIDE; |
49 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) SK_OVERRIDE; | 50 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) SK_OVERRIDE; |
(...skipping 21 matching lines...) Expand all Loading... |
71 private: | 72 private: |
72 lua_State* fL; | 73 lua_State* fL; |
73 SkString fFunc; | 74 SkString fFunc; |
74 | 75 |
75 void sendverb(const char verb[]); | 76 void sendverb(const char verb[]); |
76 | 77 |
77 typedef SkCanvas INHERITED; | 78 typedef SkCanvas INHERITED; |
78 }; | 79 }; |
79 | 80 |
80 #endif | 81 #endif |
OLD | NEW |