| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 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 #include "SkBuffer.h" | 10 #include "SkBuffer.h" |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 | 337 |
| 338 const SkPath* SkPath::getSourcePath() const { | 338 const SkPath* SkPath::getSourcePath() const { |
| 339 return fSourcePath; | 339 return fSourcePath; |
| 340 } | 340 } |
| 341 | 341 |
| 342 void SkPath::setSourcePath(const SkPath* path) { | 342 void SkPath::setSourcePath(const SkPath* path) { |
| 343 fSourcePath = path; | 343 fSourcePath = path; |
| 344 } | 344 } |
| 345 #endif | 345 #endif |
| 346 | 346 |
| 347 uint32_t SkPath::getHash() const { |
| 348 return fPathRef->getHash(); |
| 349 } |
| 350 |
| 347 void SkPath::reset() { | 351 void SkPath::reset() { |
| 348 SkDEBUGCODE(this->validate();) | 352 SkDEBUGCODE(this->validate();) |
| 349 | 353 |
| 350 fPathRef.reset(SkPathRef::CreateEmpty()); | 354 fPathRef.reset(SkPathRef::CreateEmpty()); |
| 351 this->resetFields(); | 355 this->resetFields(); |
| 352 } | 356 } |
| 353 | 357 |
| 354 void SkPath::rewind() { | 358 void SkPath::rewind() { |
| 355 SkDEBUGCODE(this->validate();) | 359 SkDEBUGCODE(this->validate();) |
| 356 | 360 |
| (...skipping 2621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2978 switch (this->getFillType()) { | 2982 switch (this->getFillType()) { |
| 2979 case SkPath::kEvenOdd_FillType: | 2983 case SkPath::kEvenOdd_FillType: |
| 2980 case SkPath::kInverseEvenOdd_FillType: | 2984 case SkPath::kInverseEvenOdd_FillType: |
| 2981 w &= 1; | 2985 w &= 1; |
| 2982 break; | 2986 break; |
| 2983 default: | 2987 default: |
| 2984 break; | 2988 break; |
| 2985 } | 2989 } |
| 2986 return SkToBool(w); | 2990 return SkToBool(w); |
| 2987 } | 2991 } |
| OLD | NEW |