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

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

Issue 2201993003: Add GM to test out blurmaskfilter occluders (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up Created 4 years, 4 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 | « gm/occludedrrectblur.cpp ('k') | include/effects/SkBlurMaskFilter.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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // V37: Added shadow only option to SkDropShadowImageFilter (last version to record CLEAR) 200 // V37: Added shadow only option to SkDropShadowImageFilter (last version to record CLEAR)
201 // V38: Added PictureResolution option to SkPictureImageFilter 201 // V38: Added PictureResolution option to SkPictureImageFilter
202 // V39: Added FilterLevel option to SkPictureImageFilter 202 // V39: Added FilterLevel option to SkPictureImageFilter
203 // V40: Remove UniqueID serialization from SkImageFilter. 203 // V40: Remove UniqueID serialization from SkImageFilter.
204 // V41: Added serialization of SkBitmapSource's filterQuality parameter 204 // V41: Added serialization of SkBitmapSource's filterQuality parameter
205 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser ialize-a-picture? 205 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser ialize-a-picture?
206 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data 206 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data
207 // V44: Move annotations from paint to drawAnnotation 207 // V44: Move annotations from paint to drawAnnotation
208 // V45: Add invNormRotation to SkLightingShader. 208 // V45: Add invNormRotation to SkLightingShader.
209 // V46: Add drawTextRSXform 209 // V46: Add drawTextRSXform
210 // V47: Add occluder rect to SkBlurMaskFilter
210 211
211 // Only SKPs within the min/current picture version range (inclusive) can be read. 212 // Only SKPs within the min/current picture version range (inclusive) can be read.
212 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom e M39. 213 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrom e M39.
213 static const uint32_t CURRENT_PICTURE_VERSION = 46; 214 static const uint32_t CURRENT_PICTURE_VERSION = 47;
214 215
215 static_assert(MIN_PICTURE_VERSION <= 41, 216 static_assert(MIN_PICTURE_VERSION <= 41,
216 "Remove kFontFileName and related code from SkFontDescriptor.c pp."); 217 "Remove kFontFileName and related code from SkFontDescriptor.c pp.");
217 218
218 static_assert(MIN_PICTURE_VERSION <= 42, 219 static_assert(MIN_PICTURE_VERSION <= 42,
219 "Remove COMMENT API handlers from SkPicturePlayback.cpp"); 220 "Remove COMMENT API handlers from SkPicturePlayback.cpp");
220 221
221 static_assert(MIN_PICTURE_VERSION <= 43, 222 static_assert(MIN_PICTURE_VERSION <= 43,
222 "Remove SkBitmapSourceDeserializer."); 223 "Remove SkBitmapSourceDeserializer.");
223 224
224 static_assert(MIN_PICTURE_VERSION <= 45, 225 static_assert(MIN_PICTURE_VERSION <= 45,
225 "Remove decoding of old SkTypeface::Style from SkFontDescripto r.cpp."); 226 "Remove decoding of old SkTypeface::Style from SkFontDescripto r.cpp.");
226 227
227 static bool IsValidPictInfo(const SkPictInfo& info); 228 static bool IsValidPictInfo(const SkPictInfo& info);
228 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, 229 static sk_sp<SkPicture> Forwardport(const SkPictInfo&,
229 const SkPictureData*, 230 const SkPictureData*,
230 const SkReadBuffer* buffer); 231 const SkReadBuffer* buffer);
231 232
232 SkPictInfo createHeader() const; 233 SkPictInfo createHeader() const;
233 SkPictureData* backport() const; 234 SkPictureData* backport() const;
234 235
235 mutable uint32_t fUniqueID; 236 mutable uint32_t fUniqueID;
236 }; 237 };
237 238
238 #endif 239 #endif
OLDNEW
« no previous file with comments | « gm/occludedrrectblur.cpp ('k') | include/effects/SkBlurMaskFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698