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

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

Issue 170923003: Add link to how to generate new SKPs when increasing the picture version (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Use short link Created 6 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
« no previous file with comments | « no previous file | no next file » | 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // V12: add conics to SkPath, use new SkPathRef flattening 232 // V12: add conics to SkPath, use new SkPathRef flattening
233 // V13: add flag to drawBitmapRectToRect 233 // V13: add flag to drawBitmapRectToRect
234 // parameterize blurs by sigma rather than radius 234 // parameterize blurs by sigma rather than radius
235 // V14: Add flags word to PathRef serialization 235 // V14: Add flags word to PathRef serialization
236 // V15: Remove A1 bitmpa config (and renumber remaining configs) 236 // V15: Remove A1 bitmpa config (and renumber remaining configs)
237 // V16: Move SkPath's isOval flag to SkPathRef 237 // V16: Move SkPath's isOval flag to SkPathRef
238 // V17: SkPixelRef now writes SkImageInfo 238 // V17: SkPixelRef now writes SkImageInfo
239 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. 239 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset.
240 // V19: encode matrices and regions into the ops stream 240 // V19: encode matrices and regions into the ops stream
241 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu re serialization) 241 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu re serialization)
242 // Note: If the picture version needs to be increased then please follow the
scroggo 2014/02/18 19:55:01 Maybe a newline after the last version, so the not
rmistry 2014/02/18 20:00:21 Done.
243 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw
242 static const uint32_t PICTURE_VERSION = 20; 244 static const uint32_t PICTURE_VERSION = 20;
243 245
244 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class es to 246 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class es to
245 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv ed 247 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv ed
246 // recorders and set the picture size 248 // recorders and set the picture size
247 SkPicturePlayback* fPlayback; 249 SkPicturePlayback* fPlayback;
248 SkPictureRecord* fRecord; 250 SkPictureRecord* fRecord;
249 int fWidth, fHeight; 251 int fWidth, fHeight;
250 252
251 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of 253 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 */ 285 */
284 class SK_API SkDrawPictureCallback { 286 class SK_API SkDrawPictureCallback {
285 public: 287 public:
286 SkDrawPictureCallback() {} 288 SkDrawPictureCallback() {}
287 virtual ~SkDrawPictureCallback() {} 289 virtual ~SkDrawPictureCallback() {}
288 290
289 virtual bool abortDrawing() = 0; 291 virtual bool abortDrawing() = 0;
290 }; 292 };
291 293
292 #endif 294 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698