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

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

Issue 933483002: add Method param to drawTextOnPath, supporting SVG spec Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add guard for android Created 5 years, 10 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
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // V30: Remove redundant SkMatrix from SkLocalMatrixShader. 250 // V30: Remove redundant SkMatrix from SkLocalMatrixShader.
251 // V31: Add a serialized UniqueID to SkImageFilter. 251 // V31: Add a serialized UniqueID to SkImageFilter.
252 // V32: Removed SkPaintOptionsAndroid from SkPaint 252 // V32: Removed SkPaintOptionsAndroid from SkPaint
253 // V33: Serialize only public API of effects. 253 // V33: Serialize only public API of effects.
254 // V34: Add SkTextBlob serialization. 254 // V34: Add SkTextBlob serialization.
255 // V35: Store SkRect (rather then width & height) in header 255 // V35: Store SkRect (rather then width & height) in header
256 // V36: Remove (obsolete) alphatype from SkColorTable 256 // V36: Remove (obsolete) alphatype from SkColorTable
257 // V37: Added shadow only option to SkDropShadowImageFilter (last version to record CLEAR) 257 // V37: Added shadow only option to SkDropShadowImageFilter (last version to record CLEAR)
258 // V38: Added PictureResolution option to SkPictureImageFilter 258 // V38: Added PictureResolution option to SkPictureImageFilter
259 // V39: Added FilterLevel option to SkPictureImageFilter 259 // V39: Added FilterLevel option to SkPictureImageFilter
260 // V40: Added Method parameter to drawTextOnPath
260 261
261 // Note: If the picture version needs to be increased then please follow the 262 // Note: If the picture version needs to be increased then please follow the
262 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw 263 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw
263 264
264 // Only SKPs within the min/current picture version range (inclusive) can be read. 265 // Only SKPs within the min/current picture version range (inclusive) can be read.
265 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrome M3 9. 266 static const uint32_t MIN_PICTURE_VERSION = 35; // Produced by Chrome M3 9.
266 static const uint32_t CURRENT_PICTURE_VERSION = 39; 267 static const uint32_t CURRENT_PICTURE_VERSION = 40;
267 268
268 void createHeader(SkPictInfo* info) const; 269 void createHeader(SkPictInfo* info) const;
269 static bool IsValidPictInfo(const SkPictInfo& info); 270 static bool IsValidPictInfo(const SkPictInfo& info);
270 271
271 // Takes ownership of the SkRecord and (optional) SnapshotArray, refs the (o ptional) BBH. 272 // Takes ownership of the SkRecord and (optional) SnapshotArray, refs the (o ptional) BBH.
272 SkPicture(const SkRect& cullRect, SkRecord*, SnapshotArray*, SkBBoxHierarchy *); 273 SkPicture(const SkRect& cullRect, SkRecord*, SnapshotArray*, SkBBoxHierarchy *);
273 274
274 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*); 275 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*);
275 static SkPictureData* Backport(const SkRecord&, const SkPictInfo&, 276 static SkPictureData* Backport(const SkRecord&, const SkPictInfo&,
276 SkPicture const* const drawablePics[], int dr awableCount); 277 SkPicture const* const drawablePics[], int dr awableCount);
(...skipping 30 matching lines...) Expand all
307 308
308 friend class SkPictureRecorder; // SkRecord-based constructor. 309 friend class SkPictureRecorder; // SkRecord-based constructor.
309 friend class GrLayerHoister; // access to fRecord 310 friend class GrLayerHoister; // access to fRecord
310 friend class ReplaceDraw; 311 friend class ReplaceDraw;
311 friend class SkPictureUtils; 312 friend class SkPictureUtils;
312 friend class SkRecordedDrawable; 313 friend class SkRecordedDrawable;
313 }; 314 };
314 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 96, SkPictureSize); 315 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 96, SkPictureSize);
315 316
316 #endif 317 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698