| Index: src/gpu/GrBatchAtlas.h
|
| diff --git a/src/gpu/GrBatchAtlas.h b/src/gpu/GrBatchAtlas.h
|
| index 2b85da1f7d7d2c3083323917d7b7dabedb02f213..7a89f7889cacc3faba711476d47212a0e1c1c47c 100644
|
| --- a/src/gpu/GrBatchAtlas.h
|
| +++ b/src/gpu/GrBatchAtlas.h
|
| @@ -90,19 +90,12 @@ public:
|
| void set(int index) {
|
| SkASSERT(!this->find(index));
|
| fPlotAlreadyUpdated = fPlotAlreadyUpdated | (1 << index);
|
| - if (fCount < fAllocated) {
|
| - fPlotsToUpdate[fCount++] = index;
|
| - } else {
|
| - // This case will almost never happen
|
| - fAllocated = fCount << 1;
|
| - fPlotsToUpdate.realloc(fAllocated);
|
| - fPlotsToUpdate[fCount++] = index;
|
| - }
|
| + fPlotsToUpdate.push_back(index);
|
| }
|
|
|
| static const int kMinItems = 4;
|
| static const int kMaxPlots = 32;
|
| - SkAutoSTMalloc<kMinItems, int> fPlotsToUpdate;
|
| + SkSTArray<kMinItems, int, true> fPlotsToUpdate;
|
| uint32_t fPlotAlreadyUpdated;
|
| int fCount;
|
| int fAllocated;
|
|
|