Compute bounds union while combining path range draw path batches

Compute bounds union while combining batches generated by NVPR device
independent text code-path. Otherwise the overlap test of the
GrDrawTarget::recordBatch violate painter's algorithm order.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1894973008

Review URL: https://codereview.chromium.org/1894973008
This commit is contained in:
kkinnunen 2016-04-24 23:35:35 -07:00 committed by Commit bot
parent 97920b4092
commit c4ce72fc15

View File

@ -102,6 +102,7 @@ bool GrDrawPathRangeBatch::onCombineIfPossible(GrBatch* t, const GrCaps& caps) {
draw->fY = head->fY;
that->fDraws.popHead();
}
this->joinBounds(that->fBounds);
return true;
}