Lines Matching refs:positions
46 hash = JenkinsHashMix(hash, android::hash_type(positions[i]));
58 return memcmp(lhs.positions.get(), rhs.positions.get(), lhs.count * sizeof(float));
125 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) {
126 GradientCacheEntry gradient(colors, positions, count);
130 texture = addLinearGradient(gradient, colors, positions, count);
164 uint32_t* colors, float* positions, int count) {
181 generateTexture(colors, positions, texture);
234 void GradientCache::generateTexture(uint32_t* colors, float* positions, Texture* texture) {
258 float startPos = positions[0];
259 float distance = positions[1] - startPos;
264 if (pos > positions[currentPos]) {
266 startPos = positions[currentPos];
271 distance = positions[currentPos] - startPos;