Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3377)

Unified Diff: experimental/svg/model/SkSVGDOM.h

Issue 2345533002: [SVGDom] Expose intrinsic size info (Closed)
Patch Set: private intrinsicSize() Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/DMSrcSink.cpp ('k') | experimental/svg/model/SkSVGDOM.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « dm/DMSrcSink.cpp ('k') | experimental/svg/model/SkSVGDOM.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698