| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 54 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
| 55 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | 55 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, |
| 56 const SkPaint&) SK_OVERRIDE; | 56 const SkPaint&) SK_OVERRIDE; |
| 57 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | 57 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], |
| 58 const SkPaint&) SK_OVERRIDE; | 58 const SkPaint&) SK_OVERRIDE; |
| 59 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 59 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
| 60 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 60 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
| 61 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 61 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
| 62 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 62 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; |
| 63 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
| 64 const SkPaint& paint) SK_OVERRIDE; |
| 63 | 65 |
| 64 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 66 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 65 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 67 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
| 66 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 68 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 67 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 69 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
| 68 | 70 |
| 69 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; | 71 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; |
| 70 | 72 |
| 71 private: | 73 private: |
| 72 lua_State* fL; | 74 lua_State* fL; |
| 73 SkString fFunc; | 75 SkString fFunc; |
| 74 | 76 |
| 75 void sendverb(const char verb[]); | 77 void sendverb(const char verb[]); |
| 76 | 78 |
| 77 typedef SkCanvas INHERITED; | 79 typedef SkCanvas INHERITED; |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 #endif | 82 #endif |
| OLD | NEW |