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 "SkDrawDiscrete.h" | 10 #include "SkDrawDiscrete.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 DEFINE_GET_MEMBER(SkDiscrete); | 24 DEFINE_GET_MEMBER(SkDiscrete); |
25 | 25 |
26 SkDiscrete::SkDiscrete() : deviation(0), segLength(0) { | 26 SkDiscrete::SkDiscrete() : deviation(0), segLength(0) { |
27 } | 27 } |
28 | 28 |
29 SkPathEffect* SkDiscrete::getPathEffect() { | 29 SkPathEffect* SkDiscrete::getPathEffect() { |
30 if (deviation <= 0 || segLength <= 0) | 30 if (deviation <= 0 || segLength <= 0) |
31 return NULL; | 31 return NULL; |
32 else | 32 else |
33 return new SkDiscretePathEffect(segLength, deviation); | 33 return SkDiscretePathEffect::Create(segLength, deviation); |
34 } | 34 } |
OLD | NEW |