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

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

Issue 340403003: SaveFlags be-gone (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Removed canvasstate GM Created 6 years, 6 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // V19: encode matrices and regions into the ops stream 238 // V19: encode matrices and regions into the ops stream
239 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu re serialization) 239 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu re serialization)
240 // V21: add pushCull, popCull 240 // V21: add pushCull, popCull
241 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes 241 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes
242 // V23: SkPaint::FilterLevel became a real enum 242 // V23: SkPaint::FilterLevel became a real enum
243 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin g 243 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin g
244 // V25: SkDashPathEffect now only writes phase and interval array when flatt ening 244 // V25: SkDashPathEffect now only writes phase and interval array when flatt ening
245 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint . 245 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint .
246 // V27: Remove SkUnitMapper from gradients (and skia). 246 // V27: Remove SkUnitMapper from gradients (and skia).
247 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap. 247 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap.
248 // V29: Removed SaveFlags parameter from save().
248 249
249 // Note: If the picture version needs to be increased then please follow the 250 // Note: If the picture version needs to be increased then please follow the
250 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw 251 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw
251 252
252 // Only SKPs within the min/current picture version range (inclusive) can be read. 253 // Only SKPs within the min/current picture version range (inclusive) can be read.
253 static const uint32_t MIN_PICTURE_VERSION = 19; 254 static const uint32_t MIN_PICTURE_VERSION = 19;
254 static const uint32_t CURRENT_PICTURE_VERSION = 28; 255 static const uint32_t CURRENT_PICTURE_VERSION = 29;
255 256
256 mutable uint32_t fUniqueID; 257 mutable uint32_t fUniqueID;
257 258
258 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class es to 259 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class es to
259 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv ed 260 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv ed
260 // recorders and set the picture size 261 // recorders and set the picture size
261 SkPicturePlayback* fPlayback; 262 SkPicturePlayback* fPlayback;
262 int fWidth, fHeight; 263 int fWidth, fHeight;
263 mutable const AccelData* fAccelData; 264 mutable const AccelData* fAccelData;
264 265
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 */ 333 */
333 class SK_API SkDrawPictureCallback { 334 class SK_API SkDrawPictureCallback {
334 public: 335 public:
335 SkDrawPictureCallback() {} 336 SkDrawPictureCallback() {}
336 virtual ~SkDrawPictureCallback() {} 337 virtual ~SkDrawPictureCallback() {}
337 338
338 virtual bool abortDrawing() = 0; 339 virtual bool abortDrawing() = 0;
339 }; 340 };
340 341
341 #endif 342 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/utils/SkDeferredCanvas.h » ('j') | src/core/SkCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698