OLD | NEW |
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" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain
) { | 27 void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain
) { |
28 chain->addPathRenderer(SkNEW_ARGS(GrDashLinePathRenderer, (ctx)))->unref(); | 28 chain->addPathRenderer(SkNEW_ARGS(GrDashLinePathRenderer, (ctx)))->unref(); |
29 | 29 |
30 #if GR_STROKE_PATH_RENDERING | 30 #if GR_STROKE_PATH_RENDERING |
31 chain->addPathRenderer(SkNEW(GrStrokePathRenderer))->unref(); | 31 chain->addPathRenderer(SkNEW(GrStrokePathRenderer))->unref(); |
32 #endif | 32 #endif |
33 #if GR_ANDROID_PATH_RENDERING | 33 #if GR_ANDROID_PATH_RENDERING |
34 chain->addPathRenderer(SkNEW(GrAndroidPathRenderer))->unref(); | 34 chain->addPathRenderer(SkNEW(GrAndroidPathRenderer))->unref(); |
35 #endif | 35 #endif |
36 #if GR_TESSELLATING_PATH_RENDERING | |
37 chain->addPathRenderer(new GrTessellatingPathRenderer)->unref(); | |
38 #endif | |
39 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx)) { | 36 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx)) { |
40 chain->addPathRenderer(pr)->unref(); | 37 chain->addPathRenderer(pr)->unref(); |
41 } | 38 } |
| 39 #if GR_TESSELLATING_PATH_RENDERING |
| 40 chain->addPathRenderer(new GrTessellatingPathRenderer)->unref(); |
| 41 #endif |
42 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) { | 42 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) { |
43 chain->addPathRenderer(pr)->unref(); | 43 chain->addPathRenderer(pr)->unref(); |
44 } | 44 } |
45 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref(); | 45 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref(); |
46 chain->addPathRenderer(SkNEW_ARGS(GrAADistanceFieldPathRenderer, (ctx)))->un
ref(); | 46 chain->addPathRenderer(SkNEW_ARGS(GrAADistanceFieldPathRenderer, (ctx)))->un
ref(); |
47 } | 47 } |
OLD | NEW |