Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: src/gpu/GrAddPathRenderers_default.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrAALinearizingConvexPathRenderer.cpp ('k') | src/gpu/GrAllocator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "GrStencilAndCoverPathRenderer.h" 10 #include "GrStencilAndCoverPathRenderer.h"
11 #include "GrAAHairLinePathRenderer.h" 11 #include "GrAAHairLinePathRenderer.h"
12 #include "GrAAConvexPathRenderer.h" 12 #include "GrAAConvexPathRenderer.h"
13 #include "GrAALinearizingConvexPathRenderer.h" 13 #include "GrAALinearizingConvexPathRenderer.h"
14 #include "GrAADistanceFieldPathRenderer.h" 14 #include "GrAADistanceFieldPathRenderer.h"
15 #include "GrContext.h" 15 #include "GrContext.h"
16 #include "GrDashLinePathRenderer.h" 16 #include "GrDashLinePathRenderer.h"
17 #include "GrGpu.h" 17 #include "GrGpu.h"
18 #include "GrTessellatingPathRenderer.h" 18 #include "GrTessellatingPathRenderer.h"
19 19
20 void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain ) { 20 void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain ) {
21 chain->addPathRenderer(SkNEW(GrDashLinePathRenderer))->unref(); 21 chain->addPathRenderer(new GrDashLinePathRenderer)->unref();
22 22
23 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx->resource Provider(), 23 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx->resource Provider(),
24 *ctx->caps()) ) { 24 *ctx->caps()) ) {
25 chain->addPathRenderer(pr)->unref(); 25 chain->addPathRenderer(pr)->unref();
26 } 26 }
27 chain->addPathRenderer(SkNEW(GrTessellatingPathRenderer))->unref(); 27 chain->addPathRenderer(new GrTessellatingPathRenderer)->unref();
28 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) { 28 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) {
29 chain->addPathRenderer(pr)->unref(); 29 chain->addPathRenderer(pr)->unref();
30 } 30 }
31 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref(); 31 chain->addPathRenderer(new GrAAConvexPathRenderer)->unref();
32 chain->addPathRenderer(SkNEW(GrAALinearizingConvexPathRenderer))->unref(); 32 chain->addPathRenderer(new GrAALinearizingConvexPathRenderer)->unref();
33 chain->addPathRenderer(SkNEW(GrAADistanceFieldPathRenderer))->unref(); 33 chain->addPathRenderer(new GrAADistanceFieldPathRenderer)->unref();
34 } 34 }
OLDNEW
« no previous file with comments | « src/gpu/GrAALinearizingConvexPathRenderer.cpp ('k') | src/gpu/GrAllocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698