Chromium Code Reviews| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 168 friend struct SkPathCounter; | 168 friend struct SkPathCounter; |
| 169 | 169 |
| 170 // V35: Store SkRect (rather then width & height) in header | 170 // V35: Store SkRect (rather then width & height) in header |
| 171 // V36: Remove (obsolete) alphatype from SkColorTable | 171 // V36: Remove (obsolete) alphatype from SkColorTable |
| 172 // V37: Added shadow only option to SkDropShadowImageFilter (last version to record CLEAR) | 172 // V37: Added shadow only option to SkDropShadowImageFilter (last version to record CLEAR) |
| 173 // V38: Added PictureResolution option to SkPictureImageFilter | 173 // V38: Added PictureResolution option to SkPictureImageFilter |
| 174 // V39: Added FilterLevel option to SkPictureImageFilter | 174 // V39: Added FilterLevel option to SkPictureImageFilter |
| 175 // V40: Remove UniqueID serialization from SkImageFilter. | 175 // V40: Remove UniqueID serialization from SkImageFilter. |
| 176 // V41: Added serialization of SkBitmapSource's filterQuality parameter | 176 // V41: Added serialization of SkBitmapSource's filterQuality parameter |
| 177 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser ialize-a-picture? | 177 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser ialize-a-picture? |
| 178 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data | 178 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data |
|
robertphillips
2015/06/25 15:53:21
opt or op codes ?
reed1
2015/06/25 19:12:29
reverting
| |
| 179 // V44: Added DRAW_IMAGE_NINE and DRAW_ATLAS (earlier) opt codes to serializ ed data | |
| 179 | 180 |
| 180 // Only SKPs within the min/current picture version range (inclusive) can be read. | 181 // Only SKPs within the min/current picture version range (inclusive) can be read. |
| 181 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom e M39. | 182 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom e M39. |
| 182 static const uint32_t CURRENT_PICTURE_VERSION = 43; | 183 static const uint32_t CURRENT_PICTURE_VERSION = 44; |
| 183 | 184 |
| 184 static_assert(MIN_PICTURE_VERSION <= 41, | 185 static_assert(MIN_PICTURE_VERSION <= 41, |
| 185 "Remove kFontFileName and related code from SkFontDescriptor.c pp."); | 186 "Remove kFontFileName and related code from SkFontDescriptor.c pp."); |
| 186 | 187 |
| 187 static_assert(MIN_PICTURE_VERSION <= 42, | 188 static_assert(MIN_PICTURE_VERSION <= 42, |
| 188 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); | 189 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); |
| 189 | 190 |
| 190 static bool IsValidPictInfo(const SkPictInfo& info); | 191 static bool IsValidPictInfo(const SkPictInfo& info); |
| 191 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*); | 192 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*); |
| 192 | 193 |
| 193 SkPictInfo createHeader() const; | 194 SkPictInfo createHeader() const; |
| 194 SkPictureData* backport() const; | 195 SkPictureData* backport() const; |
| 195 | 196 |
| 196 mutable uint32_t fUniqueID; | 197 mutable uint32_t fUniqueID; |
| 197 }; | 198 }; |
| 198 | 199 |
| 199 #endif | 200 #endif |
| OLD | NEW |