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

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

Issue 2345533002: [SVGDom] Expose intrinsic size info (Closed)
Patch Set: cleanup 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..42dbef970628ae22df72562899abf518d3adfb4e 100644
--- a/experimental/svg/model/SkSVGDOM.h
+++ b/experimental/svg/model/SkSVGDOM.h
@@ -20,13 +20,16 @@ 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&);
robertphillips 2016/09/14 18:34:53 Should intrinsicSize be private?
f(malita) 2016/09/14 18:40:05 Might be useful in the future, but yeah, for now t
+ SkSize intrinsicSize() const;
+ const SkSize& containerSize() const;
void setContainerSize(const SkSize&);
+
void setRoot(sk_sp<SkSVGNode>);
void render(SkCanvas*) const;
« 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