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

Unified Diff: dm/DMSrcSink.cpp

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 | « bench/nanobench.cpp ('k') | experimental/svg/model/SkSVGDOM.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMSrcSink.cpp
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
index 0c7de850b769eb49cf8a368830833c299c369f3f..0cdb70e933bc3dd6cd30bb15d1ad4a06ac627614 100644
--- a/dm/DMSrcSink.cpp
+++ b/dm/DMSrcSink.cpp
@@ -1043,11 +1043,12 @@ Error SVGSrc::draw(SkCanvas* canvas) const {
return SkStringPrintf("Unable to open file: %s", fPath.c_str());
}
- sk_sp<SkSVGDOM> dom = SkSVGDOM::MakeFromStream(stream, kSVGSize);
+ sk_sp<SkSVGDOM> dom = SkSVGDOM::MakeFromStream(stream);
if (!dom) {
return SkStringPrintf("Unable to parse file: %s", fPath.c_str());
}
+ dom->setContainerSize(kSVGSize);
dom->render(canvas);
return "";
« no previous file with comments | « bench/nanobench.cpp ('k') | experimental/svg/model/SkSVGDOM.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698