Index: experimental/svg/model/SkSVGPath.h |
diff --git a/experimental/svg/model/SkSVGPath.h b/experimental/svg/model/SkSVGPath.h |
index b650f674630487eef26b0f641dd0a31f5222eee9..e72f0d137ee1902a1261fb869d5e85a9856e6f14 100644 |
--- a/experimental/svg/model/SkSVGPath.h |
+++ b/experimental/svg/model/SkSVGPath.h |
@@ -9,30 +9,26 @@ |
#define SkSVGPath_DEFINED |
#include "SkPath.h" |
-#include "SkSVGTransformableNode.h" |
+#include "SkSVGShape.h" |
-class SkSVGPath final : public SkSVGTransformableNode { |
+class SkSVGPath final : public SkSVGShape { |
public: |
virtual ~SkSVGPath() = default; |
static sk_sp<SkSVGPath> Make() { return sk_sp<SkSVGPath>(new SkSVGPath()); } |
- void appendChild(sk_sp<SkSVGNode>) override { } |
- |
void setPath(const SkPath& path) { fPath = path; } |
protected: |
- void onRender(SkCanvas*, const SkSVGRenderContext&) const override; |
- |
void onSetAttribute(SkSVGAttribute, const SkSVGValue&) override; |
+ void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&) const override; |
+ |
private: |
SkSVGPath(); |
- void doRender(SkCanvas*, const SkPaint*) const; |
- |
SkPath fPath; |
- typedef SkSVGTransformableNode INHERITED; |
+ typedef SkSVGShape INHERITED; |
}; |
#endif // SkSVGPath_DEFINED |