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

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

Issue 89123002: Move fIsOval from SkPath to SkPathRef (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Updated to add backwards compatibility from v16 to v15 Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkPathRef.h ('k') | src/core/SkPath.cpp » ('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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // V8 : Add an option for encoding bitmaps 212 // V8 : Add an option for encoding bitmaps
213 // V9 : Allow the reader and writer of an SKP disagree on whether to support 213 // V9 : Allow the reader and writer of an SKP disagree on whether to support
214 // SK_SUPPORT_HINTING_SCALE_FACTOR 214 // SK_SUPPORT_HINTING_SCALE_FACTOR
215 // V10: add drawRRect, drawOval, clipRRect 215 // V10: add drawRRect, drawOval, clipRRect
216 // V11: modify how readBitmap and writeBitmap store their info. 216 // V11: modify how readBitmap and writeBitmap store their info.
217 // V12: add conics to SkPath, use new SkPathRef flattening 217 // V12: add conics to SkPath, use new SkPathRef flattening
218 // V13: add flag to drawBitmapRectToRect 218 // V13: add flag to drawBitmapRectToRect
219 // parameterize blurs by sigma rather than radius 219 // parameterize blurs by sigma rather than radius
220 // V14: Add flags word to PathRef serialization 220 // V14: Add flags word to PathRef serialization
221 // V15: Remove A1 bitmpa config (and renumber remaining configs) 221 // V15: Remove A1 bitmpa config (and renumber remaining configs)
222 // V16: Move SkPath's isOval flag to SkPathRef
222 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V13_AND_ALL_OTHER_INSTANCES_TO O 223 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V13_AND_ALL_OTHER_INSTANCES_TO O
223 static const uint32_t PRIOR_PRIOR_PICTURE_VERSION = 12; // TODO: remove whe n .skps regenerated 224 static const uint32_t PRIOR_PRIOR_PICTURE_VERSION = 12; // TODO: remove whe n .skps regenerated
224 #endif 225 #endif
225 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TO O 226 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TO O
226 static const uint32_t PRIOR_PICTURE_VERSION2 = 13; // TODO: remove when .sk ps regenerated 227 static const uint32_t PRIOR_PICTURE_VERSION2 = 13; // TODO: remove when .sk ps regenerated
227 #endif 228 #endif
228 static const uint32_t PICTURE_VERSION = 15; 229 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V16_AND_ALL_OTHER_INSTANCES_TO O
230 static const uint32_t PRIOR_PICTURE_VERSION3 = 15; // TODO: remove when .sk ps regenerated
231 #endif
232 static const uint32_t PICTURE_VERSION = 16;
229 233
230 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class es to 234 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class es to
231 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv ed 235 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv ed
232 // recorders and set the picture size 236 // recorders and set the picture size
233 SkPicturePlayback* fPlayback; 237 SkPicturePlayback* fPlayback;
234 SkPictureRecord* fRecord; 238 SkPictureRecord* fRecord;
235 int fWidth, fHeight; 239 int fWidth, fHeight;
236 240
237 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of 241 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of
238 // playback is unchanged. 242 // playback is unchanged.
(...skipping 27 matching lines...) Expand all
266 */ 270 */
267 class SK_API SkDrawPictureCallback { 271 class SK_API SkDrawPictureCallback {
268 public: 272 public:
269 SkDrawPictureCallback() {} 273 SkDrawPictureCallback() {}
270 virtual ~SkDrawPictureCallback() {} 274 virtual ~SkDrawPictureCallback() {}
271 275
272 virtual bool abortDrawing() = 0; 276 virtual bool abortDrawing() = 0;
273 }; 277 };
274 278
275 #endif 279 #endif
OLDNEW
« no previous file with comments | « include/core/SkPathRef.h ('k') | src/core/SkPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698