doh. send byte length, not word count, to measureText
git-svn-id: http://skia.googlecode.com/svn/trunk@9519 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/FontCacheBench.cpp b/bench/FontCacheBench.cpp
index c154e8c..4f0bd07 100644
--- a/bench/FontCacheBench.cpp
+++ b/bench/FontCacheBench.cpp
@@ -37,7 +37,8 @@
end += 1;
}
for (int i = 0; i < N; ++i) {
- paint.measureText(array, end - array);
+ size_t len = (end - array) * sizeof(uint16_t);
+ paint.measureText(array, len);
}
array = end + 1; // skip the sentinel
}