From cd9d69b9ce7eb301a9fd8d91b9f95fd99b07bae5 Mon Sep 17 00:00:00 2001 From: "djsollen@google.com" Date: Mon, 14 Mar 2011 20:30:14 +0000 Subject: Upstreaming changes from android. - fix compile warnings in the GPU code - upstream android specific code (ifdef protected) - fail gracefully when a custom allocator fails git-svn-id: http://skia.googlecode.com/svn/trunk@936 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkCanvas.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/core/SkCanvas.h') diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index eef3aea572..5aecacb817 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -626,6 +626,21 @@ public: const SkPath& path, const SkMatrix* matrix, const SkPaint& paint); +#ifdef ANDROID + /** 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); +#endif + /** 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 -- cgit v1.2.3