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 21 matching lines...) Expand all Loading... |
32 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 32 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
33 const SkRect& dst, const SkPaint* paint, | 33 const SkRect& dst, const SkPaint* paint, |
34 DrawBitmapRectFlags flags) SK_OVERRIDE; | 34 DrawBitmapRectFlags flags) SK_OVERRIDE; |
35 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 35 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
36 const SkPaint* paint) SK_OVERRIDE; | 36 const SkPaint* paint) SK_OVERRIDE; |
37 virtual void drawVertices(VertexMode vmode, int vertexCount, | 37 virtual void drawVertices(VertexMode vmode, int vertexCount, |
38 const SkPoint vertices[], const SkPoint texs[], | 38 const SkPoint vertices[], const SkPoint texs[], |
39 const SkColor colors[], SkXfermode* xmode, | 39 const SkColor colors[], SkXfermode* xmode, |
40 const uint16_t indices[], int indexCount, | 40 const uint16_t indices[], int indexCount, |
41 const SkPaint& paint) SK_OVERRIDE; | 41 const SkPaint& paint) SK_OVERRIDE; |
42 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; | |
43 | 42 |
44 protected: | 43 protected: |
45 virtual void willSave() SK_OVERRIDE; | 44 virtual void willSave() SK_OVERRIDE; |
46 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 45 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
47 virtual void willRestore() SK_OVERRIDE; | 46 virtual void willRestore() SK_OVERRIDE; |
48 | 47 |
49 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; | 48 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
50 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 49 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
51 | 50 |
52 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 51 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
71 private: | 70 private: |
72 lua_State* fL; | 71 lua_State* fL; |
73 SkString fFunc; | 72 SkString fFunc; |
74 | 73 |
75 void sendverb(const char verb[]); | 74 void sendverb(const char verb[]); |
76 | 75 |
77 typedef SkCanvas INHERITED; | 76 typedef SkCanvas INHERITED; |
78 }; | 77 }; |
79 | 78 |
80 #endif | 79 #endif |
OLD | NEW |