From 2120b6f2cc3070b16800bfb2ff05cf114c8e40b9 Mon Sep 17 00:00:00 2001 From: joshualitt Date: Fri, 18 Sep 2015 12:56:41 -0700 Subject: Fix for combining with perspective local rects TBR=robertphillips@google.com BUG=skia: Review URL: https://codereview.chromium.org/1347913004 --- src/gpu/batches/GrNonAAFillRectBatch.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gpu/batches') diff --git a/src/gpu/batches/GrNonAAFillRectBatch.cpp b/src/gpu/batches/GrNonAAFillRectBatch.cpp index 54edb7d7c9..765d0dafa8 100644 --- a/src/gpu/batches/GrNonAAFillRectBatch.cpp +++ b/src/gpu/batches/GrNonAAFillRectBatch.cpp @@ -157,6 +157,7 @@ public: const GrPipelineOptimizations& opts) { // We could batch across perspective vm changes if we really wanted to return mine.fViewMatrix.cheapEqualTo(theirs.fViewMatrix) && + mine.fHasLocalRect == theirs.fHasLocalRect && (!mine.fHasLocalMatrix || mine.fLocalMatrix.cheapEqualTo(theirs.fLocalMatrix)); } -- cgit v1.2.3