Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3239)

Unified Diff: bench/FontCacheBench.cpp

Issue 23478013: Major bench refactoring. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: merge with head agani Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/FSRectBench.cpp ('k') | bench/FontScalerBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/FontCacheBench.cpp
diff --git a/bench/FontCacheBench.cpp b/bench/FontCacheBench.cpp
index c6aab7a5ba0ef8c941f2d646ea480452ec79b48d..c206d5b6c8966ab8844c407573d5abb9d4e4ceca 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
« no previous file with comments | « bench/FSRectBench.cpp ('k') | bench/FontScalerBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698