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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) | 211 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) |
212 // V8 : Add an option for encoding bitmaps | 212 // V8 : Add an option for encoding bitmaps |
213 // V9 : Allow the reader and writer of an SKP disagree on whether to support | 213 // V9 : Allow the reader and writer of an SKP disagree on whether to support |
214 // SK_SUPPORT_HINTING_SCALE_FACTOR | 214 // SK_SUPPORT_HINTING_SCALE_FACTOR |
215 // V10: add drawRRect, drawOval, clipRRect | 215 // V10: add drawRRect, drawOval, clipRRect |
216 // V11: modify how readBitmap and writeBitmap store their info. | 216 // V11: modify how readBitmap and writeBitmap store their info. |
217 // V12: add conics to SkPath, use new SkPathRef flattening | 217 // V12: add conics to SkPath, use new SkPathRef flattening |
218 // V13: add flag to drawBitmapRectToRect | 218 // V13: add flag to drawBitmapRectToRect |
219 // parameterize blurs by sigma rather than radius | 219 // parameterize blurs by sigma rather than radius |
220 // V14: Add flags word to PathRef serialization | 220 // V14: Add flags word to PathRef serialization |
| 221 // V15: Remove A1 bitmpa config (and renumber remaining configs) |
221 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V13_AND_ALL_OTHER_INSTANCES_TO
O | 222 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V13_AND_ALL_OTHER_INSTANCES_TO
O |
222 static const uint32_t PRIOR_PRIOR_PICTURE_VERSION = 12; // TODO: remove whe
n .skps regenerated | 223 static const uint32_t PRIOR_PRIOR_PICTURE_VERSION = 12; // TODO: remove whe
n .skps regenerated |
223 #endif | 224 #endif |
224 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TO
O | 225 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TO
O |
225 static const uint32_t PRIOR_PICTURE_VERSION2 = 13; // TODO: remove when .sk
ps regenerated | 226 static const uint32_t PRIOR_PICTURE_VERSION2 = 13; // TODO: remove when .sk
ps regenerated |
226 #endif | 227 #endif |
227 static const uint32_t PICTURE_VERSION = 14; | 228 static const uint32_t PICTURE_VERSION = 15; |
228 | 229 |
229 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to | 230 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to |
230 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed | 231 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed |
231 // recorders and set the picture size | 232 // recorders and set the picture size |
232 SkPicturePlayback* fPlayback; | 233 SkPicturePlayback* fPlayback; |
233 SkPictureRecord* fRecord; | 234 SkPictureRecord* fRecord; |
234 int fWidth, fHeight; | 235 int fWidth, fHeight; |
235 | 236 |
236 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of | 237 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of |
237 // playback is unchanged. | 238 // playback is unchanged. |
(...skipping 27 matching lines...) Expand all Loading... |
265 */ | 266 */ |
266 class SK_API SkDrawPictureCallback { | 267 class SK_API SkDrawPictureCallback { |
267 public: | 268 public: |
268 SkDrawPictureCallback() {} | 269 SkDrawPictureCallback() {} |
269 virtual ~SkDrawPictureCallback() {} | 270 virtual ~SkDrawPictureCallback() {} |
270 | 271 |
271 virtual bool abortDrawing() = 0; | 272 virtual bool abortDrawing() = 0; |
272 }; | 273 }; |
273 | 274 |
274 #endif | 275 #endif |
OLD | NEW |