Index: experimental/svg/model/SkSVGRenderContext.h |
diff --git a/experimental/svg/model/SkSVGRenderContext.h b/experimental/svg/model/SkSVGRenderContext.h |
index e6df725a5c37bd517c7af08a53735d2f649669fe..61f87463768493161ff3bef1532854c48a3a701d 100644 |
--- a/experimental/svg/model/SkSVGRenderContext.h |
+++ b/experimental/svg/model/SkSVGRenderContext.h |
@@ -20,7 +20,8 @@ class SkSVGLength; |
class SkSVGLengthContext { |
public: |
- SkSVGLengthContext(const SkSize& viewport) : fViewport(viewport) {} |
+ SkSVGLengthContext(const SkSize& viewport, SkScalar dpi = 90) |
+ : fViewport(viewport), fDPI(dpi) {} |
enum class LengthType { |
kHorizontal, |
@@ -36,7 +37,8 @@ public: |
const SkSVGLength& w, const SkSVGLength& h) const; |
private: |
- SkSize fViewport; |
+ SkSize fViewport; |
+ SkScalar fDPI; |
}; |
struct SkSVGPresentationContext { |