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; | |
75 void onDrawVertices(VertexMode vmode, int vertexCount, | 74 void onDrawVertices(VertexMode vmode, int vertexCount, |
76 const SkPoint vertices[], const SkPoint texs[], | 75 const SkPoint vertices[], const SkPoint texs[], |
77 const SkColor colors[], SkXfermode* xmode, | 76 const SkColor colors[], SkXfermode* xmode, |
78 const uint16_t indices[], int indexCount, | 77 const uint16_t indices[], int indexCount, |
79 const SkPaint&) override; | 78 const SkPaint&) override; |
80 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 79 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
81 const SkPoint texCoords[4], SkXfermode* xmode, | 80 const SkPoint texCoords[4], SkXfermode* xmode, |
82 const SkPaint& paint) override; | 81 const SkPaint& paint) override; |
83 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; | 82 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; |
84 | 83 |
85 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, | 84 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, |
86 const SkPaint&) override; | 85 const SkPaint&) override; |
87 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], | 86 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], |
88 const SkPaint&) override; | 87 const SkPaint&) override; |
89 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos
[], | 88 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos
[], |
90 SkScalar constY, const SkPaint&) override; | 89 SkScalar constY, const SkPaint&) override; |
91 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat
h, | 90 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat
h, |
92 const SkMatrix* matrix, const SkPaint&) override; | 91 const SkMatrix* matrix, const SkPaint&) override; |
93 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 92 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
94 const SkPaint& paint) override; | 93 const SkPaint& paint) override; |
95 | 94 |
96 private: | 95 private: |
97 class AutoPaintFilter; | 96 class AutoPaintFilter; |
98 | 97 |
99 typedef SkNWayCanvas INHERITED; | 98 typedef SkNWayCanvas INHERITED; |
100 }; | 99 }; |
101 | 100 |
102 #endif | 101 #endif |
OLD | NEW |