Place nvpr above tesselating path renderer in the chain
authorcdalton <cdalton@nvidia.com>
Wed, 6 May 2015 20:16:43 +0000 (13:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 6 May 2015 20:16:43 +0000 (13:16 -0700)
BUG=skia:

Review URL: https://codereview.chromium.org/1123343003

src/gpu/GrAddPathRenderers_default.cpp

index 0f675acb4c8c874321fd427b4df8aa79eb46dca9..1797f579830f96728e766b7572effd70980ae70e 100644 (file)
@@ -32,13 +32,13 @@ void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain
 #endif
 #if GR_ANDROID_PATH_RENDERING
     chain->addPathRenderer(SkNEW(GrAndroidPathRenderer))->unref();
-#endif
-#if GR_TESSELLATING_PATH_RENDERING
-    chain->addPathRenderer(new GrTessellatingPathRenderer)->unref();
 #endif
     if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx)) {
         chain->addPathRenderer(pr)->unref();
     }
+#if GR_TESSELLATING_PATH_RENDERING
+    chain->addPathRenderer(new GrTessellatingPathRenderer)->unref();
+#endif
     if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) {
         chain->addPathRenderer(pr)->unref();
     }