Index: src/gpu/GrPathRendererChain.cpp |
diff --git a/src/gpu/GrPathRendererChain.cpp b/src/gpu/GrPathRendererChain.cpp |
index e13e6c658488c4b2aa3243c98f290765c187a130..d9717d51cb345464ffcc34c9c9c30f1e245577ad 100644 |
--- a/src/gpu/GrPathRendererChain.cpp |
+++ b/src/gpu/GrPathRendererChain.cpp |
@@ -10,6 +10,8 @@ |
#include "GrPathRendererChain.h" |
#include "GrCaps.h" |
+#include "gl/GrGLCaps.h" |
+#include "glsl/GrGLSLCaps.h" |
#include "GrContext.h" |
#include "GrGpu.h" |
@@ -21,6 +23,7 @@ |
#include "batches/GrDefaultPathRenderer.h" |
#include "batches/GrStencilAndCoverPathRenderer.h" |
#include "batches/GrTessellatingPathRenderer.h" |
+#include "batches/GrPLSPathRenderer.h" |
GrPathRendererChain::GrPathRendererChain(GrContext* context) { |
const GrCaps& caps = *context->caps(); |
@@ -34,6 +37,9 @@ GrPathRendererChain::GrPathRendererChain(GrContext* context) { |
this->addPathRenderer(new GrAAHairLinePathRenderer)->unref(); |
this->addPathRenderer(new GrAAConvexPathRenderer)->unref(); |
this->addPathRenderer(new GrAALinearizingConvexPathRenderer)->unref(); |
+ if (caps.shaderCaps()->plsPathRenderingSupport()) { |
+ this->addPathRenderer(new GrPLSPathRenderer)->unref(); |
+ } |
this->addPathRenderer(new GrAADistanceFieldPathRenderer)->unref(); |
this->addPathRenderer(new GrDefaultPathRenderer(caps.twoSidedStencilSupport(), |
caps.stencilWrapOpsSupport()))->unref(); |