commit | d0ff41c40660288c3bae27e5c3bc328a464eab03 | [log] [tgz] |
---|---|---|
author | Doris Liu <tianliu@google.com> | Mon Jun 27 11:32:35 2016 -0700 |
committer | Doris Liu <tianliu@google.com> | Mon Jun 27 11:32:35 2016 -0700 |
tree | 5152b027ff0c274ed225316b6ad33621f673fce2 | |
parent | abcc4392e9c085ff1c28c7849e2d2aa7a9a4aa29 [diff] |
Rounding per-channel interpolation in ArgbEvaluator to closest integer In case of interpolating between x+1 and x in a color channel, the previous implementation would jump to x in the *beginning* of the animation, as it rounds down the interpolated float that's [x, x+1]. This CL rounds the per-channel interpolated float to the closest integer. Change-Id: I8610fb14ab3dd0ee2b1816868977c5653c178660