| 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 g, | 20 kG, |
| 21 path, | 21 kPath, |
| 22 svg | 22 kSvg |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 class SkSVGNode : public SkRefCnt { | 25 class SkSVGNode : public SkRefCnt { |
| 26 public: | 26 public: |
| 27 virtual ~SkSVGNode(); | 27 virtual ~SkSVGNode(); |
| 28 | 28 |
| 29 SkSVGTag tag() const { return fTag; } | 29 SkSVGTag tag() const { return fTag; } |
| 30 | 30 |
| 31 virtual void appendChild(sk_sp<SkSVGNode>) = 0; | 31 virtual void appendChild(sk_sp<SkSVGNode>) = 0; |
| 32 | 32 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 47 private: | 47 private: |
| 48 SkSVGTag fTag; | 48 SkSVGTag fTag; |
| 49 | 49 |
| 50 // FIXME: this should be sparse | 50 // FIXME: this should be sparse |
| 51 SkSVGPresentationAttributes fPresentationAttributes; | 51 SkSVGPresentationAttributes fPresentationAttributes; |
| 52 | 52 |
| 53 typedef SkRefCnt INHERITED; | 53 typedef SkRefCnt INHERITED; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 #endif // SkSVGNode_DEFINED | 56 #endif // SkSVGNode_DEFINED |
| OLD | NEW |