OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkCanvas_DEFINED | 8 #ifndef SkCanvas_DEFINED |
9 #define SkCanvas_DEFINED | 9 #define SkCanvas_DEFINED |
10 | 10 |
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 @param matrix (may be null) Applied to the text before it is | 985 @param matrix (may be null) Applied to the text before it is |
986 mapped onto the path | 986 mapped onto the path |
987 @param paint The paint used for the text | 987 @param paint The paint used for the text |
988 */ | 988 */ |
989 void drawTextOnPath(const void* text, size_t byteLength, const SkPath& path, | 989 void drawTextOnPath(const void* text, size_t byteLength, const SkPath& path, |
990 const SkMatrix* matrix, const SkPaint& paint); | 990 const SkMatrix* matrix, const SkPaint& paint); |
991 | 991 |
992 /** | 992 /** |
993 * Draw the text with each character/glyph individually transformed by its
xform. | 993 * Draw the text with each character/glyph individually transformed by its
xform. |
994 * If cullRect is not null, it is a conservative bounds of what will be dra
wn | 994 * If cullRect is not null, it is a conservative bounds of what will be dra
wn |
995 * taking into account the xforms and the paint) and will be used to accele
rate culling. | 995 * taking into account the xforms and the paint, and will be used to accele
rate culling. |
996 */ | 996 */ |
997 void drawTextRSXform(const void* text, size_t byteLength, const SkRSXform[], | 997 void drawTextRSXform(const void* text, size_t byteLength, const SkRSXform[], |
998 const SkRect* cullRect, const SkPaint& paint); | 998 const SkRect* cullRect, const SkPaint& paint); |
999 | 999 |
1000 /** Draw the text blob, offset by (x,y), using the specified paint. | 1000 /** Draw the text blob, offset by (x,y), using the specified paint. |
1001 @param blob The text blob to be drawn | 1001 @param blob The text blob to be drawn |
1002 @param x The x-offset of the text being drawn | 1002 @param x The x-offset of the text being drawn |
1003 @param y The y-offset of the text being drawn | 1003 @param y The y-offset of the text being drawn |
1004 @param paint The paint used for the text (e.g. color, size, style) | 1004 @param paint The paint used for the text (e.g. color, size, style) |
1005 */ | 1005 */ |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1595 | 1595 |
1596 class SkCanvasClipVisitor { | 1596 class SkCanvasClipVisitor { |
1597 public: | 1597 public: |
1598 virtual ~SkCanvasClipVisitor(); | 1598 virtual ~SkCanvasClipVisitor(); |
1599 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1599 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
1600 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1600 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
1601 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1601 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
1602 }; | 1602 }; |
1603 | 1603 |
1604 #endif | 1604 #endif |
OLD | NEW |