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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // V19: encode matrices and regions into the ops stream | 231 // V19: encode matrices and regions into the ops stream |
232 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) | 232 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) |
233 // V21: add pushCull, popCull | 233 // V21: add pushCull, popCull |
234 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes | 234 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes |
235 // V23: SkPaint::FilterLevel became a real enum | 235 // V23: SkPaint::FilterLevel became a real enum |
236 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin
g | 236 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin
g |
237 // V25: SkDashPathEffect now only writes phase and interval array when flatt
ening | 237 // V25: SkDashPathEffect now only writes phase and interval array when flatt
ening |
238 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint
. | 238 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint
. |
239 // V27: Remove SkUnitMapper from gradients (and skia). | 239 // V27: Remove SkUnitMapper from gradients (and skia). |
240 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap. | 240 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap. |
| 241 // V29: Removed SaveFlags parameter from save(). |
241 | 242 |
242 // Note: If the picture version needs to be increased then please follow the | 243 // Note: If the picture version needs to be increased then please follow the |
243 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw | 244 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw |
244 | 245 |
245 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 246 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
246 static const uint32_t MIN_PICTURE_VERSION = 19; | 247 static const uint32_t MIN_PICTURE_VERSION = 19; |
247 static const uint32_t CURRENT_PICTURE_VERSION = 28; | 248 static const uint32_t CURRENT_PICTURE_VERSION = 29; |
248 | 249 |
249 mutable uint32_t fUniqueID; | 250 mutable uint32_t fUniqueID; |
250 | 251 |
251 // fPlayback, fWidth & fHeight are protected to allow derived classes to | 252 // fPlayback, fWidth & fHeight are protected to allow derived classes to |
252 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed | 253 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed |
253 // recorders and set the picture size | 254 // recorders and set the picture size |
254 SkAutoTDelete<SkPicturePlayback> fPlayback; | 255 SkAutoTDelete<SkPicturePlayback> fPlayback; |
255 int fWidth, fHeight; | 256 int fWidth, fHeight; |
256 mutable SkAutoTUnref<const AccelData> fAccelData; | 257 mutable SkAutoTUnref<const AccelData> fAccelData; |
257 | 258 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 friend class GrGatherDevice; | 311 friend class GrGatherDevice; |
311 friend class SkDebugCanvas; | 312 friend class SkDebugCanvas; |
312 | 313 |
313 typedef SkRefCnt INHERITED; | 314 typedef SkRefCnt INHERITED; |
314 | 315 |
315 SkPicture(int width, int height, SkRecord*); // Takes ownership. | 316 SkPicture(int width, int height, SkRecord*); // Takes ownership. |
316 SkAutoTDelete<SkRecord> fRecord; | 317 SkAutoTDelete<SkRecord> fRecord; |
317 }; | 318 }; |
318 | 319 |
319 #endif | 320 #endif |
OLD | NEW |