aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/FontCacheBench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/FontCacheBench.cpp')
-rw-r--r--bench/FontCacheBench.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/bench/FontCacheBench.cpp b/bench/FontCacheBench.cpp
index c154e8c42c..4f0bd07c41 100644
--- a/bench/FontCacheBench.cpp
+++ b/bench/FontCacheBench.cpp
@@ -37,7 +37,8 @@ protected:
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
}