Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Side by Side Diff: include/core/SkDraw.h

Issue 933483002: add Method param to drawTextOnPath, supporting SVG spec Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add guard for android Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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, 71 void drawTextOnPath(const char text[], size_t byteLength, const SkPath&, const SkMatrix*,
72 const SkPath&, const SkMatrix*, const SkPaint&) const; 72 SkCanvas::TextOnPathMethod, const SkPaint&) const;
73 void drawVertices(SkCanvas::VertexMode mode, int count, 73 void drawVertices(SkCanvas::VertexMode mode, int count,
74 const SkPoint vertices[], const SkPoint textures[], 74 const SkPoint vertices[], const SkPoint textures[],
75 const SkColor colors[], SkXfermode* xmode, 75 const SkColor colors[], SkXfermode* xmode,
76 const uint16_t indices[], int ptCount, 76 const uint16_t indices[], int ptCount,
77 const SkPaint& paint) const; 77 const SkPaint& paint) const;
78 78
79 /** 79 /**
80 * Overwrite the target with the path's coverage (i.e. its mask). 80 * 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. 81 * Will overwrite the entire device, so it need not be zero'd first.
82 * 82 *
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 SkDrawProcs* fProcs; // optional 152 SkDrawProcs* fProcs; // optional
153 153
154 #ifdef SK_DEBUG 154 #ifdef SK_DEBUG
155 void validate() const; 155 void validate() const;
156 #else 156 #else
157 void validate() const {} 157 void validate() const {}
158 #endif 158 #endif
159 }; 159 };
160 160
161 #endif 161 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698