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

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

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/SkSVGPath.h ('k') | experimental/svg/model/SkSVGRect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/svg/model/SkSVGPath.cpp
diff --git a/experimental/svg/model/SkSVGPath.cpp b/experimental/svg/model/SkSVGPath.cpp
index 7d905945bc0d9303e69e877dbd80aa816e88e7f6..07e0a3e545e2102c0146ed8fcb6606c7d3c0c67c 100644
--- a/experimental/svg/model/SkSVGPath.cpp
+++ b/experimental/svg/model/SkSVGPath.cpp
@@ -13,17 +13,6 @@
SkSVGPath::SkSVGPath() : INHERITED(SkSVGTag::kPath) { }
-void SkSVGPath::doRender(SkCanvas* canvas, const SkPaint* paint) const {
- if (paint) {
- canvas->drawPath(fPath, *paint);
- }
-}
-
-void SkSVGPath::onRender(SkCanvas* canvas, const SkSVGRenderContext& ctx) const {
- this->doRender(canvas, ctx.fillPaint());
- this->doRender(canvas, ctx.strokePaint());
-}
-
void SkSVGPath::onSetAttribute(SkSVGAttribute attr, const SkSVGValue& v) {
switch (attr) {
case SkSVGAttribute::kD:
@@ -35,3 +24,7 @@ void SkSVGPath::onSetAttribute(SkSVGAttribute attr, const SkSVGValue& v) {
this->INHERITED::onSetAttribute(attr, v);
}
}
+
+void SkSVGPath::onDraw(SkCanvas* canvas, const SkSVGLengthContext&, const SkPaint& paint) const {
+ canvas->drawPath(fPath, paint);
+}
« no previous file with comments | « experimental/svg/model/SkSVGPath.h ('k') | experimental/svg/model/SkSVGRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698