| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 4 * | 3 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | 8 |
| 10 #include "Sk1DPathEffect.h" | 9 #include "Sk1DPathEffect.h" |
| 11 #include "SkReadBuffer.h" | 10 #include "SkReadBuffer.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 203 |
| 205 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 204 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
| 206 | 205 |
| 207 sk_sp<SkPathEffect> SkPath1DPathEffect::Make(const SkPath& path, SkScalar advanc
e, SkScalar phase, | 206 sk_sp<SkPathEffect> SkPath1DPathEffect::Make(const SkPath& path, SkScalar advanc
e, SkScalar phase, |
| 208 Style style) { | 207 Style style) { |
| 209 if (advance <= 0 || path.isEmpty()) { | 208 if (advance <= 0 || path.isEmpty()) { |
| 210 return nullptr; | 209 return nullptr; |
| 211 } | 210 } |
| 212 return sk_sp<SkPathEffect>(new SkPath1DPathEffect(path, advance, phase, styl
e)); | 211 return sk_sp<SkPathEffect>(new SkPath1DPathEffect(path, advance, phase, styl
e)); |
| 213 } | 212 } |
| OLD | NEW |