Index: src/gpu/GrAddPathRenderers_default.cpp |
diff --git a/src/gpu/GrAddPathRenderers_default.cpp b/src/gpu/GrAddPathRenderers_default.cpp |
index 77a26d317183bcc468b88bfdb71140b1c4015064..9ba625660a42ca80ab3a9edc11a16008b8840820 100644 |
--- a/src/gpu/GrAddPathRenderers_default.cpp |
+++ b/src/gpu/GrAddPathRenderers_default.cpp |
@@ -18,17 +18,17 @@ |
#include "GrTessellatingPathRenderer.h" |
void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain) { |
- chain->addPathRenderer(SkNEW(GrDashLinePathRenderer))->unref(); |
+ chain->addPathRenderer(new GrDashLinePathRenderer)->unref(); |
if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx->resourceProvider(), |
*ctx->caps())) { |
chain->addPathRenderer(pr)->unref(); |
} |
- chain->addPathRenderer(SkNEW(GrTessellatingPathRenderer))->unref(); |
+ chain->addPathRenderer(new GrTessellatingPathRenderer)->unref(); |
if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) { |
chain->addPathRenderer(pr)->unref(); |
} |
- chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref(); |
- chain->addPathRenderer(SkNEW(GrAALinearizingConvexPathRenderer))->unref(); |
- chain->addPathRenderer(SkNEW(GrAADistanceFieldPathRenderer))->unref(); |
+ chain->addPathRenderer(new GrAAConvexPathRenderer)->unref(); |
+ chain->addPathRenderer(new GrAALinearizingConvexPathRenderer)->unref(); |
+ chain->addPathRenderer(new GrAADistanceFieldPathRenderer)->unref(); |
} |