aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-09-18 12:56:41 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-18 12:56:41 -0700
commit2120b6f2cc3070b16800bfb2ff05cf114c8e40b9 (patch)
treed86c0e1a8edbdeee121980f04d899553b7ecef89 /src/gpu/batches
parent1052f51a7da744b8fd8b7d89e0a3a13725c3e6b2 (diff)
Fix for combining with perspective local rects
TBR=robertphillips@google.com BUG=skia: Review URL: https://codereview.chromium.org/1347913004
Diffstat (limited to 'src/gpu/batches')
-rw-r--r--src/gpu/batches/GrNonAAFillRectBatch.cpp1
1 files changed, 1 insertions, 0 deletions
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));
}