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

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

Issue 753073010: Adding a PictureResolution option to SkPictureImageFilter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebased again Created 6 years 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/pictureimagefilter.cpp ('k') | include/effects/SkPictureImageFilter.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 /* 2 /*
3 * Copyright 2007 The Android Open Source Project 3 * Copyright 2007 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPicture_DEFINED 10 #ifndef SkPicture_DEFINED
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap. 239 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap.
240 // V29: Removed SaveFlags parameter from save(). 240 // V29: Removed SaveFlags parameter from save().
241 // V30: Remove redundant SkMatrix from SkLocalMatrixShader. 241 // V30: Remove redundant SkMatrix from SkLocalMatrixShader.
242 // V31: Add a serialized UniqueID to SkImageFilter. 242 // V31: Add a serialized UniqueID to SkImageFilter.
243 // V32: Removed SkPaintOptionsAndroid from SkPaint 243 // V32: Removed SkPaintOptionsAndroid from SkPaint
244 // V33: Serialize only public API of effects. 244 // V33: Serialize only public API of effects.
245 // V34: Add SkTextBlob serialization. 245 // V34: Add SkTextBlob serialization.
246 // V35: Store SkRect (rather then width & height) in header 246 // V35: Store SkRect (rather then width & height) in header
247 // V36: Remove (obsolete) alphatype from SkColorTable 247 // V36: Remove (obsolete) alphatype from SkColorTable
248 // V37: Added shadow only option to SkDropShadowImageFilter (last version to record CLEAR) 248 // V37: Added shadow only option to SkDropShadowImageFilter (last version to record CLEAR)
249 // V37: Added PictureResolution and FilterLevel options to SkPictureImageFil ter
249 250
250 // Note: If the picture version needs to be increased then please follow the 251 // Note: If the picture version needs to be increased then please follow the
251 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw 252 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw
252 253
253 // Only SKPs within the min/current picture version range (inclusive) can be read. 254 // Only SKPs within the min/current picture version range (inclusive) can be read.
254 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrome M3 9. 255 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrome M3 9.
255 static const uint32_t CURRENT_PICTURE_VERSION = 37; 256 static const uint32_t CURRENT_PICTURE_VERSION = 38;
256 257
257 void createHeader(SkPictInfo* info) const; 258 void createHeader(SkPictInfo* info) const;
258 static bool IsValidPictInfo(const SkPictInfo& info); 259 static bool IsValidPictInfo(const SkPictInfo& info);
259 260
260 // Takes ownership of the SkRecord and (optional) SnapshotArray, refs the (o ptional) BBH. 261 // Takes ownership of the SkRecord and (optional) SnapshotArray, refs the (o ptional) BBH.
261 SkPicture(const SkRect& cullRect, SkRecord*, SnapshotArray*, SkBBoxHierarchy *); 262 SkPicture(const SkRect& cullRect, SkRecord*, SnapshotArray*, SkBBoxHierarchy *);
262 263
263 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*); 264 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*);
264 static SkPictureData* Backport(const SkRecord&, const SkPictInfo&, 265 static SkPictureData* Backport(const SkRecord&, const SkPictInfo&,
265 SkPicture const* const drawablePics[], int dr awableCount); 266 SkPicture const* const drawablePics[], int dr awableCount);
(...skipping 30 matching lines...) Expand all
296 297
297 friend class SkPictureRecorder; // SkRecord-based constructor. 298 friend class SkPictureRecorder; // SkRecord-based constructor.
298 friend class GrLayerHoister; // access to fRecord 299 friend class GrLayerHoister; // access to fRecord
299 friend class ReplaceDraw; 300 friend class ReplaceDraw;
300 friend class SkPictureUtils; 301 friend class SkPictureUtils;
301 friend class SkRecordedDrawable; 302 friend class SkRecordedDrawable;
302 }; 303 };
303 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 96, SkPictureSize); 304 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 96, SkPictureSize);
304 305
305 #endif 306 #endif
OLDNEW
« no previous file with comments | « gm/pictureimagefilter.cpp ('k') | include/effects/SkPictureImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698