Searched refs:nextStop (Results 1 - 1 of 1) sorted by relevance

/external/webkit/Source/WebCore/platform/graphics/
H A DGradient.cpp169 const ColorStop& nextStop = m_stops[stop + 1]; local
170 float stopFraction = (value - lastStop.stop) / (nextStop.stop - lastStop.stop);
171 *r = lastStop.red + (nextStop.red - lastStop.red) * stopFraction;
172 *g = lastStop.green + (nextStop.green - lastStop.green) * stopFraction;
173 *b = lastStop.blue + (nextStop.blue - lastStop.blue) * stopFraction;
174 *a = lastStop.alpha + (nextStop.alpha - lastStop.alpha) * stopFraction;

Completed in 76 milliseconds