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 kG, | 20 kG, |
21 kPath, | 21 kPath, |
| 22 kPolygon, |
| 23 kPolyline, |
22 kRect, | 24 kRect, |
23 kSvg | 25 kSvg |
24 }; | 26 }; |
25 | 27 |
26 class SkSVGNode : public SkRefCnt { | 28 class SkSVGNode : public SkRefCnt { |
27 public: | 29 public: |
28 virtual ~SkSVGNode(); | 30 virtual ~SkSVGNode(); |
29 | 31 |
30 SkSVGTag tag() const { return fTag; } | 32 SkSVGTag tag() const { return fTag; } |
31 | 33 |
(...skipping 21 matching lines...) Expand all Loading... |
53 private: | 55 private: |
54 SkSVGTag fTag; | 56 SkSVGTag fTag; |
55 | 57 |
56 // FIXME: this should be sparse | 58 // FIXME: this should be sparse |
57 SkSVGPresentationAttributes fPresentationAttributes; | 59 SkSVGPresentationAttributes fPresentationAttributes; |
58 | 60 |
59 typedef SkRefCnt INHERITED; | 61 typedef SkRefCnt INHERITED; |
60 }; | 62 }; |
61 | 63 |
62 #endif // SkSVGNode_DEFINED | 64 #endif // SkSVGNode_DEFINED |
OLD | NEW |