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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // V15: Remove A1 bitmap config (and renumber remaining configs) | 317 // V15: Remove A1 bitmap config (and renumber remaining configs) |
318 // V16: Move SkPath's isOval flag to SkPathRef | 318 // V16: Move SkPath's isOval flag to SkPathRef |
319 // V17: SkPixelRef now writes SkImageInfo | 319 // V17: SkPixelRef now writes SkImageInfo |
320 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. | 320 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. |
321 // V19: encode matrices and regions into the ops stream | 321 // V19: encode matrices and regions into the ops stream |
322 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) | 322 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) |
323 // V21: add pushCull, popCull | 323 // V21: add pushCull, popCull |
324 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes | 324 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes |
325 // V23: SkPaint::FilterLevel became a real enum | 325 // V23: SkPaint::FilterLevel became a real enum |
326 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin
g | 326 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin
g |
| 327 // V25: SkDashPathEffect now only writes phase and interval array when flatt
ening |
327 | 328 |
328 // Note: If the picture version needs to be increased then please follow the | 329 // Note: If the picture version needs to be increased then please follow the |
329 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw | 330 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw |
330 | 331 |
331 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 332 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
332 static const uint32_t MIN_PICTURE_VERSION = 19; | 333 static const uint32_t MIN_PICTURE_VERSION = 19; |
333 static const uint32_t CURRENT_PICTURE_VERSION = 24; | 334 static const uint32_t CURRENT_PICTURE_VERSION = 25; |
334 | 335 |
335 mutable uint32_t fUniqueID; | 336 mutable uint32_t fUniqueID; |
336 | 337 |
337 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to | 338 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to |
338 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed | 339 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed |
339 // recorders and set the picture size | 340 // recorders and set the picture size |
340 SkPicturePlayback* fPlayback; | 341 SkPicturePlayback* fPlayback; |
341 SkPictureRecord* fRecord; | 342 SkPictureRecord* fRecord; |
342 int fWidth, fHeight; | 343 int fWidth, fHeight; |
343 const AccelData* fAccelData; | 344 const AccelData* fAccelData; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 typedef SkRefCnt INHERITED; | 434 typedef SkRefCnt INHERITED; |
434 }; | 435 }; |
435 | 436 |
436 #endif | 437 #endif |
437 | 438 |
438 #ifdef SK_SUPPORT_LEGACY_PICTURE_HEADERS | 439 #ifdef SK_SUPPORT_LEGACY_PICTURE_HEADERS |
439 #include "SkPictureRecorder.h" | 440 #include "SkPictureRecorder.h" |
440 #endif | 441 #endif |
441 | 442 |
442 #endif | 443 #endif |
OLD | NEW |