Index: src/gpu/batches/GrAAFillRectBatch.cpp |
diff --git a/src/gpu/batches/GrAAFillRectBatch.cpp b/src/gpu/batches/GrAAFillRectBatch.cpp |
index fedde703988d7be19ea1ee690da734e4251697c9..4f93adf07429c5d7a0c930f1fa477339886f80d1 100644 |
--- a/src/gpu/batches/GrAAFillRectBatch.cpp |
+++ b/src/gpu/batches/GrAAFillRectBatch.cpp |
@@ -173,7 +173,9 @@ public: |
void* mem = fRectData.push_back_n(sizeof(RectInfo)); |
new (mem) RectInfo(color, viewMatrix, rect, devRect); |
} |
- fBounds = devRect; |
+ IsZeroArea zeroArea = (!rect.width() || !rect.height()) ? IsZeroArea::kYes |
+ : IsZeroArea::kNo; |
+ this->setBounds(devRect, HasAABloat::kYes, zeroArea); |
fRectCnt = 1; |
} |
@@ -278,7 +280,7 @@ private: |
fRectData.push_back_n(that->fRectData.count(), that->fRectData.begin()); |
fRectCnt += that->fRectCnt; |
- this->joinBounds(that->bounds()); |
+ this->joinBounds(*that); |
return true; |
} |