Index: src/gpu/GrPathRendererChain.cpp |
diff --git a/src/gpu/GrPathRendererChain.cpp b/src/gpu/GrPathRendererChain.cpp |
index 098d8fb2d958af004f783773df1935e5cd94db7e..e19a134467a869311902fc31eec50574c38f9df0 100644 |
--- a/src/gpu/GrPathRendererChain.cpp |
+++ b/src/gpu/GrPathRendererChain.cpp |
@@ -20,9 +20,10 @@ |
#include "batches/GrAALinearizingConvexPathRenderer.h" |
#include "batches/GrDashLinePathRenderer.h" |
#include "batches/GrDefaultPathRenderer.h" |
+#include "batches/GrMSAAPathRenderer.h" |
+#include "batches/GrPLSPathRenderer.h" |
#include "batches/GrStencilAndCoverPathRenderer.h" |
#include "batches/GrTessellatingPathRenderer.h" |
-#include "batches/GrPLSPathRenderer.h" |
GrPathRendererChain::GrPathRendererChain(GrContext* context) { |
const GrCaps& caps = *context->caps(); |
@@ -32,6 +33,9 @@ GrPathRendererChain::GrPathRendererChain(GrContext* context) { |
caps)) { |
this->addPathRenderer(pr)->unref(); |
} |
+ if (caps.sampleShadingSupport()) { |
+ this->addPathRenderer(new GrMSAAPathRenderer)->unref(); |
+ } |
this->addPathRenderer(new GrTessellatingPathRenderer)->unref(); |
this->addPathRenderer(new GrAAHairLinePathRenderer)->unref(); |
this->addPathRenderer(new GrAAConvexPathRenderer)->unref(); |