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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const SkColor colors[], SkXfermode* xmode, | 52 const SkColor colors[], SkXfermode* xmode, |
53 const uint16_t indices[], int indexCount, | 53 const uint16_t indices[], int indexCount, |
54 const SkPaint& paint) SK_OVERRIDE; | 54 const SkPaint& paint) SK_OVERRIDE; |
55 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; | 55 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; |
56 | 56 |
57 protected: | 57 protected: |
58 virtual void willSave(SaveFlags) SK_OVERRIDE; | 58 virtual void willSave(SaveFlags) SK_OVERRIDE; |
59 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 59 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
60 virtual void willRestore() SK_OVERRIDE; | 60 virtual void willRestore() SK_OVERRIDE; |
61 | 61 |
62 virtual void didTranslate(SkScalar, SkScalar) SK_OVERRIDE; | |
63 virtual void didScale(SkScalar, SkScalar) SK_OVERRIDE; | |
64 virtual void didRotate(SkScalar) SK_OVERRIDE; | |
65 virtual void didSkew(SkScalar, SkScalar) SK_OVERRIDE; | |
66 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; | 62 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
67 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 63 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
68 | 64 |
69 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 65 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
70 | 66 |
71 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 67 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
72 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 68 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
73 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 69 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
74 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 70 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
75 | 71 |
76 private: | 72 private: |
77 lua_State* fL; | 73 lua_State* fL; |
78 SkString fFunc; | 74 SkString fFunc; |
79 | 75 |
80 void sendverb(const char verb[]); | 76 void sendverb(const char verb[]); |
81 | 77 |
82 typedef SkCanvas INHERITED; | 78 typedef SkCanvas INHERITED; |
83 }; | 79 }; |
84 | 80 |
85 #endif | 81 #endif |
OLD | NEW |