diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2010-05-10 12:24:59 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-05-10 12:24:59 -0700 |
commit | c20341572f90f36d1abcb95e48ae6635c740a2f6 (patch) | |
tree | e75d895d6676c621ee76433ffecf43d1b2bd68a7 /include | |
parent | 9d5c1475691d6f982c314593b8be023136639caf (diff) | |
parent | 74054d95b10bbd34ffbed078b1a673a9622c5281 (diff) | |
download | external_skia-c20341572f90f36d1abcb95e48ae6635c740a2f6.zip external_skia-c20341572f90f36d1abcb95e48ae6635c740a2f6.tar.gz external_skia-c20341572f90f36d1abcb95e48ae6635c740a2f6.tar.bz2 |
am 74054d95: am ff1f6696: merge from open-source master
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkCanvas.h | 13 | ||||
-rw-r--r-- | include/core/SkDevice.h | 3 | ||||
-rw-r--r-- | include/core/SkDraw.h | 3 |
3 files changed, 19 insertions, 0 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index f277a6b..bfa0d10 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -577,6 +577,19 @@ public: const SkPath& path, const SkMatrix* matrix, const SkPaint& paint); + /** Draw the text on path, with each character/glyph origin specified by the pos[] + array. The origin is interpreted by the Align setting in the paint. + @param text The text to be drawn + @param byteLength The number of bytes to read from the text parameter + @param pos Array of positions, used to position each character + @param paint The paint used for the text (e.g. color, size, style) + @param path The path to draw on + @param matrix The canvas matrix + */ + void drawPosTextOnPath(const void* text, size_t byteLength, + const SkPoint pos[], const SkPaint& paint, + const SkPath& path, const SkMatrix* matrix); + /** Draw the picture into this canvas. This method effective brackets the playback of the picture's draw calls with save/restore, so the state of this canvas will be unchanged after this call. This contrasts with diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h index 4d678c6..0d724ba 100644 --- a/include/core/SkDevice.h +++ b/include/core/SkDevice.h @@ -120,6 +120,9 @@ public: virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, const SkPath& path, const SkMatrix* matrix, const SkPaint& paint); + virtual void drawPosTextOnPath(const SkDraw& draw, const void* text, size_t len, + const SkPoint pos[], const SkPaint& paint, + const SkPath& path, const SkMatrix* matrix); virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCount, const SkPoint verts[], const SkPoint texs[], const SkColor colors[], SkXfermode* xmode, diff --git a/include/core/SkDraw.h b/include/core/SkDraw.h index 8214859..a86ef67 100644 --- a/include/core/SkDraw.h +++ b/include/core/SkDraw.h @@ -54,6 +54,9 @@ public: int scalarsPerPosition, const SkPaint& paint) const; void drawTextOnPath(const char text[], size_t byteLength, const SkPath&, const SkMatrix*, const SkPaint&) const; + void drawPosTextOnPath(const char text[], size_t byteLength, + const SkPoint pos[], const SkPaint& paint, + const SkPath& path, const SkMatrix* matrix) const; void drawVertices(SkCanvas::VertexMode mode, int count, const SkPoint vertices[], const SkPoint textures[], const SkColor colors[], SkXfermode* xmode, |