OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
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 SkDevice_DEFINED | 8 #ifndef SkDevice_DEFINED |
9 #define SkDevice_DEFINED | 9 #define SkDevice_DEFINED |
10 | 10 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 const SkPaint& paint, | 211 const SkPaint& paint, |
212 SkCanvas::DrawBitmapRectFlags flags) = 0; | 212 SkCanvas::DrawBitmapRectFlags flags) = 0; |
213 | 213 |
214 /** | 214 /** |
215 * Does not handle text decoration. | 215 * Does not handle text decoration. |
216 * Decorations (underline and stike-thru) will be handled by SkCanvas. | 216 * Decorations (underline and stike-thru) will be handled by SkCanvas. |
217 */ | 217 */ |
218 virtual void drawText(const SkDraw&, const void* text, size_t len, | 218 virtual void drawText(const SkDraw&, const void* text, size_t len, |
219 SkScalar x, SkScalar y, const SkPaint& paint) = 0; | 219 SkScalar x, SkScalar y, const SkPaint& paint) = 0; |
220 virtual void drawPosText(const SkDraw&, const void* text, size_t len, | 220 virtual void drawPosText(const SkDraw&, const void* text, size_t len, |
221 const SkScalar pos[], int scalarsPerPos, | 221 const SkScalar pos[], SkScalar constY, |
222 const SkPoint& offset, const SkPaint& paint) = 0; | 222 int scalarsPerPos, const SkPaint& paint) = 0; |
223 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, | 223 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, |
224 const SkPath& path, const SkMatrix* matrix, | 224 const SkPath& path, const SkMatrix* matrix, |
225 const SkPaint& paint) = 0; | 225 const SkPaint& paint) = 0; |
226 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, | 226 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, |
227 const SkPoint verts[], const SkPoint texs[], | 227 const SkPoint verts[], const SkPoint texs[], |
228 const SkColor colors[], SkXfermode* xmode, | 228 const SkColor colors[], SkXfermode* xmode, |
229 const uint16_t indices[], int indexCount, | 229 const uint16_t indices[], int indexCount, |
230 const SkPaint& paint) = 0; | 230 const SkPaint& paint) = 0; |
231 // default implementation unrolls the blob runs. | 231 // default implementation unrolls the blob runs. |
232 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc
alar y, | 232 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc
alar y, |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 SkDeviceProperties* fLeakyProperties; // will always exist. | 384 SkDeviceProperties* fLeakyProperties; // will always exist. |
385 | 385 |
386 #ifdef SK_DEBUG | 386 #ifdef SK_DEBUG |
387 bool fAttachedToCanvas; | 387 bool fAttachedToCanvas; |
388 #endif | 388 #endif |
389 | 389 |
390 typedef SkRefCnt INHERITED; | 390 typedef SkRefCnt INHERITED; |
391 }; | 391 }; |
392 | 392 |
393 #endif | 393 #endif |
OLD | NEW |