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 24 matching lines...) Expand all Loading... |
35 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE; | 35 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE; |
36 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE; | 36 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE; |
37 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE; | 37 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE; |
38 virtual bool clipRegion(const SkRegion& deviceRgn, | 38 virtual bool clipRegion(const SkRegion& deviceRgn, |
39 SkRegion::Op) SK_OVERRIDE; | 39 SkRegion::Op) SK_OVERRIDE; |
40 | 40 |
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 onDrawRect(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 onDrawPath(const SkPath& path, const SkPaint& paint) SK_OVERRID
E; |
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, | 51 const SkRect& dst, const SkPaint* paint, |
52 DrawBitmapRectFlags flags) SK_OVERRIDE; | 52 DrawBitmapRectFlags flags) SK_OVERRIDE; |
53 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 53 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
54 const SkPaint* paint) SK_OVERRIDE; | 54 const SkPaint* paint) SK_OVERRIDE; |
55 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 55 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
56 const SkPaint* paint) SK_OVERRIDE; | 56 const SkPaint* paint) SK_OVERRIDE; |
57 virtual void drawText(const void* text, size_t byteLength, SkScalar x, | 57 virtual void drawText(const void* text, size_t byteLength, SkScalar x, |
(...skipping 17 matching lines...) Expand all Loading... |
75 private: | 75 private: |
76 lua_State* fL; | 76 lua_State* fL; |
77 SkString fFunc; | 77 SkString fFunc; |
78 | 78 |
79 void sendverb(const char verb[]); | 79 void sendverb(const char verb[]); |
80 | 80 |
81 typedef SkCanvas INHERITED; | 81 typedef SkCanvas INHERITED; |
82 }; | 82 }; |
83 | 83 |
84 #endif | 84 #endif |
OLD | NEW |