Check for bounds intersection when batching MSAAPathOps
authorJim Van Verth <jvanverth@google.com>
Wed, 22 Feb 2017 19:50:52 +0000 (14:50 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 22 Feb 2017 20:38:07 +0000 (20:38 +0000)
Change-Id: Ic4f1e13728b1137ffdc94dab077ec065619a0221
Reviewed-on: https://skia-review.googlesource.com/8883
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>

src/gpu/ops/GrMSAAPathRenderer.cpp

index ca760e8..78a80b1 100644 (file)
@@ -456,6 +456,10 @@ private:
             return false;
         }
 
+        if (this->bounds().intersects(that->bounds())) {
+            return false;
+        }
+
         if (!fViewMatrix.cheapEqualTo(that->fViewMatrix)) {
             return false;
         }