Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@9567 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/FontCacheBench.cpp b/bench/FontCacheBench.cpp
index bfe628c..c6aab7a 100644
--- a/bench/FontCacheBench.cpp
+++ b/bench/FontCacheBench.cpp
@@ -30,17 +30,17 @@
public:
FontCacheBench(void* param) : INHERITED(param) {}
-
+
protected:
virtual const char* onGetName() SK_OVERRIDE {
return "fontcache";
}
-
+
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
SkPaint paint;
this->setupPaint(&paint);
paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
-
+
const uint16_t* array = gUniqueGlyphIDs;
while (*array != gUniqueGlyphIDs_Sentinel) {
size_t count = count_glyphs(array);
@@ -50,7 +50,7 @@
array += count + 1; // skip the sentinel
}
}
-
+
private:
typedef SkBenchmark INHERITED;
};
@@ -74,7 +74,7 @@
h ^= h >> 13;
h *= 0xc2b2ae35;
h ^= h >> 16;
-
+
h ^= (h >> 8);
return h;
}
@@ -94,7 +94,7 @@
unsigned hashMask) {
char table[kMaxHashCount];
sk_bzero(table, sizeof(table));
-
+
int collisions = 0;
for (int i = 0; i < count; ++i) {
int index = proc(array[i]) & hashMask;
@@ -117,12 +117,12 @@
if (false) dump_array(NULL, 0);
if (false) rotr(0, 0);
}
-
+
protected:
virtual const char* onGetName() SK_OVERRIDE {
return "fontefficiency";
}
-
+
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
static bool gDone;
if (gDone) {
@@ -149,7 +149,7 @@
}
}
}
-
+
private:
typedef SkBenchmark INHERITED;
};