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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // V13: add flag to drawBitmapRectToRect | 244 // V13: add flag to drawBitmapRectToRect |
245 // parameterize blurs by sigma rather than radius | 245 // parameterize blurs by sigma rather than radius |
246 // V14: Add flags word to PathRef serialization | 246 // V14: Add flags word to PathRef serialization |
247 // V15: Remove A1 bitmpa config (and renumber remaining configs) | 247 // V15: Remove A1 bitmpa config (and renumber remaining configs) |
248 // V16: Move SkPath's isOval flag to SkPathRef | 248 // V16: Move SkPath's isOval flag to SkPathRef |
249 // V17: SkPixelRef now writes SkImageInfo | 249 // V17: SkPixelRef now writes SkImageInfo |
250 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. | 250 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. |
251 // V19: encode matrices and regions into the ops stream | 251 // V19: encode matrices and regions into the ops stream |
252 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) | 252 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) |
253 // V21: add pushCull, popCull | 253 // V21: add pushCull, popCull |
| 254 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes |
254 | 255 |
255 // Note: If the picture version needs to be increased then please follow the | 256 // Note: If the picture version needs to be increased then please follow the |
256 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw | 257 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw |
257 | 258 |
258 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 259 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
259 static const uint32_t MIN_PICTURE_VERSION = 19; | 260 static const uint32_t MIN_PICTURE_VERSION = 19; |
260 static const uint32_t CURRENT_PICTURE_VERSION = 21; | 261 static const uint32_t CURRENT_PICTURE_VERSION = 22; |
261 | 262 |
262 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to | 263 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to |
263 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed | 264 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed |
264 // recorders and set the picture size | 265 // recorders and set the picture size |
265 SkPicturePlayback* fPlayback; | 266 SkPicturePlayback* fPlayback; |
266 SkPictureRecord* fRecord; | 267 SkPictureRecord* fRecord; |
267 int fWidth, fHeight; | 268 int fWidth, fHeight; |
268 | 269 |
269 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of | 270 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of |
270 // playback is unchanged. | 271 // playback is unchanged. |
(...skipping 23 matching lines...) Expand all Loading... |
294 */ | 295 */ |
295 class SK_API SkDrawPictureCallback { | 296 class SK_API SkDrawPictureCallback { |
296 public: | 297 public: |
297 SkDrawPictureCallback() {} | 298 SkDrawPictureCallback() {} |
298 virtual ~SkDrawPictureCallback() {} | 299 virtual ~SkDrawPictureCallback() {} |
299 | 300 |
300 virtual bool abortDrawing() = 0; | 301 virtual bool abortDrawing() = 0; |
301 }; | 302 }; |
302 | 303 |
303 #endif | 304 #endif |
OLD | NEW |