diff options
Diffstat (limited to 'bench/InterpBench.cpp')
-rw-r--r-- | bench/InterpBench.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/bench/InterpBench.cpp b/bench/InterpBench.cpp index 1db832d5d2..89841f8a69 100644 --- a/bench/InterpBench.cpp +++ b/bench/InterpBench.cpp @@ -71,10 +71,21 @@ protected: int64_t step = (int64_t)(dx * 65536 * 655536); SkFixed tmp; for (int i = 0; i < count; i += 4) { - tmp = curr >> 16; dst[i + 0] = TILE(tmp, count); curr += step; - tmp = curr >> 16; dst[i + 1] = TILE(tmp, count); curr += step; - tmp = curr >> 16; dst[i + 2] = TILE(tmp, count); curr += step; - tmp = curr >> 16; dst[i + 3] = TILE(tmp, count); curr += step; + tmp = (SkFixed)(curr >> 16); + dst[i + 0] = TILE(tmp, count); + curr += step; + + tmp = (SkFixed)(curr >> 16); + dst[i + 1] = TILE(tmp, count); + curr += step; + + tmp = (SkFixed)(curr >> 16); + dst[i + 2] = TILE(tmp, count); + curr += step; + + tmp = (SkFixed)(curr >> 16); + dst[i + 3] = TILE(tmp, count); + curr += step; } } private: |