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 "SkDrawPath.h" | 10 #include "SkDrawPath.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 SK_MEMBER_PROPERTY(fillType, FillType), | 27 SK_MEMBER_PROPERTY(fillType, FillType), |
28 SK_MEMBER_PROPERTY(length, Float) | 28 SK_MEMBER_PROPERTY(length, Float) |
29 }; | 29 }; |
30 | 30 |
31 #endif | 31 #endif |
32 | 32 |
33 DEFINE_GET_MEMBER(SkDrawPath); | 33 DEFINE_GET_MEMBER(SkDrawPath); |
34 | 34 |
35 SkDrawPath::SkDrawPath() | 35 SkDrawPath::SkDrawPath() |
36 { | 36 { |
37 fParent = NULL; | 37 fParent = nullptr; |
38 fLength = SK_ScalarNaN; | 38 fLength = SK_ScalarNaN; |
39 fChildHasID = false; | 39 fChildHasID = false; |
40 fDirty = false; | 40 fDirty = false; |
41 } | 41 } |
42 | 42 |
43 SkDrawPath::~SkDrawPath() { | 43 SkDrawPath::~SkDrawPath() { |
44 for (SkPathPart** part = fParts.begin(); part < fParts.end(); part++) | 44 for (SkPathPart** part = fParts.begin(); part < fParts.end(); part++) |
45 delete *part; | 45 delete *part; |
46 } | 46 } |
47 | 47 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 }; | 211 }; |
212 | 212 |
213 #endif | 213 #endif |
214 | 214 |
215 DEFINE_GET_MEMBER(SkPolygon); | 215 DEFINE_GET_MEMBER(SkPolygon); |
216 | 216 |
217 void SkPolygon::onEndElement(SkAnimateMaker& maker) { | 217 void SkPolygon::onEndElement(SkAnimateMaker& maker) { |
218 INHERITED::onEndElement(maker); | 218 INHERITED::onEndElement(maker); |
219 fPath.close(); | 219 fPath.close(); |
220 } | 220 } |
OLD | NEW |