If scissor would be empty in GrClipMaskManager::SetupClipping indicate draw can be...
authorbsalomon <bsalomon@google.com>
Fri, 29 Jul 2016 19:24:29 +0000 (12:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 29 Jul 2016 19:24:29 +0000 (12:24 -0700)
BUG=chromium:632185
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2196803002

Review-Url: https://codereview.chromium.org/2196803002

src/gpu/GrClipMaskManager.cpp

index b2b3603b9445bca32ae66271c811d7c3f86bcc18..8e57fc84d5586570b9f73314b955e6a22e8f1287 100644 (file)
@@ -258,7 +258,7 @@ bool GrClipMaskManager::SetupClipping(GrContext* context,
                                                                &clipSpaceIBounds,
                                                                &requiresAA);
     if (elements.isEmpty()) {
-        if (GrReducedClip::kAllOut_InitialState == initialState) {
+        if (GrReducedClip::kAllOut_InitialState == initialState || clipSpaceIBounds.isEmpty()) {
             return false;
         } else {
             SkIRect scissorSpaceIBounds(clipSpaceIBounds);