aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-24 17:30:48 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-24 17:30:48 +0000
commitca2b441e3fb82b4f4f30de23842673b362fb03ad (patch)
tree38cf84ebd21150a564c977d96beb5816f621fa1d /src/gpu
parent175eaf62fa7a5a8549813cf31214031ad821eaaa (diff)
Remove unnecessary isrect code in clip mask manager
R=robertphillips@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/205213002 git-svn-id: http://skia.googlecode.com/svn/trunk@13911 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrClipMaskManager.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp
index 2f60c45017..12b3360db4 100644
--- a/src/gpu/GrClipMaskManager.cpp
+++ b/src/gpu/GrClipMaskManager.cpp
@@ -220,7 +220,6 @@ bool GrClipMaskManager::setupClipping(const GrClipData* clipDataIn,
InitialState initialState;
SkIRect clipSpaceIBounds;
bool requiresAA;
- bool isRect = false;
GrDrawState* drawState = fGpu->drawState();
@@ -243,7 +242,6 @@ bool GrClipMaskManager::setupClipping(const GrClipData* clipDataIn,
if (elements.isEmpty()) {
if (kAllIn_InitialState == initialState) {
ignoreClip = clipSpaceIBounds == clipSpaceRTIBounds;
- isRect = true;
} else {
return false;
}
@@ -323,16 +321,6 @@ bool GrClipMaskManager::setupClipping(const GrClipData* clipDataIn,
// "incorrectly" clearing the AA cache.
fAACache.reset();
- // If the clip is a rectangle then just set the scissor. Otherwise, create
- // a stencil mask.
- if (isRect) {
- SkIRect clipRect = clipSpaceIBounds;
- clipRect.offset(-clipDataIn->fOrigin);
- fGpu->enableScissor(clipRect);
- this->setGpuStencil();
- return true;
- }
-
// use the stencil clip if we can't represent the clip as a rectangle.
SkIPoint clipSpaceToStencilSpaceOffset = -clipDataIn->fOrigin;
this->createStencilClipMask(genID,