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

Unified Diff: experimental/svg/model/SkSVGPath.h

Issue 2202053002: [SVGDom/experimental] Initial SVGLength support (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: cleanup Created 4 years, 5 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
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

Powered by Google App Engine
This is Rietveld 408576698