| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |