Index: bench/MemoryBench.cpp |
diff --git a/bench/MemoryBench.cpp b/bench/MemoryBench.cpp |
index 3dff98f8c1a6e94e5cf6ec59d20cc24841a44497..ae14dac6a43a49c0c57eaf50382016a111b39f16 100644 |
--- a/bench/MemoryBench.cpp |
+++ b/bench/MemoryBench.cpp |
@@ -15,10 +15,6 @@ |
class ChunkAllocBench : public SkBenchmark { |
SkString fName; |
size_t fMinSize; |
- |
- enum { |
- N = SkBENCHLOOP(1000) |
- }; |
public: |
ChunkAllocBench(void* param, size_t minSize) : INHERITED(param) { |
fMinSize = minSize; |
@@ -38,7 +34,7 @@ protected: |
SkChunkAlloc alloc(fMinSize); |
- for (int i = 0; i < N; ++i) { |
+ for (int i = 0; i < this->getLoops(); ++i) { |
size_t size = 0; |
int calls = 0; |
while (size < total) { |