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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 static const uint32_t CURRENT_PICTURE_VERSION = 45; | 212 static const uint32_t CURRENT_PICTURE_VERSION = 45; |
213 | 213 |
214 static_assert(MIN_PICTURE_VERSION <= 41, | 214 static_assert(MIN_PICTURE_VERSION <= 41, |
215 "Remove kFontFileName and related code from SkFontDescriptor.c
pp."); | 215 "Remove kFontFileName and related code from SkFontDescriptor.c
pp."); |
216 | 216 |
217 static_assert(MIN_PICTURE_VERSION <= 42, | 217 static_assert(MIN_PICTURE_VERSION <= 42, |
218 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); | 218 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); |
219 | 219 |
220 static_assert(MIN_PICTURE_VERSION <= 43, | 220 static_assert(MIN_PICTURE_VERSION <= 43, |
221 "Remove SkBitmapSourceDeserializer."); | 221 "Remove SkBitmapSourceDeserializer."); |
222 | 222 |
223 static_assert(MIN_PICTURE_VERSION <= 45, | |
224 "Remove decoding of old SkTypeface::Style from SkFontDescripto
r.cpp."); | |
225 | |
226 static bool IsValidPictInfo(const SkPictInfo& info); | 223 static bool IsValidPictInfo(const SkPictInfo& info); |
227 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, | 224 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, |
228 const SkPictureData*, | 225 const SkPictureData*, |
229 const SkReadBuffer* buffer); | 226 const SkReadBuffer* buffer); |
230 | 227 |
231 SkPictInfo createHeader() const; | 228 SkPictInfo createHeader() const; |
232 SkPictureData* backport() const; | 229 SkPictureData* backport() const; |
233 | 230 |
234 mutable uint32_t fUniqueID; | 231 mutable uint32_t fUniqueID; |
235 }; | 232 }; |
236 | 233 |
237 #endif | 234 #endif |
OLD | NEW |