aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/ColorPrivBench.cpp
diff options
context:
space:
mode:
authorGravatar mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-03 00:01:03 +0000
committerGravatar mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-03 00:01:03 +0000
commit4178ec0582987d7b191c609a937d389abc2e74bc (patch)
tree13ec1df34b92802bd72f44a7e20abb71ac568443 /bench/ColorPrivBench.cpp
parent31f0ffc9c38b377c60979e18c6fd898ba08c8faf (diff)
Fix off-by-one in four_byte_interp benches.
BUG= Review URL: https://codereview.chromium.org/100563002 git-svn-id: http://skia.googlecode.com/svn/trunk@12451 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/ColorPrivBench.cpp')
-rw-r--r--bench/ColorPrivBench.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/ColorPrivBench.cpp b/bench/ColorPrivBench.cpp
index 3143ef4525..1e152e6d62 100644
--- a/bench/ColorPrivBench.cpp
+++ b/bench/ColorPrivBench.cpp
@@ -28,7 +28,7 @@ public:
const SkPMColor src = 0xAB998877, dst = 0x66334455;
volatile SkPMColor junk = 0;
for (int i = 0; i < 10*this->getLoops(); ++i) {
- for (size_t j = 0; j <= SK_ARRAY_COUNT(fScales); j++) {
+ for (size_t j = 0; j <= 256; j++) {
const unsigned scale = fScales[j];
if (kFast && kScale) {
junk ^= SkFastFourByteInterp(src, dst, scale);