| 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 "Sk1DPathEffect.h" | 10 #include "Sk1DPathEffect.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } break; | 189 } break; |
| 190 case kMorph_Style: | 190 case kMorph_Style: |
| 191 morphpath(dst, fPath, meas, distance); | 191 morphpath(dst, fPath, meas, distance); |
| 192 break; | 192 break; |
| 193 default: | 193 default: |
| 194 SkDEBUGFAIL("unknown Style enum"); | 194 SkDEBUGFAIL("unknown Style enum"); |
| 195 break; | 195 break; |
| 196 } | 196 } |
| 197 return fAdvance; | 197 return fAdvance; |
| 198 } | 198 } |
| 199 |
| 200 |
| 201 #ifndef SK_IGNORE_TO_STRING |
| 202 void SkPath1DPathEffect::toString(SkString* str) const { |
| 203 str->appendf("SkPath1DPathEffect: ("); |
| 204 // TODO: add path and style |
| 205 str->appendf("advance: %.2f phase %.2f", fAdvance, fInitialOffset); |
| 206 str->appendf(")"); |
| 207 } |
| 208 #endif |
| OLD | NEW |