aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/FontCacheBench.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-11 21:42:54 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-11 21:42:54 +0000
commit5872e000337ff754ee540e1934ee2e1db7d2784f (patch)
tree598dab505473d0d94c0d557aab5adf3414d4616e /bench/FontCacheBench.cpp
parent2fef6d2bda33b348133843e22c1009504c6fc209 (diff)
doh. send byte length, not word count, to measureText
git-svn-id: http://skia.googlecode.com/svn/trunk@9519 2bbb7eff-a529-9590-31e7-b0007b416f81
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
}