Index: experimental/svg/model/SkSVGShape.cpp |
diff --git a/experimental/svg/model/SkSVGShape.cpp b/experimental/svg/model/SkSVGShape.cpp |
index d26eff482d7fa4190a0467e46bd3c40760e87498..ad4b5cedae8ffc44b621fc9901aacde27fdeb2b7 100644 |
--- a/experimental/svg/model/SkSVGShape.cpp |
+++ b/experimental/svg/model/SkSVGShape.cpp |
@@ -10,13 +10,13 @@ |
SkSVGShape::SkSVGShape(SkSVGTag t) : INHERITED(t) {} |
-void SkSVGShape::onRender(SkCanvas* canvas, const SkSVGRenderContext& ctx) const { |
- if (const SkPaint* fillPaint = ctx.fillPaint()) { |
- this->onDraw(canvas, ctx.lengthContext(), *fillPaint); |
+void SkSVGShape::onRender(const SkSVGRenderContext& ctx) const { |
+ if (const SkPaint* fillPaint = ctx.presentationContext().fillPaint()) { |
+ this->onDraw(ctx.canvas(), ctx.lengthContext(), *fillPaint); |
} |
- if (const SkPaint* strokePaint = ctx.strokePaint()) { |
- this->onDraw(canvas, ctx.lengthContext(), *strokePaint); |
+ if (const SkPaint* strokePaint = ctx.presentationContext().strokePaint()) { |
+ this->onDraw(ctx.canvas(), ctx.lengthContext(), *strokePaint); |
} |
} |