Remove unnecessary code in SkGpuDevice::drawRRect
Bug: skia:
Change-Id: Ied1e4bd89305695957faa2328e363304beb90a21
Reviewed-on: https://skia-review.googlesource.com/46840
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 8e05d8a..3f0bdce 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -403,15 +403,7 @@
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)) {