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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 240 |
241 static_assert(MIN_PICTURE_VERSION <= 45, | 241 static_assert(MIN_PICTURE_VERSION <= 45, |
242 "Remove decoding of old SkTypeface::Style from SkFontDescripto
r.cpp."); | 242 "Remove decoding of old SkTypeface::Style from SkFontDescripto
r.cpp."); |
243 | 243 |
244 static_assert(MIN_PICTURE_VERSION <= 48, | 244 static_assert(MIN_PICTURE_VERSION <= 48, |
245 "Remove legacy gradient deserialization code from SkGradientSh
ader.cpp."); | 245 "Remove legacy gradient deserialization code from SkGradientSh
ader.cpp."); |
246 | 246 |
247 static bool IsValidPictInfo(const SkPictInfo& info); | 247 static bool IsValidPictInfo(const SkPictInfo& info); |
248 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, | 248 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, |
249 const SkPictureData*, | 249 const SkPictureData*, |
250 const SkReadBuffer* buffer); | 250 SkReadBuffer* buffer); |
251 | 251 |
252 SkPictInfo createHeader() const; | 252 SkPictInfo createHeader() const; |
253 SkPictureData* backport() const; | 253 SkPictureData* backport() const; |
254 | 254 |
255 mutable uint32_t fUniqueID; | 255 mutable uint32_t fUniqueID; |
256 }; | 256 }; |
257 | 257 |
258 #endif | 258 #endif |
OLD | NEW |