Loading libs/hwui/Interpolator.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,8 @@ LUTInterpolator::~LUTInterpolator() { } float LUTInterpolator::interpolate(float input) { float lutpos = input * mSize; // lut position should only be at the end of the table when input is 1f. float lutpos = input * (mSize - 1); if (lutpos >= (mSize - 1)) { return mValues[mSize - 1]; } Loading tools/layoutlib/bridge/src/com/android/internal/view/animation/NativeInterpolatorFactoryHelper_Delegate.java +1 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,7 @@ public class NativeInterpolatorFactoryHelper_Delegate { @Override public float getInterpolation(float input) { float lutpos = input * mSize; float lutpos = input * (mSize - 1); if (lutpos >= (mSize - 1)) { return mValues[mSize - 1]; } Loading Loading
libs/hwui/Interpolator.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,8 @@ LUTInterpolator::~LUTInterpolator() { } float LUTInterpolator::interpolate(float input) { float lutpos = input * mSize; // lut position should only be at the end of the table when input is 1f. float lutpos = input * (mSize - 1); if (lutpos >= (mSize - 1)) { return mValues[mSize - 1]; } Loading
tools/layoutlib/bridge/src/com/android/internal/view/animation/NativeInterpolatorFactoryHelper_Delegate.java +1 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,7 @@ public class NativeInterpolatorFactoryHelper_Delegate { @Override public float getInterpolation(float input) { float lutpos = input * mSize; float lutpos = input * (mSize - 1); if (lutpos >= (mSize - 1)) { return mValues[mSize - 1]; } Loading