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>
This commit is contained in:
Brian Osman 2017-09-14 15:43:50 -04:00 committed by Skia Commit-Bot
parent f1748f5a92
commit e191ce68f0

View File

@ -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)) {