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 28 matching lines...) Expand all Loading... |
39 const SkMatrix* matrix, const SkPaint&) overri
de; | 39 const SkMatrix* matrix, const SkPaint&) overri
de; |
40 void onDrawTextRSXform(const void* text, size_t byteLength, const SkRSXform
xform[], | 40 void onDrawTextRSXform(const void* text, size_t byteLength, const SkRSXform
xform[], |
41 const SkRect* cull, const SkPaint& paint) override; | 41 const SkRect* cull, const SkPaint& paint) override; |
42 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 42 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
43 const SkPaint& paint) override; | 43 const SkPaint& paint) override; |
44 | 44 |
45 void onDrawPaint(const SkPaint&) override; | 45 void onDrawPaint(const SkPaint&) override; |
46 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) override; | 46 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) override; |
47 void onDrawRect(const SkRect&, const SkPaint&) override; | 47 void onDrawRect(const SkRect&, const SkPaint&) override; |
48 void onDrawOval(const SkRect&, const SkPaint&) override; | 48 void onDrawOval(const SkRect&, const SkPaint&) override; |
| 49 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) over
ride; |
49 void onDrawRRect(const SkRRect&, const SkPaint&) override; | 50 void onDrawRRect(const SkRRect&, const SkPaint&) override; |
50 void onDrawPath(const SkPath&, const SkPaint&) override; | 51 void onDrawPath(const SkPath&, const SkPaint&) override; |
51 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; | 52 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; |
52 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, | 53 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, |
53 SrcRectConstraint) override; | 54 SrcRectConstraint) override; |
54 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; | 55 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; |
55 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, | 56 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, |
56 const SkPaint*, SrcRectConstraint) override; | 57 const SkPaint*, SrcRectConstraint) override; |
57 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 58 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
58 const SkPaint*) override; | 59 const SkPaint*) override; |
(...skipping 13 matching lines...) Expand all Loading... |
72 private: | 73 private: |
73 lua_State* fL; | 74 lua_State* fL; |
74 SkString fFunc; | 75 SkString fFunc; |
75 | 76 |
76 void sendverb(const char verb[]); | 77 void sendverb(const char verb[]); |
77 | 78 |
78 typedef SkCanvas INHERITED; | 79 typedef SkCanvas INHERITED; |
79 }; | 80 }; |
80 | 81 |
81 #endif | 82 #endif |
OLD | NEW |