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

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

Issue 450513002: Revert "Remove SkPaintOptionsAndroid" (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 | « include/core/SkPaintOptionsAndroid.h ('k') | include/core/SkReadBuffer.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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes 224 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes
225 // V23: SkPaint::FilterLevel became a real enum 225 // V23: SkPaint::FilterLevel became a real enum
226 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin g 226 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin g
227 // V25: SkDashPathEffect now only writes phase and interval array when flatt ening 227 // V25: SkDashPathEffect now only writes phase and interval array when flatt ening
228 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint . 228 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint .
229 // V27: Remove SkUnitMapper from gradients (and skia). 229 // V27: Remove SkUnitMapper from gradients (and skia).
230 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap. 230 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap.
231 // V29: Removed SaveFlags parameter from save(). 231 // V29: Removed SaveFlags parameter from save().
232 // V30: Remove redundant SkMatrix from SkLocalMatrixShader. 232 // V30: Remove redundant SkMatrix from SkLocalMatrixShader.
233 // V31: Add a serialized UniqueID to SkImageFilter. 233 // V31: Add a serialized UniqueID to SkImageFilter.
234 // V32: Removed SkPaintOptionsAndroid from SkPaint
235 234
236 // Note: If the picture version needs to be increased then please follow the 235 // Note: If the picture version needs to be increased then please follow the
237 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw 236 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw
238 237
239 // Only SKPs within the min/current picture version range (inclusive) can be read. 238 // Only SKPs within the min/current picture version range (inclusive) can be read.
240 static const uint32_t MIN_PICTURE_VERSION = 19; 239 static const uint32_t MIN_PICTURE_VERSION = 19;
241 static const uint32_t CURRENT_PICTURE_VERSION = 32; 240 static const uint32_t CURRENT_PICTURE_VERSION = 31;
242 241
243 mutable uint32_t fUniqueID; 242 mutable uint32_t fUniqueID;
244 243
245 // TODO: make SkPictureData const when clone method goes away 244 // TODO: make SkPictureData const when clone method goes away
246 SkAutoTDelete<SkPictureData> fData; 245 SkAutoTDelete<SkPictureData> fData;
247 int fWidth, fHeight; 246 int fWidth, fHeight;
248 mutable SkAutoTUnref<const AccelData> fAccelData; 247 mutable SkAutoTUnref<const AccelData> fAccelData;
249 248
250 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re fed 249 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re fed
251 250
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 friend class SkPictureReplacementPlayback; // to access OperationList 288 friend class SkPictureReplacementPlayback; // to access OperationList
290 289
291 typedef SkRefCnt INHERITED; 290 typedef SkRefCnt INHERITED;
292 291
293 SkPicture(int width, int height, SkRecord*); // Takes ownership. 292 SkPicture(int width, int height, SkRecord*); // Takes ownership.
294 SkAutoTDelete<SkRecord> fRecord; 293 SkAutoTDelete<SkRecord> fRecord;
295 bool fRecordWillPlayBackBitmaps; // TODO: const 294 bool fRecordWillPlayBackBitmaps; // TODO: const
296 }; 295 };
297 296
298 #endif 297 #endif
OLDNEW
« no previous file with comments | « include/core/SkPaintOptionsAndroid.h ('k') | include/core/SkReadBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698