| 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 14 matching lines...) Expand all Loading... |
| 25 #if GR_ANDROID_PATH_RENDERING | 25 #if GR_ANDROID_PATH_RENDERING |
| 26 chain->addPathRenderer(SkNEW(GrAndroidPathRenderer))->unref(); | 26 chain->addPathRenderer(SkNEW(GrAndroidPathRenderer))->unref(); |
| 27 #endif | 27 #endif |
| 28 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx)) { | 28 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx)) { |
| 29 chain->addPathRenderer(pr)->unref(); | 29 chain->addPathRenderer(pr)->unref(); |
| 30 } | 30 } |
| 31 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create(ctx)) { | 31 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create(ctx)) { |
| 32 chain->addPathRenderer(pr)->unref(); | 32 chain->addPathRenderer(pr)->unref(); |
| 33 } | 33 } |
| 34 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref(); | 34 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref(); |
| 35 #ifndef SK_LEGACY_NO_DISTANCE_FIELD_PATHS | |
| 36 chain->addPathRenderer(SkNEW_ARGS(GrAADistanceFieldPathRenderer, (ctx)))->un
ref(); | 35 chain->addPathRenderer(SkNEW_ARGS(GrAADistanceFieldPathRenderer, (ctx)))->un
ref(); |
| 37 #endif | |
| 38 } | 36 } |
| OLD | NEW |