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

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

Issue 22861002: Revert "Add SkCanvas::drawPosTextBounded." (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/core/SkBBoxRecord.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SkCanvas_DEFINED 10 #ifndef SkCanvas_DEFINED
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 /** Draw the text, with each character/glyph origin specified by the pos[] 743 /** Draw the text, with each character/glyph origin specified by the pos[]
744 array. The origin is interpreted by the Align setting in the paint. 744 array. The origin is interpreted by the Align setting in the paint.
745 @param text The text to be drawn 745 @param text The text to be drawn
746 @param byteLength The number of bytes to read from the text parameter 746 @param byteLength The number of bytes to read from the text parameter
747 @param pos Array of positions, used to position each character 747 @param pos Array of positions, used to position each character
748 @param paint The paint used for the text (e.g. color, size, style) 748 @param paint The paint used for the text (e.g. color, size, style)
749 */ 749 */
750 virtual void drawPosText(const void* text, size_t byteLength, 750 virtual void drawPosText(const void* text, size_t byteLength,
751 const SkPoint pos[], const SkPaint& paint); 751 const SkPoint pos[], const SkPaint& paint);
752 752
753 /** Draw the text, with each character/glyph origin specified by the pos[]
754 array. The origin is interpreted by the Align setting in the paint.
755 @param text The text to be drawn
756 @param byteLength The number of bytes to read from the text parameter
757 @param pos Array of positions, used to position each character
758 @param bbox Precomputed bounding box of the text.
759 @param paint The paint used for the text (e.g. color, size, style)
760 */
761 virtual void drawPosTextBounded(const void* text, size_t byteLength,
762 const SkPoint pos[], const SkRect& bbox,
763 const SkPaint& paint);
764
765 /** Draw the text, with each character/glyph origin specified by the x 753 /** Draw the text, with each character/glyph origin specified by the x
766 coordinate taken from the xpos[] array, and the y from the constY param. 754 coordinate taken from the xpos[] array, and the y from the constY param.
767 The origin is interpreted by the Align setting in the paint. 755 The origin is interpreted by the Align setting in the paint.
768 @param text The text to be drawn 756 @param text The text to be drawn
769 @param byteLength The number of bytes to read from the text parameter 757 @param byteLength The number of bytes to read from the text parameter
770 @param xpos Array of x-positions, used to position each character 758 @param xpos Array of x-positions, used to position each character
771 @param constY The shared Y coordinate for all of the positions 759 @param constY The shared Y coordinate for all of the positions
772 @param paint The paint used for the text (e.g. color, size, style) 760 @param paint The paint used for the text (e.g. color, size, style)
773 */ 761 */
774 virtual void drawPosTextH(const void* text, size_t byteLength, 762 virtual void drawPosTextH(const void* text, size_t byteLength,
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 if (NULL != fCanvas) { 1170 if (NULL != fCanvas) {
1183 fCanvas->endCommentGroup(); 1171 fCanvas->endCommentGroup();
1184 } 1172 }
1185 } 1173 }
1186 1174
1187 private: 1175 private:
1188 SkCanvas* fCanvas; 1176 SkCanvas* fCanvas;
1189 }; 1177 };
1190 1178
1191 #endif 1179 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkBBoxRecord.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698