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

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

Issue 1231433004: Merge crrev.com/1151663002 into M44. (Closed) Base URL: https://skia.googlesource.com/skia.git@m44
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | src/core/SkPictureShader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8
9 #ifndef SkPicture_DEFINED 9 #ifndef SkPicture_DEFINED
10 #define SkPicture_DEFINED 10 #define SkPicture_DEFINED
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // V32: Removed SkPaintOptionsAndroid from SkPaint 235 // V32: Removed SkPaintOptionsAndroid from SkPaint
236 // V33: Serialize only public API of effects. 236 // V33: Serialize only public API of effects.
237 // V34: Add SkTextBlob serialization. 237 // V34: Add SkTextBlob serialization.
238 // V35: Store SkRect (rather then width & height) in header 238 // V35: Store SkRect (rather then width & height) in header
239 // V36: Remove (obsolete) alphatype from SkColorTable 239 // V36: Remove (obsolete) alphatype from SkColorTable
240 // V37: Added shadow only option to SkDropShadowImageFilter (last version to record CLEAR) 240 // V37: Added shadow only option to SkDropShadowImageFilter (last version to record CLEAR)
241 // V38: Added PictureResolution option to SkPictureImageFilter 241 // V38: Added PictureResolution option to SkPictureImageFilter
242 // V39: Added FilterLevel option to SkPictureImageFilter 242 // V39: Added FilterLevel option to SkPictureImageFilter
243 // V40: Remove UniqueID serialization from SkImageFilter. 243 // V40: Remove UniqueID serialization from SkImageFilter.
244 // V41: Added serialization of SkBitmapSource's filterQuality parameter 244 // V41: Added serialization of SkBitmapSource's filterQuality parameter
245 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser ialize-a-picture?
245 246
246 // Note: If the picture version needs to be increased then please follow the 247 // Note: If the picture version needs to be increased then please follow the
247 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw 248 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw
248 249
249 // Only SKPs within the min/current picture version range (inclusive) can be read. 250 // Only SKPs within the min/current picture version range (inclusive) can be read.
250 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrome M3 9. 251 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom e M39.
251 static const uint32_t CURRENT_PICTURE_VERSION = 41; 252 static const uint32_t CURRENT_PICTURE_VERSION = 42;
252 253
253 static_assert(MIN_PICTURE_VERSION <= 41, 254 static_assert(MIN_PICTURE_VERSION <= 41,
254 "Remove kFontFileName and related code from SkFontDescriptor.c pp."); 255 "Remove kFontFileName and related code from SkFontDescriptor.c pp.");
255 256
256 void createHeader(SkPictInfo* info) const; 257 void createHeader(SkPictInfo* info) const;
257 static bool IsValidPictInfo(const SkPictInfo& info); 258 static bool IsValidPictInfo(const SkPictInfo& info);
258 259
259 // Takes ownership of the (optional) SnapshotArray. 260 // Takes ownership of the (optional) SnapshotArray.
260 // For performance, we take ownership of the caller's refs on the SkRecord, BBH, and AccelData. 261 // For performance, we take ownership of the caller's refs on the SkRecord, BBH, and AccelData.
261 SkPicture(const SkRect& cullRect, 262 SkPicture(const SkRect& cullRect,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 301
301 friend class SkPictureRecorder; // SkRecord-based constructor. 302 friend class SkPictureRecorder; // SkRecord-based constructor.
302 friend class GrLayerHoister; // access to fRecord 303 friend class GrLayerHoister; // access to fRecord
303 friend class ReplaceDraw; 304 friend class ReplaceDraw;
304 friend class SkPictureUtils; 305 friend class SkPictureUtils;
305 friend class SkRecordedDrawable; 306 friend class SkRecordedDrawable;
306 }; 307 };
307 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 88, SkPictureSize); 308 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 88, SkPictureSize);
308 309
309 #endif 310 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPictureShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698