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

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

Issue 1761793003: Revert of move annotations to canvas virtual (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « include/core/SkPaint.h ('k') | include/core/SkWriter32.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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 // V35: Store SkRect (rather then width & height) in header 186 // V35: Store SkRect (rather then width & height) in header
187 // V36: Remove (obsolete) alphatype from SkColorTable 187 // V36: Remove (obsolete) alphatype from SkColorTable
188 // V37: Added shadow only option to SkDropShadowImageFilter (last version to record CLEAR) 188 // V37: Added shadow only option to SkDropShadowImageFilter (last version to record CLEAR)
189 // V38: Added PictureResolution option to SkPictureImageFilter 189 // V38: Added PictureResolution option to SkPictureImageFilter
190 // V39: Added FilterLevel option to SkPictureImageFilter 190 // V39: Added FilterLevel option to SkPictureImageFilter
191 // V40: Remove UniqueID serialization from SkImageFilter. 191 // V40: Remove UniqueID serialization from SkImageFilter.
192 // V41: Added serialization of SkBitmapSource's filterQuality parameter 192 // V41: Added serialization of SkBitmapSource's filterQuality parameter
193 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser ialize-a-picture? 193 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser ialize-a-picture?
194 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data 194 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data
195 // V44: Move annotations from paint to drawAnnotation
196 195
197 // Only SKPs within the min/current picture version range (inclusive) can be read. 196 // Only SKPs within the min/current picture version range (inclusive) can be read.
198 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom e M39. 197 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom e M39.
199 static const uint32_t CURRENT_PICTURE_VERSION = 44; 198 static const uint32_t CURRENT_PICTURE_VERSION = 43;
200 199
201 static_assert(MIN_PICTURE_VERSION <= 41, 200 static_assert(MIN_PICTURE_VERSION <= 41,
202 "Remove kFontFileName and related code from SkFontDescriptor.c pp."); 201 "Remove kFontFileName and related code from SkFontDescriptor.c pp.");
203 202
204 static_assert(MIN_PICTURE_VERSION <= 42, 203 static_assert(MIN_PICTURE_VERSION <= 42,
205 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); 204 "Remove COMMENT API handlers from SkPicturePlayback.cpp");
206 205
207 static_assert(MIN_PICTURE_VERSION <= 43, 206 static_assert(MIN_PICTURE_VERSION <= 43,
208 "Remove SkBitmapSourceDeserializer."); 207 "Remove SkBitmapSourceDeserializer.");
209 208
210 static bool IsValidPictInfo(const SkPictInfo& info); 209 static bool IsValidPictInfo(const SkPictInfo& info);
211 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*); 210 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*);
212 211
213 SkPictInfo createHeader() const; 212 SkPictInfo createHeader() const;
214 SkPictureData* backport() const; 213 SkPictureData* backport() const;
215 214
216 mutable uint32_t fUniqueID; 215 mutable uint32_t fUniqueID;
217 }; 216 };
218 217
219 #endif 218 #endif
OLDNEW
« no previous file with comments | « include/core/SkPaint.h ('k') | include/core/SkWriter32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698