| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, | 56 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, |
| 57 const SkPaint*, SrcRectConstraint) override; | 57 const SkPaint*, SrcRectConstraint) override; |
| 58 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 58 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
| 59 const SkPaint*) override; | 59 const SkPaint*) override; |
| 60 void onDrawVertices(VertexMode vmode, int vertexCount, | 60 void onDrawVertices(VertexMode vmode, int vertexCount, |
| 61 const SkPoint vertices[], const SkPoint texs[], | 61 const SkPoint vertices[], const SkPoint texs[], |
| 62 const SkColor colors[], SkXfermode* xmode, | 62 const SkColor colors[], SkXfermode* xmode, |
| 63 const uint16_t indices[], int indexCount, | 63 const uint16_t indices[], int indexCount, |
| 64 const SkPaint&) override; | 64 const SkPaint&) override; |
| 65 | 65 |
| 66 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; | 66 void onClipRect(const SkRect&, ClipOp, ClipEdgeStyle) override; |
| 67 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; | 67 void onClipRRect(const SkRRect&, ClipOp, ClipEdgeStyle) override; |
| 68 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 68 void onClipPath(const SkPath&, ClipOp, ClipEdgeStyle) override; |
| 69 void onClipRegion(const SkRegion&, SkRegion::Op) override; | 69 void onClipRegion(const SkRegion&, ClipOp) override; |
| 70 | 70 |
| 71 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; | 71 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 lua_State* fL; | 74 lua_State* fL; |
| 75 SkString fFunc; | 75 SkString fFunc; |
| 76 | 76 |
| 77 void sendverb(const char verb[]); | 77 void sendverb(const char verb[]); |
| 78 | 78 |
| 79 typedef SkCanvas INHERITED; | 79 typedef SkCanvas INHERITED; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 #endif | 82 #endif |
| OLD | NEW |