Index: experimental/svg/model/SkSVGDOM.h |
diff --git a/experimental/svg/model/SkSVGDOM.h b/experimental/svg/model/SkSVGDOM.h |
index 9c59b7c561052609bfc2f634c8da8c9ca2af88ce..8904c1799d38b1229b34ee17d8f332f70e4b7c4a 100644 |
--- a/experimental/svg/model/SkSVGDOM.h |
+++ b/experimental/svg/model/SkSVGDOM.h |
@@ -20,18 +20,22 @@ class SkSVGNode; |
class SkSVGDOM : public SkRefCnt { |
public: |
- SkSVGDOM(const SkSize& containerSize); |
+ SkSVGDOM(); |
~SkSVGDOM() = default; |
- static sk_sp<SkSVGDOM> MakeFromDOM(const SkDOM&, const SkSize& containerSize); |
- static sk_sp<SkSVGDOM> MakeFromStream(SkStream&, const SkSize& containerSize); |
+ static sk_sp<SkSVGDOM> MakeFromDOM(const SkDOM&); |
+ static sk_sp<SkSVGDOM> MakeFromStream(SkStream&); |
+ const SkSize& containerSize() const; |
void setContainerSize(const SkSize&); |
+ |
void setRoot(sk_sp<SkSVGNode>); |
void render(SkCanvas*) const; |
private: |
+ SkSize intrinsicSize() const; |
+ |
SkSize fContainerSize; |
sk_sp<SkSVGNode> fRoot; |
SkSVGIDMapper fIDMapper; |