| OLD | NEW |
| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 return fBounds; | 166 return fBounds; |
| 167 } | 167 } |
| 168 | 168 |
| 169 /** | 169 /** |
| 170 * Transforms a path ref by a matrix, allocating a new one only if necessary
. | 170 * Transforms a path ref by a matrix, allocating a new one only if necessary
. |
| 171 */ | 171 */ |
| 172 static void CreateTransformedCopy(SkAutoTUnref<SkPathRef>* dst, | 172 static void CreateTransformedCopy(SkAutoTUnref<SkPathRef>* dst, |
| 173 const SkPathRef& src, | 173 const SkPathRef& src, |
| 174 const SkMatrix& matrix); | 174 const SkMatrix& matrix); |
| 175 | 175 |
| 176 static SkPathRef* CreateFromBuffer(SkRBuffer* buffer | 176 static SkPathRef* CreateFromBuffer(SkRBuffer* buffer); |
| 177 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V16_AND_ALL_OTHER_INSTANCES_TO
O | |
| 178 , bool newFormat, int32_t oldPacked | |
| 179 #endif | |
| 180 ); | |
| 181 | 177 |
| 182 /** | 178 /** |
| 183 * Rollsback a path ref to zero verbs and points with the assumption that th
e path ref will be | 179 * Rollsback a path ref to zero verbs and points with the assumption that th
e path ref will be |
| 184 * repopulated with approximately the same number of verbs and points. A new
path ref is created | 180 * repopulated with approximately the same number of verbs and points. A new
path ref is created |
| 185 * only if necessary. | 181 * only if necessary. |
| 186 */ | 182 */ |
| 187 static void Rewind(SkAutoTUnref<SkPathRef>* pathRef); | 183 static void Rewind(SkAutoTUnref<SkPathRef>* pathRef); |
| 188 | 184 |
| 189 virtual ~SkPathRef() { | 185 virtual ~SkPathRef() { |
| 190 SkDEBUGCODE(this->validate();) | 186 SkDEBUGCODE(this->validate();) |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 kEmptyGenID = 1, // GenID reserved for path ref with zero points and zer
o verbs. | 449 kEmptyGenID = 1, // GenID reserved for path ref with zero points and zer
o verbs. |
| 454 }; | 450 }; |
| 455 mutable uint32_t fGenerationID; | 451 mutable uint32_t fGenerationID; |
| 456 SkDEBUGCODE(int32_t fEditorsAttached;) // assert that only one editor in use
at any time. | 452 SkDEBUGCODE(int32_t fEditorsAttached;) // assert that only one editor in use
at any time. |
| 457 | 453 |
| 458 friend class PathRefTest_Private; | 454 friend class PathRefTest_Private; |
| 459 typedef SkRefCnt INHERITED; | 455 typedef SkRefCnt INHERITED; |
| 460 }; | 456 }; |
| 461 | 457 |
| 462 #endif | 458 #endif |
| OLD | NEW |