Home
last modified time | relevance | path

Searched refs:oppAmount (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/libs/hwui/
DGradientCache.cpp217 float oppAmount = 1.0f - amount; in mixBytes() local
218 const float alpha = start.a * oppAmount + end.a * amount; in mixBytes()
221 *dst++ = uint8_t(a * (start.r * oppAmount + end.r * amount)); in mixBytes()
222 *dst++ = uint8_t(a * (start.g * oppAmount + end.g * amount)); in mixBytes()
223 *dst++ = uint8_t(a * (start.b * oppAmount + end.b * amount)); in mixBytes()
229 float oppAmount = 1.0f - amount; in mixFloats() local
230 const float a = start.a * oppAmount + end.a * amount; in mixFloats()
233 *d++ = a * (start.r * oppAmount + end.r * amount); in mixFloats()
234 *d++ = a * (start.g * oppAmount + end.g * amount); in mixFloats()
235 *d++ = a * (start.b * oppAmount + end.b * amount); in mixFloats()