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

Unified Diff: include/core/SkCanvas.h

Issue 22585002: Add SkCanvas::drawPosTextBounded. (Closed) Base URL: http://skia.googlecode.com/svn/trunk
Patch Set: spelling correction Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkBBoxRecord.h » ('j') | src/core/SkBBoxRecord.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 0a4b7799d5b25002a4d7ed0031bab6e40968ed62..f45fe0f05587b32de063e4969a657aabd48c5ba8 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -750,6 +750,18 @@ public:
virtual void drawPosText(const void* text, size_t byteLength,
const SkPoint pos[], const SkPaint& paint);
+ /** Draw the text, 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 bbox Precomputed bounding box of the text.
+ @param paint The paint used for the text (e.g. color, size, style)
+ */
+ virtual void drawPosTextBounded(const void* text, size_t byteLength,
+ const SkPoint pos[], const SkRect& bbox,
+ const SkPaint& paint);
+
/** Draw the text, with each character/glyph origin specified by the x
coordinate taken from the xpos[] array, and the y from the constY param.
The origin is interpreted by the Align setting in the paint.
« no previous file with comments | « no previous file | src/core/SkBBoxRecord.h » ('j') | src/core/SkBBoxRecord.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698