Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: include/core/SkPicture.h

Issue 2370063002: Gradients are serialized (and can be constructed) as SkColor4f + SkColorSpace (Closed)
Patch Set: Bump SKP version Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser ialize-a-picture? 219 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser ialize-a-picture?
220 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data 220 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data
221 // V44: Move annotations from paint to drawAnnotation 221 // V44: Move annotations from paint to drawAnnotation
222 // V45: Add invNormRotation to SkLightingShader. 222 // V45: Add invNormRotation to SkLightingShader.
223 // V46: Add drawTextRSXform 223 // V46: Add drawTextRSXform
224 // V47: Add occluder rect to SkBlurMaskFilter 224 // V47: Add occluder rect to SkBlurMaskFilter
225 // V48: Read and write extended SkTextBlobs. 225 // V48: Read and write extended SkTextBlobs.
226 226
227 // Only SKPs within the min/current picture version range (inclusive) can be read. 227 // Only SKPs within the min/current picture version range (inclusive) can be read.
228 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom e M39. 228 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom e M39.
229 static const uint32_t CURRENT_PICTURE_VERSION = 48; 229 static const uint32_t CURRENT_PICTURE_VERSION = 49;
230 230
231 static_assert(MIN_PICTURE_VERSION <= 41, 231 static_assert(MIN_PICTURE_VERSION <= 41,
232 "Remove kFontFileName and related code from SkFontDescriptor.c pp."); 232 "Remove kFontFileName and related code from SkFontDescriptor.c pp.");
233 233
234 static_assert(MIN_PICTURE_VERSION <= 42, 234 static_assert(MIN_PICTURE_VERSION <= 42,
235 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); 235 "Remove COMMENT API handlers from SkPicturePlayback.cpp");
236 236
237 static_assert(MIN_PICTURE_VERSION <= 43, 237 static_assert(MIN_PICTURE_VERSION <= 43,
238 "Remove SkBitmapSourceDeserializer."); 238 "Remove SkBitmapSourceDeserializer.");
239 239
240 static_assert(MIN_PICTURE_VERSION <= 45, 240 static_assert(MIN_PICTURE_VERSION <= 45,
241 "Remove decoding of old SkTypeface::Style from SkFontDescripto r.cpp."); 241 "Remove decoding of old SkTypeface::Style from SkFontDescripto r.cpp.");
242 242
f(malita) 2016/09/28 15:41:52 nit: static_assert(MIN_PICTURE_VERSION <= 48, "Rem
Brian Osman 2016/09/28 15:46:17 Acknowledged. I'll add a comment to the version lo
243 static bool IsValidPictInfo(const SkPictInfo& info); 243 static bool IsValidPictInfo(const SkPictInfo& info);
244 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, 244 static sk_sp<SkPicture> Forwardport(const SkPictInfo&,
245 const SkPictureData*, 245 const SkPictureData*,
246 const SkReadBuffer* buffer); 246 const SkReadBuffer* buffer);
247 247
248 SkPictInfo createHeader() const; 248 SkPictInfo createHeader() const;
249 SkPictureData* backport() const; 249 SkPictureData* backport() const;
250 250
251 mutable uint32_t fUniqueID; 251 mutable uint32_t fUniqueID;
252 }; 252 };
253 253
254 #endif 254 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698