Allow a small tolerance in GrAtlasTextBatch bounds test.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1882833002 Review URL: https://codereview.chromium.org/1882833002
This commit is contained in:
parent
09e127bd38
commit
33b6b8ef99
@ -164,7 +164,10 @@ void GrAtlasTextBatch::onPrepareDraws(Target* target) const {
|
||||
if (this->usesDistanceFields()) {
|
||||
args.fViewMatrix.mapRect(&rect);
|
||||
}
|
||||
SkASSERT(fBounds.contains(rect));
|
||||
// Allow for small numerical error in the bounds.
|
||||
SkRect bounds = fBounds;
|
||||
bounds.outset(0.001f, 0.001f);
|
||||
SkASSERT(bounds.contains(rect));
|
||||
#endif
|
||||
|
||||
currVertex += byteCount;
|
||||
|
Loading…
Reference in New Issue
Block a user