OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkSVGNode_DEFINED | 8 #ifndef SkSVGNode_DEFINED |
9 #define SkSVGNode_DEFINED | 9 #define SkSVGNode_DEFINED |
10 | 10 |
11 #include "SkRefCnt.h" | 11 #include "SkRefCnt.h" |
12 #include "SkSVGAttribute.h" | 12 #include "SkSVGAttribute.h" |
13 | 13 |
14 class SkCanvas; | 14 class SkCanvas; |
15 class SkMatrix; | 15 class SkMatrix; |
16 class SkSVGRenderContext; | 16 class SkSVGRenderContext; |
17 class SkSVGValue; | 17 class SkSVGValue; |
18 | 18 |
19 enum class SkSVGTag { | 19 enum class SkSVGTag { |
20 kCircle, | 20 kCircle, |
21 kEllipse, | 21 kEllipse, |
22 kG, | 22 kG, |
| 23 kLine, |
23 kPath, | 24 kPath, |
24 kPolygon, | 25 kPolygon, |
25 kPolyline, | 26 kPolyline, |
26 kRect, | 27 kRect, |
27 kSvg | 28 kSvg |
28 }; | 29 }; |
29 | 30 |
30 class SkSVGNode : public SkRefCnt { | 31 class SkSVGNode : public SkRefCnt { |
31 public: | 32 public: |
32 virtual ~SkSVGNode(); | 33 virtual ~SkSVGNode(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 private: | 65 private: |
65 SkSVGTag fTag; | 66 SkSVGTag fTag; |
66 | 67 |
67 // FIXME: this should be sparse | 68 // FIXME: this should be sparse |
68 SkSVGPresentationAttributes fPresentationAttributes; | 69 SkSVGPresentationAttributes fPresentationAttributes; |
69 | 70 |
70 typedef SkRefCnt INHERITED; | 71 typedef SkRefCnt INHERITED; |
71 }; | 72 }; |
72 | 73 |
73 #endif // SkSVGNode_DEFINED | 74 #endif // SkSVGNode_DEFINED |
OLD | NEW |