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 SkAndroidSDKCanvas_DEFINED | 8 #ifndef SkAndroidSDKCanvas_DEFINED |
9 #define SkAndroidSDKCanvas_DEFINED | 9 #define SkAndroidSDKCanvas_DEFINED |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 const SkPaint& paint) override; | 55 const SkPaint& paint) override; |
56 | 56 |
57 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, | 57 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, |
58 const SkPaint& paint) override; | 58 const SkPaint& paint) override; |
59 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], | 59 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], |
60 const SkPaint& paint) override; | 60 const SkPaint& paint) override; |
61 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos
[], | 61 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos
[], |
62 SkScalar constY, const SkPaint& paint) override; | 62 SkScalar constY, const SkPaint& paint) override; |
63 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat
h, | 63 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat
h, |
64 const SkMatrix* matrix, const SkPaint& paint) override
; | 64 const SkMatrix* matrix, const SkPaint& paint) override
; |
| 65 void onDrawTextRSXform(const void* text, size_t byteLength, const SkRSXform
xform[], |
| 66 const SkRect* cull, const SkPaint& paint) override; |
65 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 67 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
66 const SkPaint& paint) override; | 68 const SkPaint& paint) override; |
67 | 69 |
68 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 70 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
69 const SkPoint texCoords[4], SkXfermode* xmode, | 71 const SkPoint texCoords[4], SkXfermode* xmode, |
70 const SkPaint& paint) override; | 72 const SkPaint& paint) override; |
71 | 73 |
72 void onDrawImage(const SkImage*, SkScalar, SkScalar, const SkPaint*) overrid
e; | 74 void onDrawImage(const SkImage*, SkScalar, SkScalar, const SkPaint*) overrid
e; |
73 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkP
aint*, | 75 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkP
aint*, |
74 SrcRectConstraint) override; | 76 SrcRectConstraint) override; |
(...skipping 25 matching lines...) Expand all Loading... |
100 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; | 102 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; |
101 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 103 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
102 void onClipRegion(const SkRegion&, SkRegion::Op) override; | 104 void onClipRegion(const SkRegion&, SkRegion::Op) override; |
103 void onDiscard() override; | 105 void onDiscard() override; |
104 | 106 |
105 protected: | 107 protected: |
106 SkCanvas* fProxyTarget; | 108 SkCanvas* fProxyTarget; |
107 }; | 109 }; |
108 | 110 |
109 #endif // SkAndroidSDKCanvas_DEFINED | 111 #endif // SkAndroidSDKCanvas_DEFINED |
OLD | NEW |