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 | 8 |
9 #ifndef SkPicture_DEFINED | 9 #ifndef SkPicture_DEFINED |
10 #define SkPicture_DEFINED | 10 #define SkPicture_DEFINED |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
246 // V40: Remove UniqueID serialization from SkImageFilter. | 246 // V40: Remove UniqueID serialization from SkImageFilter. |
247 // V41: Added serialization of SkBitmapSource's filterQuality parameter | 247 // V41: Added serialization of SkBitmapSource's filterQuality parameter |
248 | 248 |
249 // Note: If the picture version needs to be increased then please follow the | 249 // Note: If the picture version needs to be increased then please follow the |
250 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw | 250 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw |
251 | 251 |
252 // Only SKPs within the min/current picture version range (inclusive) can be read. | 252 // Only SKPs within the min/current picture version range (inclusive) can be read. |
253 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrome M3 9. | 253 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrome M3 9. |
254 static const uint32_t CURRENT_PICTURE_VERSION = 41; | 254 static const uint32_t CURRENT_PICTURE_VERSION = 41; |
255 | 255 |
256 static_assert(MIN_PICTURE_VERSION <= 41, "Remove kFontFileName and related c ode."); | |
mtklein
2015/04/17 17:46:22
Might add "from SkFontDescriptor.cpp"?
bungeman-skia
2015/04/17 17:50:27
What, and use a whole new line? Done.
| |
257 | |
256 void createHeader(SkPictInfo* info) const; | 258 void createHeader(SkPictInfo* info) const; |
257 static bool IsValidPictInfo(const SkPictInfo& info); | 259 static bool IsValidPictInfo(const SkPictInfo& info); |
258 | 260 |
259 // Takes ownership of the SkRecord and (optional) SnapshotArray, refs the (o ptional) BBH. | 261 // Takes ownership of the SkRecord and (optional) SnapshotArray, refs the (o ptional) BBH. |
260 SkPicture(const SkRect& cullRect, SkRecord*, SnapshotArray*, SkBBoxHierarchy *); | 262 SkPicture(const SkRect& cullRect, SkRecord*, SnapshotArray*, SkBBoxHierarchy *); |
261 | 263 |
262 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*); | 264 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*); |
263 static SkPictureData* Backport(const SkRecord&, const SkPictInfo&, | 265 static SkPictureData* Backport(const SkRecord&, const SkPictInfo&, |
264 SkPicture const* const drawablePics[], int dr awableCount); | 266 SkPicture const* const drawablePics[], int dr awableCount); |
265 | 267 |
(...skipping 29 matching lines...) Expand all Loading... | |
295 | 297 |
296 friend class SkPictureRecorder; // SkRecord-based constructor. | 298 friend class SkPictureRecorder; // SkRecord-based constructor. |
297 friend class GrLayerHoister; // access to fRecord | 299 friend class GrLayerHoister; // access to fRecord |
298 friend class ReplaceDraw; | 300 friend class ReplaceDraw; |
299 friend class SkPictureUtils; | 301 friend class SkPictureUtils; |
300 friend class SkRecordedDrawable; | 302 friend class SkRecordedDrawable; |
301 }; | 303 }; |
302 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 96, SkPictureSize); | 304 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 96, SkPictureSize); |
303 | 305 |
304 #endif | 306 #endif |
OLD | NEW |