| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 virtual int numSlowPaths() const = 0; | 163 virtual int numSlowPaths() const = 0; |
| 164 friend struct SkPathCounter; | 164 friend struct SkPathCounter; |
| 165 | 165 |
| 166 // V35: Store SkRect (rather then width & height) in header | 166 // V35: Store SkRect (rather then width & height) in header |
| 167 // V36: Remove (obsolete) alphatype from SkColorTable | 167 // V36: Remove (obsolete) alphatype from SkColorTable |
| 168 // V37: Added shadow only option to SkDropShadowImageFilter (last version to
record CLEAR) | 168 // V37: Added shadow only option to SkDropShadowImageFilter (last version to
record CLEAR) |
| 169 // V38: Added PictureResolution option to SkPictureImageFilter | 169 // V38: Added PictureResolution option to SkPictureImageFilter |
| 170 // V39: Added FilterLevel option to SkPictureImageFilter | 170 // V39: Added FilterLevel option to SkPictureImageFilter |
| 171 // V40: Remove UniqueID serialization from SkImageFilter. | 171 // V40: Remove UniqueID serialization from SkImageFilter. |
| 172 // V41: Added serialization of SkBitmapSource's filterQuality parameter | 172 // V41: Added serialization of SkBitmapSource's filterQuality parameter |
| 173 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser
ialize-a-picture? |
| 173 | 174 |
| 174 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 175 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
| 175 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom
e M39. | 176 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom
e M39. |
| 176 static const uint32_t CURRENT_PICTURE_VERSION = 41; | 177 static const uint32_t CURRENT_PICTURE_VERSION = 42; |
| 177 | 178 |
| 178 static_assert(MIN_PICTURE_VERSION <= 41, | 179 static_assert(MIN_PICTURE_VERSION <= 41, |
| 179 "Remove kFontFileName and related code from SkFontDescriptor.c
pp."); | 180 "Remove kFontFileName and related code from SkFontDescriptor.c
pp."); |
| 180 | 181 |
| 181 static bool IsValidPictInfo(const SkPictInfo& info); | 182 static bool IsValidPictInfo(const SkPictInfo& info); |
| 182 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*); | 183 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*); |
| 183 | 184 |
| 184 SkPictInfo createHeader() const; | 185 SkPictInfo createHeader() const; |
| 185 SkPictureData* backport() const; | 186 SkPictureData* backport() const; |
| 186 | 187 |
| 187 mutable uint32_t fUniqueID; | 188 mutable uint32_t fUniqueID; |
| 188 }; | 189 }; |
| 189 | 190 |
| 190 #endif | 191 #endif |
| OLD | NEW |