From 79839d45f893ad5690fc83c951567b3686e781e6 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Thu, 6 Oct 2016 15:03:34 -0400 Subject: Add distance values to interior of filled RRects This doesn't compute the correct distance vector but it suffices for gaussian edges. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2986 Change-Id: I8bd9e37b0f3788c30d85c95a3c0845d093f22554 Reviewed-on: https://skia-review.googlesource.com/2986 Reviewed-by: Jim Van Verth Commit-Queue: Robert Phillips --- src/gpu/GrDrawContext.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/gpu/GrDrawContext.cpp') diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp index 42d6795903..5b5428ac0d 100644 --- a/src/gpu/GrDrawContext.cpp +++ b/src/gpu/GrDrawContext.cpp @@ -851,11 +851,13 @@ void GrDrawContext::drawRRect(const GrClip& origClip, if (should_apply_coverage_aa(paint, fRenderTarget.get(), &useHWAA)) { GrShaderCaps* shaderCaps = fContext->caps()->shaderCaps(); - SkAutoTUnref batch(GrOvalRenderer::CreateRRectBatch(paint.getColor(), - viewMatrix, - rrect, - stroke, - shaderCaps)); + SkAutoTUnref batch(GrOvalRenderer::CreateRRectBatch( + paint.getColor(), + paint.usesDistanceVectorField(), + viewMatrix, + rrect, + stroke, + shaderCaps)); if (batch) { GrPipelineBuilder pipelineBuilder(paint, useHWAA); this->getDrawTarget()->drawBatch(pipelineBuilder, this, *clip, batch); -- cgit v1.2.3