From e191ce68f00ff4b517fdf244b3311904858a25ec Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Thu, 14 Sep 2017 15:43:50 -0400 Subject: Remove unnecessary code in SkGpuDevice::drawRRect Bug: skia: Change-Id: Ied1e4bd89305695957faa2328e363304beb90a21 Reviewed-on: https://skia-review.googlesource.com/46840 Reviewed-by: Brian Salomon Commit-Queue: Brian Osman --- src/gpu/SkGpuDevice.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/gpu') diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 8e05d8a03b..3f0bdce076 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -403,15 +403,7 @@ void SkGpuDevice::drawRRect(const SkRRect& rrect, const SkPaint& paint) { SkRRect devRRect; if (rrect.transform(this->ctm(), &devRRect)) { if (devRRect.allCornersCircular()) { - SkRect maskRect; - if (mf->canFilterMaskGPU(devRRect, this->devClipBounds(), - this->ctm(), &maskRect)) { - SkIRect finalIRect; - maskRect.roundOut(&finalIRect); - - // we used to test finalIRect for quickReject, but that seems unlikely - // given that the original shape was not rejected... - + if (mf->canFilterMaskGPU(devRRect, this->devClipBounds(), this->ctm(), nullptr)) { if (mf->directFilterRRectMaskGPU(this->context(), fRenderTargetContext.get(), std::move(grPaint), this->clip(), this->ctm(), style.strokeRec(), rrect, devRRect)) { -- cgit v1.2.3