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 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 const SkPaint& paint); | 989 const SkPaint& paint); |
990 | 990 |
991 /** Draw the text blob, offset by (x,y), using the specified paint. | 991 /** Draw the text blob, offset by (x,y), using the specified paint. |
992 @param blob The text blob to be drawn | 992 @param blob The text blob to be drawn |
993 @param x The x-offset of the text being drawn | 993 @param x The x-offset of the text being drawn |
994 @param y The y-offset of the text being drawn | 994 @param y The y-offset of the text being drawn |
995 @param paint The paint used for the text (e.g. color, size, style) | 995 @param paint The paint used for the text (e.g. color, size, style) |
996 */ | 996 */ |
997 void drawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPa
int& paint); | 997 void drawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPa
int& paint); |
998 | 998 |
999 /** PRIVATE / EXPERIMENTAL -- do not call | |
1000 Perform back-end analysis/optimization of a picture. This may attach | |
1001 optimization data to the picture which can be used by a later | |
1002 drawPicture call. | |
1003 @param picture The recorded drawing commands to analyze/optimize | |
1004 */ | |
1005 void EXPERIMENTAL_optimize(const SkPicture* picture); | |
1006 | |
1007 /** Draw the picture into this canvas. This method effective brackets the | 999 /** Draw the picture into this canvas. This method effective brackets the |
1008 playback of the picture's draw calls with save/restore, so the state | 1000 playback of the picture's draw calls with save/restore, so the state |
1009 of this canvas will be unchanged after this call. | 1001 of this canvas will be unchanged after this call. |
1010 @param picture The recorded drawing commands to playback into this | 1002 @param picture The recorded drawing commands to playback into this |
1011 canvas. | 1003 canvas. |
1012 */ | 1004 */ |
1013 void drawPicture(const SkPicture* picture); | 1005 void drawPicture(const SkPicture* picture); |
1014 | 1006 |
1015 /** | 1007 /** |
1016 * Draw the picture into this canvas. | 1008 * Draw the picture into this canvas. |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1552 | 1544 |
1553 class SkCanvasClipVisitor { | 1545 class SkCanvasClipVisitor { |
1554 public: | 1546 public: |
1555 virtual ~SkCanvasClipVisitor(); | 1547 virtual ~SkCanvasClipVisitor(); |
1556 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1548 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
1557 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1549 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
1558 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1550 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
1559 }; | 1551 }; |
1560 | 1552 |
1561 #endif | 1553 #endif |
OLD | NEW |