Chromium Code Reviews

Unified Diff: src/gpu/batches/GrAtlasTextBatch.cpp

Issue 2127673002: Consolidate handling of infinitely thin primitives and aa bloat handing WRT batch bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@AAStrokeRect
Patch Set: comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/gpu/batches/GrAtlasTextBatch.cpp
diff --git a/src/gpu/batches/GrAtlasTextBatch.cpp b/src/gpu/batches/GrAtlasTextBatch.cpp
index 3c4b4a5135b118a64c27be450174bea084eced67..6427bc0844e46ebc152f1b20478849e690ee6b4f 100644
--- a/src/gpu/batches/GrAtlasTextBatch.cpp
+++ b/src/gpu/batches/GrAtlasTextBatch.cpp
@@ -158,7 +158,7 @@ void GrAtlasTextBatch::onPrepareDraws(Target* target) const {
args.fViewMatrix.mapRect(&rect);
}
// Allow for small numerical error in the bounds.
- SkRect bounds = fBounds;
+ SkRect bounds = this->bounds();
bounds.outset(0.001f, 0.001f);
SkASSERT(bounds.contains(rect));
#endif
@@ -239,7 +239,7 @@ bool GrAtlasTextBatch::onCombineIfPossible(GrBatch* t, const GrCaps& caps) {
that->fGeoCount = 0;
fGeoCount = newGeoCount;
- this->joinBounds(that->bounds());
+ this->joinBounds(*that);
return true;
}

Powered by Google App Engine