Index: experimental/svg/model/SkSVGNode.cpp |
diff --git a/experimental/svg/model/SkSVGNode.cpp b/experimental/svg/model/SkSVGNode.cpp |
index 5a73ace548cfd71b1d2879bca7538a2e94616e6f..012c7d22779bff7db48bb26fe90c6c0d7a24dce6 100644 |
--- a/experimental/svg/model/SkSVGNode.cpp |
+++ b/experimental/svg/model/SkSVGNode.cpp |
@@ -24,6 +24,12 @@ void SkSVGNode::render(const SkSVGRenderContext& ctx) const { |
} |
} |
+bool SkSVGNode::asPaint(const SkSVGRenderContext& ctx, SkPaint* paint) const { |
+ SkSVGRenderContext localContext(ctx); |
+ |
+ return this->onPrepareToRender(&localContext) && this->onAsPaint(localContext, paint); |
+} |
+ |
bool SkSVGNode::onPrepareToRender(SkSVGRenderContext* ctx) const { |
ctx->applyPresentationAttributes(fPresentationAttributes); |
return true; |