Index: src/core/SkRecordDraw.cpp |
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp |
index af2037044899b087299baf8230ed5e0605e3aaa5..45324b8cecba03a10346a0abab4a2a192f5becde 100644 |
--- a/src/core/SkRecordDraw.cpp |
+++ b/src/core/SkRecordDraw.cpp |
@@ -162,6 +162,7 @@ public: |
// Finally feed all stored bounds into the BBH. They'll be returned in this order. |
SkASSERT(bbh); |
+ bbh->reserve(record.count()); |
for (unsigned i = 0; i < record.count(); i++) { |
if (!fBounds[i].isEmpty()) { |
bbh->insert(i, fBounds[i], true/*ok to defer*/); |