| 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);
|
| +}
|
|
|