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 30 matching lines...) Expand all Loading... |
41 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 41 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
42 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], | 42 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
43 const SkPaint& paint) SK_OVERRIDE; | 43 const SkPaint& paint) SK_OVERRIDE; |
44 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; | 44 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; |
45 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; | 45 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; |
46 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; | 46 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; |
47 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; | 47 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; |
48 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 48 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
49 const SkPaint* paint) SK_OVERRIDE; | 49 const SkPaint* paint) SK_OVERRIDE; |
50 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 50 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
51 const SkRect& dst, const SkPaint* paint) S
K_OVERRIDE; | 51 const SkRect& dst, const SkPaint* paint, |
| 52 DrawBitmapRectFlags flags) SK_OVERRIDE; |
52 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 53 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
53 const SkPaint* paint) SK_OVERRIDE; | 54 const SkPaint* paint) SK_OVERRIDE; |
54 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 55 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
55 const SkPaint* paint) SK_OVERRIDE; | 56 const SkPaint* paint) SK_OVERRIDE; |
56 virtual void drawText(const void* text, size_t byteLength, SkScalar x, | 57 virtual void drawText(const void* text, size_t byteLength, SkScalar x, |
57 SkScalar y, const SkPaint& paint) SK_OVERRIDE; | 58 SkScalar y, const SkPaint& paint) SK_OVERRIDE; |
58 virtual void drawPosText(const void* text, size_t byteLength, | 59 virtual void drawPosText(const void* text, size_t byteLength, |
59 const SkPoint pos[], const SkPaint& paint) SK_OVERR
IDE; | 60 const SkPoint pos[], const SkPaint& paint) SK_OVERR
IDE; |
60 virtual void drawPosTextH(const void* text, size_t byteLength, | 61 virtual void drawPosTextH(const void* text, size_t byteLength, |
61 const SkScalar xpos[], SkScalar constY, | 62 const SkScalar xpos[], SkScalar constY, |
(...skipping 12 matching lines...) Expand all Loading... |
74 private: | 75 private: |
75 lua_State* fL; | 76 lua_State* fL; |
76 SkString fFunc; | 77 SkString fFunc; |
77 | 78 |
78 void sendverb(const char verb[]); | 79 void sendverb(const char verb[]); |
79 | 80 |
80 typedef SkCanvas INHERITED; | 81 typedef SkCanvas INHERITED; |
81 }; | 82 }; |
82 | 83 |
83 #endif | 84 #endif |
OLD | NEW |