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 | |
234 | 233 |
235 // Note: If the picture version needs to be increased then please follow the | 234 // Note: If the picture version needs to be increased then please follow the |
236 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw | 235 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw |
237 | 236 |
238 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 237 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
239 static const uint32_t MIN_PICTURE_VERSION = 19; | 238 static const uint32_t MIN_PICTURE_VERSION = 19; |
240 static const uint32_t CURRENT_PICTURE_VERSION = 32; | 239 static const uint32_t CURRENT_PICTURE_VERSION = 31; |
241 | 240 |
242 mutable uint32_t fUniqueID; | 241 mutable uint32_t fUniqueID; |
243 | 242 |
244 // TODO: make SkPictureData const when clone method goes away | 243 // TODO: make SkPictureData const when clone method goes away |
245 SkAutoTDelete<SkPictureData> fData; | 244 SkAutoTDelete<SkPictureData> fData; |
246 int fWidth, fHeight; | 245 int fWidth, fHeight; |
247 mutable SkAutoTUnref<const AccelData> fAccelData; | 246 mutable SkAutoTUnref<const AccelData> fAccelData; |
248 | 247 |
249 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re
fed | 248 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re
fed |
250 | 249 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 290 |
292 // Takes ownership of the SkRecord, refs the (optional) BBH. | 291 // Takes ownership of the SkRecord, refs the (optional) BBH. |
293 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); | 292 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); |
294 | 293 |
295 SkAutoTDelete<SkRecord> fRecord; | 294 SkAutoTDelete<SkRecord> fRecord; |
296 SkAutoTUnref<SkBBoxHierarchy> fBBH; | 295 SkAutoTUnref<SkBBoxHierarchy> fBBH; |
297 bool fRecordWillPlayBackBitmaps; // TODO: const | 296 bool fRecordWillPlayBackBitmaps; // TODO: const |
298 }; | 297 }; |
299 | 298 |
300 #endif | 299 #endif |
OLD | NEW |