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

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

Issue 395603002: Simplify flattening to just write enough to call the factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: use friend class instead of function to better hide how we initialize 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
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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // V29: Removed SaveFlags parameter from save(). 241 // V29: Removed SaveFlags parameter from save().
242 // V30: Remove redundant SkMatrix from SkLocalMatrixShader. 242 // V30: Remove redundant SkMatrix from SkLocalMatrixShader.
243 // V31: Add a serialized UniqueID to SkImageFilter. 243 // V31: Add a serialized UniqueID to SkImageFilter.
244 // V32: Removed SkPaintOptionsAndroid from SkPaint 244 // V32: Removed SkPaintOptionsAndroid from SkPaint
245 245
246 // Note: If the picture version needs to be increased then please follow the 246 // Note: If the picture version needs to be increased then please follow the
247 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw 247 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw
248 248
249 // Only SKPs within the min/current picture version range (inclusive) can be read. 249 // Only SKPs within the min/current picture version range (inclusive) can be read.
250 static const uint32_t MIN_PICTURE_VERSION = 19; 250 static const uint32_t MIN_PICTURE_VERSION = 19;
251 static const uint32_t CURRENT_PICTURE_VERSION = 32; 251 static const uint32_t CURRENT_PICTURE_VERSION = 33;
252 252
253 mutable uint32_t fUniqueID; 253 mutable uint32_t fUniqueID;
254 254
255 // TODO: make SkPictureData const when clone method goes away 255 // TODO: make SkPictureData const when clone method goes away
256 SkAutoTDelete<SkPictureData> fData; 256 SkAutoTDelete<SkPictureData> fData;
257 int fWidth, fHeight; 257 int fWidth, fHeight;
258 mutable SkAutoTUnref<const AccelData> fAccelData; 258 mutable SkAutoTUnref<const AccelData> fAccelData;
259 259
260 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re fed 260 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re fed
261 261
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 // Takes ownership of the SkRecord, refs the (optional) BBH. 303 // Takes ownership of the SkRecord, refs the (optional) BBH.
304 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); 304 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*);
305 305
306 SkAutoTDelete<SkRecord> fRecord; 306 SkAutoTDelete<SkRecord> fRecord;
307 SkAutoTUnref<SkBBoxHierarchy> fBBH; 307 SkAutoTUnref<SkBBoxHierarchy> fBBH;
308 bool fRecordWillPlayBackBitmaps; // TODO: const 308 bool fRecordWillPlayBackBitmaps; // TODO: const
309 }; 309 };
310 310
311 #endif 311 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698