Fix for combining with perspective local rects

TBR=robertphillips@google.com
BUG=skia:

Review URL: https://codereview.chromium.org/1347913004
This commit is contained in:
joshualitt 2015-09-18 12:56:41 -07:00 committed by Commit bot
parent 1052f51a7d
commit 2120b6f2cc

View File

@ -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));
}