OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 SkPaintFilterCanvas_DEFINED | 8 #ifndef SkPaintFilterCanvas_DEFINED |
9 #define SkPaintFilterCanvas_DEFINED | 9 #define SkPaintFilterCanvas_DEFINED |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void onDrawOval(const SkRect&, const SkPaint&) override; | 64 void onDrawOval(const SkRect&, const SkPaint&) override; |
65 void onDrawPath(const SkPath&, const SkPaint&) override; | 65 void onDrawPath(const SkPath&, const SkPaint&) override; |
66 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; | 66 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; |
67 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, | 67 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, |
68 SrcRectConstraint) override; | 68 SrcRectConstraint) override; |
69 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; | 69 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; |
70 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, | 70 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, |
71 const SkPaint*, SrcRectConstraint) override; | 71 const SkPaint*, SrcRectConstraint) override; |
72 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 72 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
73 const SkPaint*) override; | 73 const SkPaint*) override; |
| 74 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri
de; |
74 void onDrawVertices(VertexMode vmode, int vertexCount, | 75 void onDrawVertices(VertexMode vmode, int vertexCount, |
75 const SkPoint vertices[], const SkPoint texs[], | 76 const SkPoint vertices[], const SkPoint texs[], |
76 const SkColor colors[], SkXfermode* xmode, | 77 const SkColor colors[], SkXfermode* xmode, |
77 const uint16_t indices[], int indexCount, | 78 const uint16_t indices[], int indexCount, |
78 const SkPaint&) override; | 79 const SkPaint&) override; |
79 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 80 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
80 const SkPoint texCoords[4], SkXfermode* xmode, | 81 const SkPoint texCoords[4], SkXfermode* xmode, |
81 const SkPaint& paint) override; | 82 const SkPaint& paint) override; |
82 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; | 83 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; |
83 | 84 |
84 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, | 85 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, |
85 const SkPaint&) override; | 86 const SkPaint&) override; |
86 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], | 87 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], |
87 const SkPaint&) override; | 88 const SkPaint&) override; |
88 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos
[], | 89 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos
[], |
89 SkScalar constY, const SkPaint&) override; | 90 SkScalar constY, const SkPaint&) override; |
90 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat
h, | 91 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat
h, |
91 const SkMatrix* matrix, const SkPaint&) override; | 92 const SkMatrix* matrix, const SkPaint&) override; |
92 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 93 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
93 const SkPaint& paint) override; | 94 const SkPaint& paint) override; |
94 | 95 |
95 private: | 96 private: |
96 class AutoPaintFilter; | 97 class AutoPaintFilter; |
97 | 98 |
98 typedef SkNWayCanvas INHERITED; | 99 typedef SkNWayCanvas INHERITED; |
99 }; | 100 }; |
100 | 101 |
101 #endif | 102 #endif |
OLD | NEW |