| 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 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // Implementations are expected to return true if rendering is to continue,
or false if | 62 // Implementations are expected to return true if rendering is to continue,
or false if |
| 63 // the node/subtree rendering is disabled. | 63 // the node/subtree rendering is disabled. |
| 64 virtual bool onPrepareToRender(SkSVGRenderContext*) const; | 64 virtual bool onPrepareToRender(SkSVGRenderContext*) const; |
| 65 | 65 |
| 66 virtual void onRender(const SkSVGRenderContext&) const = 0; | 66 virtual void onRender(const SkSVGRenderContext&) const = 0; |
| 67 | 67 |
| 68 virtual bool onAsPaint(const SkSVGRenderContext&, SkPaint*) const { return f
alse; } | 68 virtual bool onAsPaint(const SkSVGRenderContext&, SkPaint*) const { return f
alse; } |
| 69 | 69 |
| 70 virtual void onSetAttribute(SkSVGAttribute, const SkSVGValue&); | 70 virtual void onSetAttribute(SkSVGAttribute, const SkSVGValue&); |
| 71 | 71 |
| 72 virtual bool hasChildren() const { return false; } |
| 73 |
| 72 private: | 74 private: |
| 73 SkSVGTag fTag; | 75 SkSVGTag fTag; |
| 74 | 76 |
| 75 // FIXME: this should be sparse | 77 // FIXME: this should be sparse |
| 76 SkSVGPresentationAttributes fPresentationAttributes; | 78 SkSVGPresentationAttributes fPresentationAttributes; |
| 77 | 79 |
| 78 typedef SkRefCnt INHERITED; | 80 typedef SkRefCnt INHERITED; |
| 79 }; | 81 }; |
| 80 | 82 |
| 81 #endif // SkSVGNode_DEFINED | 83 #endif // SkSVGNode_DEFINED |
| OLD | NEW |