Chromium Code Reviews| 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" |
| 11 #include "GrAAHairLinePathRenderer.h" | 11 #include "GrAAHairLinePathRenderer.h" |
| 12 #include "GrAAConvexPathRenderer.h" | 12 #include "GrAAConvexPathRenderer.h" |
| 13 #include "GrAAFlatteningConvexPathRenderer.h" | |
| 13 #include "GrAADistanceFieldPathRenderer.h" | 14 #include "GrAADistanceFieldPathRenderer.h" |
| 14 #include "GrContext.h" | 15 #include "GrContext.h" |
| 15 #include "GrDashLinePathRenderer.h" | 16 #include "GrDashLinePathRenderer.h" |
| 16 #include "GrGpu.h" | 17 #include "GrGpu.h" |
| 17 #include "GrTessellatingPathRenderer.h" | 18 #include "GrTessellatingPathRenderer.h" |
| 18 #if GR_STROKE_PATH_RENDERING | 19 #if GR_STROKE_PATH_RENDERING |
| 19 #include "../../experimental/StrokePathRenderer/GrStrokePathRenderer.h" | 20 #include "../../experimental/StrokePathRenderer/GrStrokePathRenderer.h" |
| 20 #endif | 21 #endif |
| 21 #if GR_ANDROID_PATH_RENDERING | 22 #if GR_ANDROID_PATH_RENDERING |
| 22 #include "../../experimental/AndroidPathRenderer/GrAndroidPathRenderer.h" | 23 #include "../../experimental/AndroidPathRenderer/GrAndroidPathRenderer.h" |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 38 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx->resource Provider(), | 39 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx->resource Provider(), |
| 39 *ctx->getGpu( )->caps())) { | 40 *ctx->getGpu( )->caps())) { |
| 40 chain->addPathRenderer(pr)->unref(); | 41 chain->addPathRenderer(pr)->unref(); |
| 41 } | 42 } |
| 42 #if GR_TESSELLATING_PATH_RENDERING | 43 #if GR_TESSELLATING_PATH_RENDERING |
| 43 chain->addPathRenderer(new GrTessellatingPathRenderer)->unref(); | 44 chain->addPathRenderer(new GrTessellatingPathRenderer)->unref(); |
| 44 #endif | 45 #endif |
| 45 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) { | 46 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) { |
| 46 chain->addPathRenderer(pr)->unref(); | 47 chain->addPathRenderer(pr)->unref(); |
| 47 } | 48 } |
| 48 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref(); | 49 chain->addPathRenderer(SkNEW(GrAAFlatteningConvexPathRenderer))->unref(); |
|
robertphillips
2015/05/27 18:10:54
What's up with this? Are we ready to switch?
| |
| 50 // chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref(); | |
| 49 chain->addPathRenderer(SkNEW_ARGS(GrAADistanceFieldPathRenderer, (ctx)))->un ref(); | 51 chain->addPathRenderer(SkNEW_ARGS(GrAADistanceFieldPathRenderer, (ctx)))->un ref(); |
| 50 } | 52 } |
| OLD | NEW |