Index: src/gpu/GrAddPathRenderers_default.cpp |
diff --git a/src/gpu/GrAddPathRenderers_default.cpp b/src/gpu/GrAddPathRenderers_default.cpp |
index 2c5058f1657cb7e731663d30b68dfdc5b7007cac..f5d69348f326a019cf241689c5dcdf36d3447ca1 100644 |
--- a/src/gpu/GrAddPathRenderers_default.cpp |
+++ b/src/gpu/GrAddPathRenderers_default.cpp |
@@ -11,6 +11,7 @@ |
#include "GrAAHairLinePathRenderer.h" |
#include "GrAAConvexPathRenderer.h" |
#include "GrAADistanceFieldPathRenderer.h" |
+#include "GrTessellatingPathRenderer.h" |
#if GR_STROKE_PATH_RENDERING |
#include "../../experimental/StrokePathRenderer/GrStrokePathRenderer.h" |
#endif |
@@ -18,6 +19,10 @@ |
#include "../../experimental/AndroidPathRenderer/GrAndroidPathRenderer.h" |
#endif |
+#ifndef GR_TESSELLATING_PATH_RENDERING |
+#define GR_TESSELLATING_PATH_RENDERING 0 |
+#endif |
+ |
void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain) { |
#if GR_STROKE_PATH_RENDERING |
chain->addPathRenderer(SkNEW(GrStrokePathRenderer))->unref(); |
@@ -25,6 +30,9 @@ void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain |
#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(); |
} |