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

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: review Created 4 years, 4 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 | « experimental/svg/model/SkSVGNode.cpp ('k') | experimental/svg/model/SkSVGPath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « experimental/svg/model/SkSVGNode.cpp ('k') | experimental/svg/model/SkSVGPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698