diff options
Diffstat (limited to 'bench/FontCacheBench.cpp')
-rw-r--r-- | bench/FontCacheBench.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bench/FontCacheBench.cpp b/bench/FontCacheBench.cpp index c6aab7a5ba..c206d5b6c8 100644 --- a/bench/FontCacheBench.cpp +++ b/bench/FontCacheBench.cpp @@ -24,10 +24,6 @@ static int count_glyphs(const uint16_t start[]) { } class FontCacheBench : public SkBenchmark { - enum { - N = SkBENCHLOOP(50) - }; - public: FontCacheBench(void* param) : INHERITED(param) {} @@ -44,7 +40,7 @@ protected: const uint16_t* array = gUniqueGlyphIDs; while (*array != gUniqueGlyphIDs_Sentinel) { size_t count = count_glyphs(array); - for (int i = 0; i < N; ++i) { + for (int i = 0; i < this->getLoops(); ++i) { paint.measureText(array, count * sizeof(uint16_t)); } array += count + 1; // skip the sentinel |