Index: src/gpu/GrAddPathRenderers_default.cpp |
diff --git a/src/gpu/GrAddPathRenderers_default.cpp b/src/gpu/GrAddPathRenderers_default.cpp |
index 71ced4bc3dbf35ae73195e623a8b10ef50c60afa..f06856a6502100a14c5dbb8ccb50658efd70a126 100644 |
--- a/src/gpu/GrAddPathRenderers_default.cpp |
+++ b/src/gpu/GrAddPathRenderers_default.cpp |
@@ -27,7 +27,7 @@ |
#endif |
void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain) { |
- chain->addPathRenderer(SkNEW(GrDashLinePathRenderer))->unref(); |
+ chain->addPathRenderer(SkNEW_ARGS(GrDashLinePathRenderer, (ctx)))->unref(); |
#if GR_STROKE_PATH_RENDERING |
chain->addPathRenderer(SkNEW(GrStrokePathRenderer))->unref(); |
@@ -36,7 +36,7 @@ |
chain->addPathRenderer(SkNEW(GrAndroidPathRenderer))->unref(); |
#endif |
if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx->resourceProvider(), |
- *ctx->caps())) { |
+ *ctx->getGpu()->caps())) { |
chain->addPathRenderer(pr)->unref(); |
} |
#if GR_TESSELLATING_PATH_RENDERING |