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 18 matching lines...) Expand all Loading... |
29 chain->addPathRenderer(pr)->unref(); | 29 chain->addPathRenderer(pr)->unref(); |
30 } | 30 } |
31 #if GR_TESSELLATING_PATH_RENDERING | 31 #if GR_TESSELLATING_PATH_RENDERING |
32 chain->addPathRenderer(new GrTessellatingPathRenderer)->unref(); | 32 chain->addPathRenderer(new GrTessellatingPathRenderer)->unref(); |
33 #endif | 33 #endif |
34 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) { | 34 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) { |
35 chain->addPathRenderer(pr)->unref(); | 35 chain->addPathRenderer(pr)->unref(); |
36 } | 36 } |
37 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref(); | 37 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref(); |
38 chain->addPathRenderer(SkNEW(GrAALinearizingConvexPathRenderer))->unref(); | 38 chain->addPathRenderer(SkNEW(GrAALinearizingConvexPathRenderer))->unref(); |
39 chain->addPathRenderer(SkNEW_ARGS(GrAADistanceFieldPathRenderer, (ctx)))->un
ref(); | 39 chain->addPathRenderer(SkNEW(GrAADistanceFieldPathRenderer))->unref(); |
40 } | 40 } |
OLD | NEW |