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 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 const SkPaint& paint); | 925 const SkPaint& paint); |
926 | 926 |
927 /** PRIVATE / EXPERIMENTAL -- do not call | 927 /** PRIVATE / EXPERIMENTAL -- do not call |
928 Perform back-end analysis/optimization of a picture. This may attach | 928 Perform back-end analysis/optimization of a picture. This may attach |
929 optimization data to the picture which can be used by a later | 929 optimization data to the picture which can be used by a later |
930 drawPicture call. | 930 drawPicture call. |
931 @param picture The recorded drawing commands to analyze/optimize | 931 @param picture The recorded drawing commands to analyze/optimize |
932 */ | 932 */ |
933 void EXPERIMENTAL_optimize(SkPicture* picture); | 933 void EXPERIMENTAL_optimize(SkPicture* picture); |
934 | 934 |
| 935 /** PRIVATE / EXPERIMENTAL -- do not call |
| 936 Purge all the discardable optimization information |
| 937 */ |
| 938 void EXPERIMENTAL_purge(); |
| 939 |
935 /** Draw the picture into this canvas. This method effective brackets the | 940 /** Draw the picture into this canvas. This method effective brackets the |
936 playback of the picture's draw calls with save/restore, so the state | 941 playback of the picture's draw calls with save/restore, so the state |
937 of this canvas will be unchanged after this call. | 942 of this canvas will be unchanged after this call. |
938 @param picture The recorded drawing commands to playback into this | 943 @param picture The recorded drawing commands to playback into this |
939 canvas. | 944 canvas. |
940 */ | 945 */ |
941 virtual void drawPicture(SkPicture& picture); | 946 virtual void drawPicture(SkPicture& picture); |
942 | 947 |
943 enum VertexMode { | 948 enum VertexMode { |
944 kTriangles_VertexMode, | 949 kTriangles_VertexMode, |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1429 bool asROBitmap(SkBitmap*) const; | 1434 bool asROBitmap(SkBitmap*) const; |
1430 | 1435 |
1431 private: | 1436 private: |
1432 SkBitmap fBitmap; // used if peekPixels() fails | 1437 SkBitmap fBitmap; // used if peekPixels() fails |
1433 const void* fAddr; // NULL on failure | 1438 const void* fAddr; // NULL on failure |
1434 SkImageInfo fInfo; | 1439 SkImageInfo fInfo; |
1435 size_t fRowBytes; | 1440 size_t fRowBytes; |
1436 }; | 1441 }; |
1437 | 1442 |
1438 #endif | 1443 #endif |
OLD | NEW |