commit | 6536ae590e3873694cb02cf25dab8001a71f269e | [log] [tgz] |
---|---|---|
author | ethannicholas <ethannicholas@google.com> | Mon May 02 12:16:49 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon May 02 12:16:49 2016 -0700 |
tree | f944fbf08bb46bf044c3e01fce22c270b3a3a45e | |
parent | 0265707c191a31dfde08dd1cd7011c1fe5b8e643 [diff] [blame] |
added GrMSAAPathRenderer GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1834133003 Committed: https://skia.googlesource.com/skia/+/47a2dc8e229e93e1bcf7405747320920da1ab742 Committed: https://skia.googlesource.com/skia/+/b0fabd4ed55abcb6f5ed2f331c96c783f42bd37c Review-Url: https://codereview.chromium.org/1834133003
diff --git a/src/gpu/GrPathRendererChain.cpp b/src/gpu/GrPathRendererChain.cpp index 098d8fb..e19a134 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 @@ 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();