| 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 14 matching lines...) Expand all Loading... |
| 25 SaveFlags flags) SK_OVERRIDE; | 25 SaveFlags flags) SK_OVERRIDE; |
| 26 virtual void restore() SK_OVERRIDE; | 26 virtual void restore() SK_OVERRIDE; |
| 27 | 27 |
| 28 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; | 28 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; |
| 29 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 29 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
| 30 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; | 30 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; |
| 31 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 31 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
| 32 virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE; | 32 virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE; |
| 33 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; | 33 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; |
| 34 | 34 |
| 35 virtual bool clipRect(const SkRect&, 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; | |
| 38 virtual bool clipRegion(const SkRegion& deviceRgn, | |
| 39 SkRegion::Op) SK_OVERRIDE; | |
| 40 | |
| 41 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 35 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
| 42 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], | 36 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
| 43 const SkPaint& paint) SK_OVERRIDE; | 37 const SkPaint& paint) SK_OVERRIDE; |
| 44 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; | 38 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; |
| 45 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; | 39 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; |
| 46 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; | 40 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; |
| 47 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; | 41 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; |
| 48 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 42 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
| 49 const SkPaint* paint) SK_OVERRIDE; | 43 const SkPaint* paint) SK_OVERRIDE; |
| 50 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 44 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 68 virtual void drawVertices(VertexMode vmode, int vertexCount, | 62 virtual void drawVertices(VertexMode vmode, int vertexCount, |
| 69 const SkPoint vertices[], const SkPoint texs[], | 63 const SkPoint vertices[], const SkPoint texs[], |
| 70 const SkColor colors[], SkXfermode* xmode, | 64 const SkColor colors[], SkXfermode* xmode, |
| 71 const uint16_t indices[], int indexCount, | 65 const uint16_t indices[], int indexCount, |
| 72 const SkPaint& paint) SK_OVERRIDE; | 66 const SkPaint& paint) SK_OVERRIDE; |
| 73 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; | 67 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; |
| 74 | 68 |
| 75 protected: | 69 protected: |
| 76 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 70 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
| 77 | 71 |
| 72 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 73 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
| 74 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 75 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
| 76 |
| 78 private: | 77 private: |
| 79 lua_State* fL; | 78 lua_State* fL; |
| 80 SkString fFunc; | 79 SkString fFunc; |
| 81 | 80 |
| 82 void sendverb(const char verb[]); | 81 void sendverb(const char verb[]); |
| 83 | 82 |
| 84 typedef SkCanvas INHERITED; | 83 typedef SkCanvas INHERITED; |
| 85 }; | 84 }; |
| 86 | 85 |
| 87 #endif | 86 #endif |
| OLD | NEW |