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 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 const SkPaint& paint); | 957 const SkPaint& paint); |
958 | 958 |
959 /** PRIVATE / EXPERIMENTAL -- do not call | 959 /** PRIVATE / EXPERIMENTAL -- do not call |
960 Perform back-end analysis/optimization of a picture. This may attach | 960 Perform back-end analysis/optimization of a picture. This may attach |
961 optimization data to the picture which can be used by a later | 961 optimization data to the picture which can be used by a later |
962 drawPicture call. | 962 drawPicture call. |
963 @param picture The recorded drawing commands to analyze/optimize | 963 @param picture The recorded drawing commands to analyze/optimize |
964 */ | 964 */ |
965 void EXPERIMENTAL_optimize(const SkPicture* picture); | 965 void EXPERIMENTAL_optimize(const SkPicture* picture); |
966 | 966 |
967 /** PRIVATE / EXPERIMENTAL -- do not call | |
968 Purge all the discardable optimization information associated with | |
969 'picture'. If NULL is passed in, purge all discardable information. | |
970 */ | |
971 void EXPERIMENTAL_purge(const SkPicture* picture); | |
972 | |
973 /** Draw the picture into this canvas. This method effective brackets the | 967 /** Draw the picture into this canvas. This method effective brackets the |
974 playback of the picture's draw calls with save/restore, so the state | 968 playback of the picture's draw calls with save/restore, so the state |
975 of this canvas will be unchanged after this call. | 969 of this canvas will be unchanged after this call. |
976 @param picture The recorded drawing commands to playback into this | 970 @param picture The recorded drawing commands to playback into this |
977 canvas. | 971 canvas. |
978 */ | 972 */ |
979 void drawPicture(const SkPicture* picture); | 973 void drawPicture(const SkPicture* picture); |
980 | 974 |
981 enum VertexMode { | 975 enum VertexMode { |
982 kTriangles_VertexMode, | 976 kTriangles_VertexMode, |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 | 1472 |
1479 class SkCanvasClipVisitor { | 1473 class SkCanvasClipVisitor { |
1480 public: | 1474 public: |
1481 virtual ~SkCanvasClipVisitor(); | 1475 virtual ~SkCanvasClipVisitor(); |
1482 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1476 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
1483 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1477 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
1484 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1478 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
1485 }; | 1479 }; |
1486 | 1480 |
1487 #endif | 1481 #endif |
OLD | NEW |