OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2007 The Android Open Source Project | 3 * Copyright 2007 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 SkPicture_DEFINED | 10 #ifndef SkPicture_DEFINED |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes | 223 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes |
224 // V23: SkPaint::FilterLevel became a real enum | 224 // V23: SkPaint::FilterLevel became a real enum |
225 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin
g | 225 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin
g |
226 // V25: SkDashPathEffect now only writes phase and interval array when flatt
ening | 226 // V25: SkDashPathEffect now only writes phase and interval array when flatt
ening |
227 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint
. | 227 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint
. |
228 // V27: Remove SkUnitMapper from gradients (and skia). | 228 // V27: Remove SkUnitMapper from gradients (and skia). |
229 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap. | 229 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap. |
230 // V29: Removed SaveFlags parameter from save(). | 230 // V29: Removed SaveFlags parameter from save(). |
231 // V30: Remove redundant SkMatrix from SkLocalMatrixShader. | 231 // V30: Remove redundant SkMatrix from SkLocalMatrixShader. |
232 // V31: Add a serialized UniqueID to SkImageFilter. | 232 // V31: Add a serialized UniqueID to SkImageFilter. |
| 233 // V32: Removed SkPaintOptionsAndroid from SkPaint |
233 | 234 |
234 // Note: If the picture version needs to be increased then please follow the | 235 // Note: If the picture version needs to be increased then please follow the |
235 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw | 236 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw |
236 | 237 |
237 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 238 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
238 static const uint32_t MIN_PICTURE_VERSION = 19; | 239 static const uint32_t MIN_PICTURE_VERSION = 19; |
239 static const uint32_t CURRENT_PICTURE_VERSION = 31; | 240 static const uint32_t CURRENT_PICTURE_VERSION = 32; |
240 | 241 |
241 mutable uint32_t fUniqueID; | 242 mutable uint32_t fUniqueID; |
242 | 243 |
243 // TODO: make SkPictureData const when clone method goes away | 244 // TODO: make SkPictureData const when clone method goes away |
244 SkAutoTDelete<SkPictureData> fData; | 245 SkAutoTDelete<SkPictureData> fData; |
245 int fWidth, fHeight; | 246 int fWidth, fHeight; |
246 mutable SkAutoTUnref<const AccelData> fAccelData; | 247 mutable SkAutoTUnref<const AccelData> fAccelData; |
247 | 248 |
248 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re
fed | 249 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re
fed |
249 | 250 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 291 |
291 // Takes ownership of the SkRecord, refs the (optional) BBH. | 292 // Takes ownership of the SkRecord, refs the (optional) BBH. |
292 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); | 293 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); |
293 | 294 |
294 SkAutoTDelete<SkRecord> fRecord; | 295 SkAutoTDelete<SkRecord> fRecord; |
295 SkAutoTUnref<SkBBoxHierarchy> fBBH; | 296 SkAutoTUnref<SkBBoxHierarchy> fBBH; |
296 bool fRecordWillPlayBackBitmaps; // TODO: const | 297 bool fRecordWillPlayBackBitmaps; // TODO: const |
297 }; | 298 }; |
298 | 299 |
299 #endif | 300 #endif |
OLD | NEW |