Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DGradientCache.cpp198 float oppAmount = 1.0f - amount; in mixBytes() local
199 const float alpha = start.a * oppAmount + end.a * amount; in mixBytes()
202 *dst++ = uint8_t(a * (start.r * oppAmount + end.r * amount)); in mixBytes()
203 *dst++ = uint8_t(a * (start.g * oppAmount + end.g * amount)); in mixBytes()
204 *dst++ = uint8_t(a * (start.b * oppAmount + end.b * amount)); in mixBytes()
210 float oppAmount = 1.0f - amount; in mixFloats() local
211 const float a = start.a * oppAmount + end.a * amount; in mixFloats()
214 *d++ = a * (start.r * oppAmount + end.r * amount); in mixFloats()
215 *d++ = a * (start.g * oppAmount + end.g * amount); in mixFloats()
216 *d++ = a * (start.b * oppAmount + end.b * amount); in mixFloats()