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

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

Issue 88233003: Code cleanup following recapture of skps (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Fixed up 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
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 #ifndef SkPathRef_DEFINED 9 #ifndef SkPathRef_DEFINED
10 #define SkPathRef_DEFINED 10 #define SkPathRef_DEFINED
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 fIsFinite = fBounds.isFinite(); 144 fIsFinite = fBounds.isFinite();
145 } 145 }
146 146
147 /** 147 /**
148 * Transforms a path ref by a matrix, allocating a new one only if necessary . 148 * Transforms a path ref by a matrix, allocating a new one only if necessary .
149 */ 149 */
150 static void CreateTransformedCopy(SkAutoTUnref<SkPathRef>* dst, 150 static void CreateTransformedCopy(SkAutoTUnref<SkPathRef>* dst,
151 const SkPathRef& src, 151 const SkPathRef& src,
152 const SkMatrix& matrix); 152 const SkMatrix& matrix);
153 153
154 static SkPathRef* CreateFromBuffer(SkRBuffer* buffer 154 static SkPathRef* CreateFromBuffer(SkRBuffer* buffer);
155 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TO O
156 , bool newFormat, int32_t oldPacked
157 #endif
158 );
159 155
160 /** 156 /**
161 * Rollsback a path ref to zero verbs and points with the assumption that th e path ref will be 157 * Rollsback a path ref to zero verbs and points with the assumption that th e path ref will be
162 * repopulated with approximately the same number of verbs and points. A new path ref is created 158 * repopulated with approximately the same number of verbs and points. A new path ref is created
163 * only if necessary. 159 * only if necessary.
164 */ 160 */
165 static void Rewind(SkAutoTUnref<SkPathRef>* pathRef); 161 static void Rewind(SkAutoTUnref<SkPathRef>* pathRef);
166 162
167 virtual ~SkPathRef() { 163 virtual ~SkPathRef() {
168 SkDEBUGCODE(this->validate();) 164 SkDEBUGCODE(this->validate();)
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 enum { 408 enum {
413 kEmptyGenID = 1, // GenID reserved for path ref with zero points and zer o verbs. 409 kEmptyGenID = 1, // GenID reserved for path ref with zero points and zer o verbs.
414 }; 410 };
415 mutable uint32_t fGenerationID; 411 mutable uint32_t fGenerationID;
416 SkDEBUGCODE(int32_t fEditorsAttached;) // assert that only one editor in use at any time. 412 SkDEBUGCODE(int32_t fEditorsAttached;) // assert that only one editor in use at any time.
417 413
418 typedef SkRefCnt INHERITED; 414 typedef SkRefCnt INHERITED;
419 }; 415 };
420 416
421 #endif 417 #endif
OLDNEW
« include/core/SkPath.h ('K') | « include/core/SkPath.h ('k') | include/core/SkPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698