Searched refs:GradientCacheEntry (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/libs/hwui/ |
D | GradientCache.h | 34 struct GradientCacheEntry { struct 35 GradientCacheEntry() { in GradientCacheEntry() function 41 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { in GradientCacheEntry() argument 45 GradientCacheEntry(const GradientCacheEntry& entry) { in GradientCacheEntry() function 49 GradientCacheEntry& operator=(const GradientCacheEntry& entry) { 59 static int compare(const GradientCacheEntry& lhs, const GradientCacheEntry& rhs); 61 bool operator==(const GradientCacheEntry& other) const { 65 bool operator!=(const GradientCacheEntry& other) const { 87 inline int strictly_order_type(const GradientCacheEntry& lhs, const GradientCacheEntry& rhs) { in strictly_order_type() 88 return GradientCacheEntry::compare(lhs, rhs) < 0; in strictly_order_type() [all …]
|
D | GradientCache.cpp | 42 hash_t GradientCacheEntry::hash() const { in hash() 51 int GradientCacheEntry::compare(const GradientCacheEntry& lhs, const GradientCacheEntry& rhs) { in compare() 66 : mCache(LruCache<GradientCacheEntry, Texture*>::kUnlimitedCapacity) in GradientCache() 96 void GradientCache::operator()(GradientCacheEntry&, Texture*& texture) { in operator ()() argument 109 GradientCacheEntry gradient(colors, positions, count); in get() 146 Texture* GradientCache::addLinearGradient(GradientCacheEntry& gradient, in addLinearGradient()
|