aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-09-14 15:43:50 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-14 20:39:55 +0000
commite191ce68f00ff4b517fdf244b3311904858a25ec (patch)
treee40cf1c6929d5f9f7d1dbd7549775d90469149c3 /src/gpu
parentf1748f5a9238a0d3e189d50fc5e57ae8b8ec087c (diff)
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>
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/SkGpuDevice.cpp10
1 files changed, 1 insertions, 9 deletions
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)) {