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

Unified Diff: dm/DMSrcSink.h

Issue 2342313003: [SVGDom] Improved DM sizing (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 | « no previous file | dm/DMSrcSink.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMSrcSink.h
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h
index dfc4955b5a03da4e5f00adcfa9931eca4bae1afc..e8466aa50d45c3846d92c67f6f4f64e324eba0f7 100644
--- a/dm/DMSrcSink.h
+++ b/dm/DMSrcSink.h
@@ -249,6 +249,12 @@ private:
};
#if defined(SK_XML)
+} // namespace DM
+
+class SkSVGDOM;
+
+namespace DM {
+
class SVGSrc : public Src {
public:
explicit SVGSrc(Path path);
@@ -259,7 +265,11 @@ public:
bool veto(SinkFlags) const override;
private:
- Path fPath;
+ Error ensureDom() const;
+
+ Path fPath;
+ mutable sk_sp<SkSVGDOM> fDom;
+ mutable SkScalar fScale;
typedef Src INHERITED;
};
« no previous file with comments | « no previous file | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698