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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 // V14: Add flags word to PathRef serialization | 235 // V14: Add flags word to PathRef serialization |
236 // V15: Remove A1 bitmpa config (and renumber remaining configs) | 236 // V15: Remove A1 bitmpa config (and renumber remaining configs) |
237 // V16: Move SkPath's isOval flag to SkPathRef | 237 // V16: Move SkPath's isOval flag to SkPathRef |
238 // V17: SkPixelRef now writes SkImageInfo | 238 // V17: SkPixelRef now writes SkImageInfo |
239 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. | 239 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. |
240 // V19: encode matrices and regions into the ops stream | 240 // V19: encode matrices and regions into the ops stream |
241 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) | 241 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) |
242 | 242 |
243 // 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 |
244 // 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 |
245 static const uint32_t PICTURE_VERSION = 20; | 245 |
| 246 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
| 247 static const uint32_t MIN_PICTURE_VERSION = 19; |
| 248 static const uint32_t CURRENT_PICTURE_VERSION = 20; |
246 | 249 |
247 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to | 250 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to |
248 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed | 251 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed |
249 // recorders and set the picture size | 252 // recorders and set the picture size |
250 SkPicturePlayback* fPlayback; | 253 SkPicturePlayback* fPlayback; |
251 SkPictureRecord* fRecord; | 254 SkPictureRecord* fRecord; |
252 int fWidth, fHeight; | 255 int fWidth, fHeight; |
253 | 256 |
254 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of | 257 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of |
255 // playback is unchanged. | 258 // playback is unchanged. |
(...skipping 30 matching lines...) Expand all Loading... |
286 */ | 289 */ |
287 class SK_API SkDrawPictureCallback { | 290 class SK_API SkDrawPictureCallback { |
288 public: | 291 public: |
289 SkDrawPictureCallback() {} | 292 SkDrawPictureCallback() {} |
290 virtual ~SkDrawPictureCallback() {} | 293 virtual ~SkDrawPictureCallback() {} |
291 | 294 |
292 virtual bool abortDrawing() = 0; | 295 virtual bool abortDrawing() = 0; |
293 }; | 296 }; |
294 | 297 |
295 #endif | 298 #endif |
OLD | NEW |