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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // V35: Store SkRect (rather then width & height) in header | 199 // V35: Store SkRect (rather then width & height) in header |
200 // V36: Remove (obsolete) alphatype from SkColorTable | 200 // V36: Remove (obsolete) alphatype from SkColorTable |
201 // V37: Added shadow only option to SkDropShadowImageFilter (last version to
record CLEAR) | 201 // V37: Added shadow only option to SkDropShadowImageFilter (last version to
record CLEAR) |
202 // V38: Added PictureResolution option to SkPictureImageFilter | 202 // V38: Added PictureResolution option to SkPictureImageFilter |
203 // V39: Added FilterLevel option to SkPictureImageFilter | 203 // V39: Added FilterLevel option to SkPictureImageFilter |
204 // V40: Remove UniqueID serialization from SkImageFilter. | 204 // V40: Remove UniqueID serialization from SkImageFilter. |
205 // V41: Added serialization of SkBitmapSource's filterQuality parameter | 205 // V41: Added serialization of SkBitmapSource's filterQuality parameter |
206 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser
ialize-a-picture? | 206 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser
ialize-a-picture? |
207 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data | 207 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data |
208 // V44: Move annotations from paint to drawAnnotation | 208 // V44: Move annotations from paint to drawAnnotation |
| 209 // V45: Add invNormRotation to SkLightingShader. |
209 | 210 |
210 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 211 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
211 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom
e M39. | 212 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom
e M39. |
212 static const uint32_t CURRENT_PICTURE_VERSION = 44; | 213 static const uint32_t CURRENT_PICTURE_VERSION = 45; |
213 | 214 |
214 static_assert(MIN_PICTURE_VERSION <= 41, | 215 static_assert(MIN_PICTURE_VERSION <= 41, |
215 "Remove kFontFileName and related code from SkFontDescriptor.c
pp."); | 216 "Remove kFontFileName and related code from SkFontDescriptor.c
pp."); |
216 | 217 |
217 static_assert(MIN_PICTURE_VERSION <= 42, | 218 static_assert(MIN_PICTURE_VERSION <= 42, |
218 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); | 219 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); |
219 | 220 |
220 static_assert(MIN_PICTURE_VERSION <= 43, | 221 static_assert(MIN_PICTURE_VERSION <= 43, |
221 "Remove SkBitmapSourceDeserializer."); | 222 "Remove SkBitmapSourceDeserializer."); |
222 | 223 |
223 static bool IsValidPictInfo(const SkPictInfo& info); | 224 static bool IsValidPictInfo(const SkPictInfo& info); |
224 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, const SkPictureData*)
; | 225 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, const SkPictureData*)
; |
225 | 226 |
226 SkPictInfo createHeader() const; | 227 SkPictInfo createHeader() const; |
227 SkPictureData* backport() const; | 228 SkPictureData* backport() const; |
228 | 229 |
229 mutable uint32_t fUniqueID; | 230 mutable uint32_t fUniqueID; |
230 }; | 231 }; |
231 | 232 |
232 #endif | 233 #endif |
OLD | NEW |