From 93f1633abca95e302fdd31ece0f4d602b0b26708 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Wed, 23 Nov 2016 19:37:13 -0500 Subject: Fix gpu blurring on platforms that "useDrawInsteadOfClear" Platforms that "useDrawInsteadOfClear" take a different path in GrRenderTargetContext::internalClear. The different path involves a lot of comparisons of the drawn rect with the bounds of the RenderTarget. Since the RenderTargets are now deferred (and the instantiated version might be larger than the proxied size) case must be taken in prematurely optimizing away clears and draws. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=5148 TBR=bsalomon@google.com Change-Id: If63b6393fb66328175bc92de211e7242e903f25e Reviewed-on: https://skia-review.googlesource.com/5148 Reviewed-by: Robert Phillips Reviewed-by: Greg Daniel Commit-Queue: Robert Phillips --- src/gpu/batches/GrAAHairLinePathRenderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpu/batches/GrAAHairLinePathRenderer.cpp') diff --git a/src/gpu/batches/GrAAHairLinePathRenderer.cpp b/src/gpu/batches/GrAAHairLinePathRenderer.cpp index eb1be15b74..70c491111f 100644 --- a/src/gpu/batches/GrAAHairLinePathRenderer.cpp +++ b/src/gpu/batches/GrAAHairLinePathRenderer.cpp @@ -961,8 +961,8 @@ bool GrAAHairLinePathRenderer::onDrawPath(const DrawPathArgs& args) { SkASSERT(!args.fRenderTargetContext->isUnifiedMultisampled()); SkIRect devClipBounds; - args.fClip->getConservativeBounds(args.fRenderTargetContext->width(), - args.fRenderTargetContext->height(), + args.fClip->getConservativeBounds(args.fRenderTargetContext->worstCaseWidth(), + args.fRenderTargetContext->worstCaseHeight(), &devClipBounds); SkPath path; -- cgit v1.2.3