OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
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 | 9 |
10 #ifndef SkDraw_DEFINED | 10 #ifndef SkDraw_DEFINED |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 /* If dstOrNull is null, computes a dst by mapping the bitmap's bounds throu
gh the matrix. */ | 62 /* If dstOrNull is null, computes a dst by mapping the bitmap's bounds throu
gh the matrix. */ |
63 void drawBitmap(const SkBitmap&, const SkMatrix&, const SkRect* dstOrNull
, | 63 void drawBitmap(const SkBitmap&, const SkMatrix&, const SkRect* dstOrNull
, |
64 const SkPaint&) const; | 64 const SkPaint&) const; |
65 void drawSprite(const SkBitmap&, int x, int y, const SkPaint&) const; | 65 void drawSprite(const SkBitmap&, int x, int y, const SkPaint&) const; |
66 void drawText(const char text[], size_t byteLength, SkScalar x, | 66 void drawText(const char text[], size_t byteLength, SkScalar x, |
67 SkScalar y, const SkPaint& paint) const; | 67 SkScalar y, const SkPaint& paint) const; |
68 void drawPosText(const char text[], size_t byteLength, | 68 void drawPosText(const char text[], size_t byteLength, |
69 const SkScalar pos[], int scalarsPerPosition, | 69 const SkScalar pos[], int scalarsPerPosition, |
70 const SkPoint& offset, const SkPaint& paint) const; | 70 const SkPoint& offset, const SkPaint& paint) const; |
71 void drawTextOnPath(const char text[], size_t byteLength, | |
72 const SkPath&, const SkMatrix*, const SkPaint&) const; | |
73 void drawVertices(SkCanvas::VertexMode mode, int count, | 71 void drawVertices(SkCanvas::VertexMode mode, int count, |
74 const SkPoint vertices[], const SkPoint textures[], | 72 const SkPoint vertices[], const SkPoint textures[], |
75 const SkColor colors[], SkXfermode* xmode, | 73 const SkColor colors[], SkXfermode* xmode, |
76 const uint16_t indices[], int ptCount, | 74 const uint16_t indices[], int ptCount, |
77 const SkPaint& paint) const; | 75 const SkPaint& paint) const; |
78 | 76 |
79 /** | 77 /** |
80 * Overwrite the target with the path's coverage (i.e. its mask). | 78 * Overwrite the target with the path's coverage (i.e. its mask). |
81 * Will overwrite the entire device, so it need not be zero'd first. | 79 * Will overwrite the entire device, so it need not be zero'd first. |
82 * | 80 * |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 SkDrawProcs* fProcs; // optional | 150 SkDrawProcs* fProcs; // optional |
153 | 151 |
154 #ifdef SK_DEBUG | 152 #ifdef SK_DEBUG |
155 void validate() const; | 153 void validate() const; |
156 #else | 154 #else |
157 void validate() const {} | 155 void validate() const {} |
158 #endif | 156 #endif |
159 }; | 157 }; |
160 | 158 |
161 #endif | 159 #endif |
OLD | NEW |