OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2007 The Android Open Source Project | 2 * Copyright 2007 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkPicture_DEFINED | 8 #ifndef SkPicture_DEFINED |
9 #define SkPicture_DEFINED | 9 #define SkPicture_DEFINED |
10 | 10 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 // V38: Added PictureResolution option to SkPictureImageFilter | 206 // V38: Added PictureResolution option to SkPictureImageFilter |
207 // V39: Added FilterLevel option to SkPictureImageFilter | 207 // V39: Added FilterLevel option to SkPictureImageFilter |
208 // V40: Remove UniqueID serialization from SkImageFilter. | 208 // V40: Remove UniqueID serialization from SkImageFilter. |
209 // V41: Added serialization of SkBitmapSource's filterQuality parameter | 209 // V41: Added serialization of SkBitmapSource's filterQuality parameter |
210 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser
ialize-a-picture? | 210 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser
ialize-a-picture? |
211 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data | 211 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data |
212 // V44: Move annotations from paint to drawAnnotation | 212 // V44: Move annotations from paint to drawAnnotation |
213 // V45: Add invNormRotation to SkLightingShader. | 213 // V45: Add invNormRotation to SkLightingShader. |
214 // V46: Add drawTextRSXform | 214 // V46: Add drawTextRSXform |
215 // V47: Add occluder rect to SkBlurMaskFilter | 215 // V47: Add occluder rect to SkBlurMaskFilter |
| 216 // V48: Read and write extended SkTextBlobs. |
216 | 217 |
217 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 218 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
218 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom
e M39. | 219 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom
e M39. |
219 static const uint32_t CURRENT_PICTURE_VERSION = 47; | 220 static const uint32_t CURRENT_PICTURE_VERSION = 48; |
220 | 221 |
221 static_assert(MIN_PICTURE_VERSION <= 41, | 222 static_assert(MIN_PICTURE_VERSION <= 41, |
222 "Remove kFontFileName and related code from SkFontDescriptor.c
pp."); | 223 "Remove kFontFileName and related code from SkFontDescriptor.c
pp."); |
223 | 224 |
224 static_assert(MIN_PICTURE_VERSION <= 42, | 225 static_assert(MIN_PICTURE_VERSION <= 42, |
225 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); | 226 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); |
226 | 227 |
227 static_assert(MIN_PICTURE_VERSION <= 43, | 228 static_assert(MIN_PICTURE_VERSION <= 43, |
228 "Remove SkBitmapSourceDeserializer."); | 229 "Remove SkBitmapSourceDeserializer."); |
229 | 230 |
230 static_assert(MIN_PICTURE_VERSION <= 45, | 231 static_assert(MIN_PICTURE_VERSION <= 45, |
231 "Remove decoding of old SkTypeface::Style from SkFontDescripto
r.cpp."); | 232 "Remove decoding of old SkTypeface::Style from SkFontDescripto
r.cpp."); |
232 | 233 |
233 static bool IsValidPictInfo(const SkPictInfo& info); | 234 static bool IsValidPictInfo(const SkPictInfo& info); |
234 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, | 235 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, |
235 const SkPictureData*, | 236 const SkPictureData*, |
236 const SkReadBuffer* buffer); | 237 const SkReadBuffer* buffer); |
237 | 238 |
238 SkPictInfo createHeader() const; | 239 SkPictInfo createHeader() const; |
239 SkPictureData* backport() const; | 240 SkPictureData* backport() const; |
240 | 241 |
241 mutable uint32_t fUniqueID; | 242 mutable uint32_t fUniqueID; |
242 }; | 243 }; |
243 | 244 |
244 #endif | 245 #endif |
OLD | NEW |