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