small fix for perf regression in GrAtlasTextContext.cpp
BUG=skia:
Review URL: https://codereview.chromium.org/1080673005
diff --git a/src/gpu/GrBatchAtlas.h b/src/gpu/GrBatchAtlas.h
index 7a89f78..83ef5ec 100644
--- a/src/gpu/GrBatchAtlas.h
+++ b/src/gpu/GrBatchAtlas.h
@@ -66,7 +66,7 @@
*/
class BulkUseTokenUpdater {
public:
- BulkUseTokenUpdater() : fPlotAlreadyUpdated(0), fCount(0), fAllocated(kMinItems) {}
+ BulkUseTokenUpdater() : fPlotAlreadyUpdated(0) {}
void add(AtlasID id) {
int index = GrBatchAtlas::GetIndexFromID(id);
if (!this->find(index)) {
@@ -75,9 +75,7 @@
}
void reset() {
- fPlotsToUpdate.reset(kMinItems);
- fAllocated = kMinItems;
- fCount = 0;
+ fPlotsToUpdate.reset();
fPlotAlreadyUpdated = 0;
}
@@ -97,8 +95,6 @@
static const int kMaxPlots = 32;
SkSTArray<kMinItems, int, true> fPlotsToUpdate;
uint32_t fPlotAlreadyUpdated;
- int fCount;
- int fAllocated;
friend class GrBatchAtlas;
};