Minor cleanup: remove GR_TESSELLATING_PATH_RENDERING #ifdef.

Also, new -> SkNEW.

Review URL: https://codereview.chromium.org/1280433002
This commit is contained in:
senorblanco 2015-08-06 06:52:10 -07:00 committed by Commit bot
parent 2dcc759cd2
commit ebe06c0560

View File

@ -17,10 +17,6 @@
#include "GrGpu.h"
#include "GrTessellatingPathRenderer.h"
#ifndef GR_TESSELLATING_PATH_RENDERING
#define GR_TESSELLATING_PATH_RENDERING 1
#endif
void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain) {
chain->addPathRenderer(SkNEW(GrDashLinePathRenderer))->unref();
@ -28,9 +24,7 @@ void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain
*ctx->caps())) {
chain->addPathRenderer(pr)->unref();
}
#if GR_TESSELLATING_PATH_RENDERING
chain->addPathRenderer(new GrTessellatingPathRenderer)->unref();
#endif
chain->addPathRenderer(SkNEW(GrTessellatingPathRenderer))->unref();
if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) {
chain->addPathRenderer(pr)->unref();
}