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

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

Issue 2084533004: SkTextBlob: Begin implementing Extended TextBlob API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 3 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 | include/core/SkTextBlob.h » ('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 #ifndef SkPicture_DEFINED 8 #ifndef SkPicture_DEFINED
9 #define SkPicture_DEFINED 9 #define SkPicture_DEFINED
10 10
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // V38: Added PictureResolution option to SkPictureImageFilter 206 // V38: Added PictureResolution option to SkPictureImageFilter
207 // V39: Added FilterLevel option to SkPictureImageFilter 207 // V39: Added FilterLevel option to SkPictureImageFilter
208 // V40: Remove UniqueID serialization from SkImageFilter. 208 // V40: Remove UniqueID serialization from SkImageFilter.
209 // V41: Added serialization of SkBitmapSource's filterQuality parameter 209 // V41: Added serialization of SkBitmapSource's filterQuality parameter
210 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser ialize-a-picture? 210 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser ialize-a-picture?
211 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data 211 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data
212 // V44: Move annotations from paint to drawAnnotation 212 // V44: Move annotations from paint to drawAnnotation
213 // V45: Add invNormRotation to SkLightingShader. 213 // V45: Add invNormRotation to SkLightingShader.
214 // V46: Add drawTextRSXform 214 // V46: Add drawTextRSXform
215 // V47: Add occluder rect to SkBlurMaskFilter 215 // V47: Add occluder rect to SkBlurMaskFilter
216 // V48: Read and write extended SkTextBlobs.
216 217
217 // Only SKPs within the min/current picture version range (inclusive) can be read. 218 // Only SKPs within the min/current picture version range (inclusive) can be read.
218 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom e M39. 219 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom e M39.
219 static const uint32_t CURRENT_PICTURE_VERSION = 47; 220 static const uint32_t CURRENT_PICTURE_VERSION = 48;
220 221
221 static_assert(MIN_PICTURE_VERSION <= 41, 222 static_assert(MIN_PICTURE_VERSION <= 41,
222 "Remove kFontFileName and related code from SkFontDescriptor.c pp."); 223 "Remove kFontFileName and related code from SkFontDescriptor.c pp.");
223 224
224 static_assert(MIN_PICTURE_VERSION <= 42, 225 static_assert(MIN_PICTURE_VERSION <= 42,
225 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); 226 "Remove COMMENT API handlers from SkPicturePlayback.cpp");
226 227
227 static_assert(MIN_PICTURE_VERSION <= 43, 228 static_assert(MIN_PICTURE_VERSION <= 43,
228 "Remove SkBitmapSourceDeserializer."); 229 "Remove SkBitmapSourceDeserializer.");
229 230
230 static_assert(MIN_PICTURE_VERSION <= 45, 231 static_assert(MIN_PICTURE_VERSION <= 45,
231 "Remove decoding of old SkTypeface::Style from SkFontDescripto r.cpp."); 232 "Remove decoding of old SkTypeface::Style from SkFontDescripto r.cpp.");
232 233
233 static bool IsValidPictInfo(const SkPictInfo& info); 234 static bool IsValidPictInfo(const SkPictInfo& info);
234 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, 235 static sk_sp<SkPicture> Forwardport(const SkPictInfo&,
235 const SkPictureData*, 236 const SkPictureData*,
236 const SkReadBuffer* buffer); 237 const SkReadBuffer* buffer);
237 238
238 SkPictInfo createHeader() const; 239 SkPictInfo createHeader() const;
239 SkPictureData* backport() const; 240 SkPictureData* backport() const;
240 241
241 mutable uint32_t fUniqueID; 242 mutable uint32_t fUniqueID;
242 }; 243 };
243 244
244 #endif 245 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkTextBlob.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698