diff options
author | bsalomon <bsalomon@google.com> | 2015-03-06 08:21:38 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-06 08:21:39 -0800 |
commit | bb3be25a861e70e0752956cdd03f88f4bf9d167e (patch) | |
tree | f9d92963b0cebff33c32a543731745461b0cd1fe /src/gpu | |
parent | a9d9a392380952006303d83c35a63a32dffd0b36 (diff) |
Remove rect clip type from grclip.
R=joshualitt@google.com
BUG=skia:
NOTREECHECKS=true
Review URL: https://codereview.chromium.org/989443003
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/GrClip.cpp | 9 | ||||
-rw-r--r-- | src/gpu/GrClipMaskManager.cpp | 10 |
2 files changed, 0 insertions, 19 deletions
diff --git a/src/gpu/GrClip.cpp b/src/gpu/GrClip.cpp index 63d8f51695..5c4a27ccad 100644 --- a/src/gpu/GrClip.cpp +++ b/src/gpu/GrClip.cpp @@ -33,15 +33,6 @@ void GrClip::getConservativeBounds(int width, int height, SkIRect* devResult, *isIntersectionOfRects = true; } } break; - case kRect_ClipType: { - devResult->setLTRB(SkScalarCeilToInt(this->rect().fLeft), - SkScalarCeilToInt(this->rect().fTop), - SkScalarCeilToInt(this->rect().fRight), - SkScalarCeilToInt(this->rect().fBottom)); - if (isIntersectionOfRects) { - *isIntersectionOfRects = true; - } - } break; case kClipStack_ClipType: { SkRect devBounds; this->clipStack()->getConservativeBounds(-this->origin().fX, diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp index f0eb2477bd..b58c56566e 100644 --- a/src/gpu/GrClipMaskManager.cpp +++ b/src/gpu/GrClipMaskManager.cpp @@ -244,16 +244,6 @@ bool GrClipMaskManager::setupClipping(GrPipelineBuilder* pipelineBuilder, scissorState->set(clip.irect()); this->setPipelineBuilderStencil(pipelineBuilder, ars); return true; - case GrClip::kRect_ClipType: { - const SkRect& rect = clip.rect(); - SkIRect scissor; - scissor.fLeft = SkScalarRoundToInt(rect.fLeft); - scissor.fTop = SkScalarRoundToInt(rect.fTop); - scissor.fRight = SkScalarRoundToInt(rect.fRight); - scissor.fBottom = SkScalarRoundToInt(rect.fBottom); - scissorState->set(scissor); - this->setPipelineBuilderStencil(pipelineBuilder, ars); - } return true; case GrClip::kClipStack_ClipType: { clipSpaceRTIBounds.offset(clip.origin()); GrReducedClip::ReduceClipStack(*clip.clipStack(), |