| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // V6 : added serialization of SkPath's bounds (and packed its flags tighter
) | 203 // V6 : added serialization of SkPath's bounds (and packed its flags tighter
) |
| 204 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) | 204 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) |
| 205 // V8 : Add an option for encoding bitmaps | 205 // V8 : Add an option for encoding bitmaps |
| 206 // V9 : Allow the reader and writer of an SKP disagree on whether to support | 206 // V9 : Allow the reader and writer of an SKP disagree on whether to support |
| 207 // SK_SUPPORT_HINTING_SCALE_FACTOR | 207 // SK_SUPPORT_HINTING_SCALE_FACTOR |
| 208 // V10: add drawRRect, drawOval, clipRRect | 208 // V10: add drawRRect, drawOval, clipRRect |
| 209 // V11: modify how readBitmap and writeBitmap store their info. | 209 // V11: modify how readBitmap and writeBitmap store their info. |
| 210 // V12: add conics to SkPath, use new SkPathRef flattening | 210 // V12: add conics to SkPath, use new SkPathRef flattening |
| 211 // V13: add flag to drawBitmapRectToRect | 211 // V13: add flag to drawBitmapRectToRect |
| 212 // parameterize blurs by sigma rather than radius | 212 // parameterize blurs by sigma rather than radius |
| 213 // V14: Add flags word to PathRef serialization |
| 213 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V13_AND_ALL_OTHER_INSTANCES_TO
O | 214 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V13_AND_ALL_OTHER_INSTANCES_TO
O |
| 214 static const uint32_t PRIOR_PICTURE_VERSION = 12; // TODO: remove when .skp
s regenerated | 215 static const uint32_t PRIOR_PRIOR_PICTURE_VERSION = 12; // TODO: remove whe
n .skps regenerated |
| 215 #endif | 216 #endif |
| 216 static const uint32_t PICTURE_VERSION = 13; | 217 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TO
O |
| 218 static const uint32_t PRIOR_PICTURE_VERSION2 = 13; // TODO: remove when .sk
ps regenerated |
| 219 #endif |
| 220 static const uint32_t PICTURE_VERSION = 14; |
| 217 | 221 |
| 218 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to | 222 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to |
| 219 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed | 223 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed |
| 220 // recorders and set the picture size | 224 // recorders and set the picture size |
| 221 SkPicturePlayback* fPlayback; | 225 SkPicturePlayback* fPlayback; |
| 222 SkPictureRecord* fRecord; | 226 SkPictureRecord* fRecord; |
| 223 int fWidth, fHeight; | 227 int fWidth, fHeight; |
| 224 | 228 |
| 225 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of | 229 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of |
| 226 // playback is unchanged. | 230 // playback is unchanged. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 */ | 278 */ |
| 275 class SK_API SkDrawPictureCallback { | 279 class SK_API SkDrawPictureCallback { |
| 276 public: | 280 public: |
| 277 SkDrawPictureCallback() {} | 281 SkDrawPictureCallback() {} |
| 278 virtual ~SkDrawPictureCallback() {} | 282 virtual ~SkDrawPictureCallback() {} |
| 279 | 283 |
| 280 virtual bool abortDrawing() = 0; | 284 virtual bool abortDrawing() = 0; |
| 281 }; | 285 }; |
| 282 | 286 |
| 283 #endif | 287 #endif |
| OLD | NEW |