aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/svg/model/SkSVGSVG.h
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/svg/model/SkSVGSVG.h')
-rw-r--r--experimental/svg/model/SkSVGSVG.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/experimental/svg/model/SkSVGSVG.h b/experimental/svg/model/SkSVGSVG.h
index 27631f5a31..ae4787cac3 100644
--- a/experimental/svg/model/SkSVGSVG.h
+++ b/experimental/svg/model/SkSVGSVG.h
@@ -10,6 +10,7 @@
#include "SkSVGContainer.h"
#include "SkSVGTypes.h"
+#include "SkTLazy.h"
class SkSVGSVG : public SkSVGContainer {
public:
@@ -21,8 +22,11 @@ public:
void setY(const SkSVGLength&);
void setWidth(const SkSVGLength&);
void setHeight(const SkSVGLength&);
+ void setViewBox(const SkSVGViewBoxType&);
protected:
+ bool onPrepareToRender(SkSVGRenderContext*) const override;
+
void onSetAttribute(SkSVGAttribute, const SkSVGValue&) override;
private:
@@ -33,6 +37,8 @@ private:
SkSVGLength fWidth = SkSVGLength(100, SkSVGLength::Unit::kPercentage);
SkSVGLength fHeight = SkSVGLength(100, SkSVGLength::Unit::kPercentage);
+ SkTLazy<SkSVGViewBoxType> fViewBox;
+
typedef SkSVGContainer INHERITED;
};