| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 185 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
| 186 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom
e M39. | 186 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom
e M39. |
| 187 static const uint32_t CURRENT_PICTURE_VERSION = 43; | 187 static const uint32_t CURRENT_PICTURE_VERSION = 43; |
| 188 | 188 |
| 189 static_assert(MIN_PICTURE_VERSION <= 41, | 189 static_assert(MIN_PICTURE_VERSION <= 41, |
| 190 "Remove kFontFileName and related code from SkFontDescriptor.c
pp."); | 190 "Remove kFontFileName and related code from SkFontDescriptor.c
pp."); |
| 191 | 191 |
| 192 static_assert(MIN_PICTURE_VERSION <= 42, | 192 static_assert(MIN_PICTURE_VERSION <= 42, |
| 193 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); | 193 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); |
| 194 | 194 |
| 195 static_assert(MIN_PICTURE_VERSION <= 43, |
| 196 "Remove SkBitmapSourceDeserializer."); |
| 197 |
| 195 static bool IsValidPictInfo(const SkPictInfo& info); | 198 static bool IsValidPictInfo(const SkPictInfo& info); |
| 196 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*); | 199 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*); |
| 197 | 200 |
| 198 SkPictInfo createHeader() const; | 201 SkPictInfo createHeader() const; |
| 199 SkPictureData* backport() const; | 202 SkPictureData* backport() const; |
| 200 | 203 |
| 201 mutable uint32_t fUniqueID; | 204 mutable uint32_t fUniqueID; |
| 202 }; | 205 }; |
| 203 | 206 |
| 204 #endif | 207 #endif |
| OLD | NEW |