From 9d01fbc9649361cec873863d25dc9095b937a6ee Mon Sep 17 00:00:00 2001 From: Jim Van Verth Date: Wed, 22 Feb 2017 14:50:52 -0500 Subject: [PATCH] Check for bounds intersection when batching MSAAPathOps Change-Id: Ic4f1e13728b1137ffdc94dab077ec065619a0221 Reviewed-on: https://skia-review.googlesource.com/8883 Reviewed-by: Brian Salomon Commit-Queue: Jim Van Verth --- src/gpu/ops/GrMSAAPathRenderer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gpu/ops/GrMSAAPathRenderer.cpp b/src/gpu/ops/GrMSAAPathRenderer.cpp index ca760e81d4..78a80b18be 100644 --- a/src/gpu/ops/GrMSAAPathRenderer.cpp +++ b/src/gpu/ops/GrMSAAPathRenderer.cpp @@ -456,6 +456,10 @@ private: return false; } + if (this->bounds().intersects(that->bounds())) { + return false; + } + if (!fViewMatrix.cheapEqualTo(that->fViewMatrix)) { return false; }