aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/text
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-01-12 12:06:06 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-12 19:31:03 +0000
commit7cdabedc8b73b70e4aa70c5621a4bdc8e00ede44 (patch)
tree3068170ce9076b048fc322546be948a6f2eb9381 /src/gpu/text
parent1001f843a45e95f6df1d44242b6b06c77898e870 (diff)
Use GrOvalOpFactory ops to draw non-AA rrects, ovals, and arcs.
This improves performance. Bug: skia: Change-Id: Ie01170ec084be66ea166b2baffcdb415583aa523 Reviewed-on: https://skia-review.googlesource.com/93321 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/text')
-rw-r--r--src/gpu/text/GrStencilAndCoverTextContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/text/GrStencilAndCoverTextContext.cpp b/src/gpu/text/GrStencilAndCoverTextContext.cpp
index 86e5732eb9..951b1dfd65 100644
--- a/src/gpu/text/GrStencilAndCoverTextContext.cpp
+++ b/src/gpu/text/GrStencilAndCoverTextContext.cpp
@@ -583,7 +583,8 @@ void GrStencilAndCoverTextContext::TextRun::draw(GrContext* ctx,
// The run's "font" overrides the anti-aliasing of the passed in SkPaint!
GrAAType aaType = GrChooseAAType(this->aa(), renderTargetContext->fsaaType(),
- GrAllowMixedSamples::kYes, *renderTargetContext->caps());
+ GrAllowMixedSamples::kYes, GrAllowNonAABinaryCoverage::kNo,
+ nullptr, *renderTargetContext->caps());
std::unique_ptr<GrDrawOp> op = GrDrawPathRangeOp::Make(
viewMatrix, fTextRatio, fTextInverseRatio * x, fTextInverseRatio * y,