OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SkNWayCanvas_DEFINED | 9 #ifndef SkNWayCanvas_DEFINED |
10 #define SkNWayCanvas_DEFINED | 10 #define SkNWayCanvas_DEFINED |
(...skipping 18 matching lines...) Expand all Loading... |
29 const SkPaint&) SK_OVERRIDE; | 29 const SkPaint&) SK_OVERRIDE; |
30 virtual void drawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; | 30 virtual void drawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; |
31 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; | 31 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; |
32 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; | 32 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; |
33 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; | 33 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; |
34 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 34 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
35 const SkPaint*) SK_OVERRIDE; | 35 const SkPaint*) SK_OVERRIDE; |
36 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 36 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
37 const SkRect& dst, const SkPaint* paint, | 37 const SkRect& dst, const SkPaint* paint, |
38 DrawBitmapRectFlags flags) SK_OVERRIDE; | 38 DrawBitmapRectFlags flags) SK_OVERRIDE; |
| 39 virtual void drawImage(const SkImage* image, SkScalar left, SkScalar top, |
| 40 const SkPaint* paint) SK_OVERRIDE; |
| 41 virtual void drawImageRect(const SkImage* image, const SkRect* src, |
| 42 const SkRect& dst, |
| 43 const SkPaint* paint) SK_OVERRIDE; |
39 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 44 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
40 const SkPaint*) SK_OVERRIDE; | 45 const SkPaint*) SK_OVERRIDE; |
41 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 46 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
42 const SkRect& dst, | 47 const SkRect& dst, |
43 const SkPaint* paint = NULL) SK_OVERRIDE; | 48 const SkPaint* paint = NULL) SK_OVERRIDE; |
44 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 49 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
45 const SkPaint*) SK_OVERRIDE; | 50 const SkPaint*) SK_OVERRIDE; |
46 virtual void drawVertices(VertexMode vmode, int vertexCount, | 51 virtual void drawVertices(VertexMode vmode, int vertexCount, |
47 const SkPoint vertices[], const SkPoint texs[], | 52 const SkPoint vertices[], const SkPoint texs[], |
48 const SkColor colors[], SkXfermode* xmode, | 53 const SkColor colors[], SkXfermode* xmode, |
(...skipping 24 matching lines...) Expand all Loading... |
73 const SkPaint&) SK_OVERRIDE; | 78 const SkPaint&) SK_OVERRIDE; |
74 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 79 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
75 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 80 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
76 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 81 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
77 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 82 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; |
78 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 83 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
79 const SkPaint& paint) SK_OVERRIDE; | 84 const SkPaint& paint) SK_OVERRIDE; |
80 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 85 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
81 const SkPoint texCoords[4], SkXfermode* xmode, | 86 const SkPoint texCoords[4], SkXfermode* xmode, |
82 const SkPaint& paint) SK_OVERRIDE; | 87 const SkPaint& paint) SK_OVERRIDE; |
83 | 88 |
84 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 89 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
85 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 90 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
86 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 91 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
87 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 92 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
88 | 93 |
89 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; | 94 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; |
90 | 95 |
91 class Iter; | 96 class Iter; |
92 | 97 |
93 private: | 98 private: |
94 typedef SkCanvas INHERITED; | 99 typedef SkCanvas INHERITED; |
95 }; | 100 }; |
96 | 101 |
97 | 102 |
98 #endif | 103 #endif |
OLD | NEW |