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
This commit is contained in:
mtklein@google.com 2013-12-03 00:01:03 +00:00
parent 31f0ffc9c3
commit 4178ec0582

View File

@ -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);