Lines Matching refs:count
38 count = 0; in GradientCacheEntry()
43 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { in GradientCacheEntry()
44 copy(colors, positions, count); in GradientCacheEntry()
48 copy(entry.colors.get(), entry.positions.get(), entry.count); in GradientCacheEntry()
53 copy(entry.colors.get(), entry.positions.get(), entry.count);
73 uint32_t count; member
76 void copy(uint32_t* colors, float* positions, uint32_t count) { in copy()
77 this->count = count; in copy()
78 this->colors.reset(new uint32_t[count]); in copy()
79 this->positions.reset(new float[count]); in copy()
81 memcpy(this->colors.get(), colors, count * sizeof(uint32_t)); in copy()
82 memcpy(this->positions.get(), positions, count * sizeof(float)); in copy()
120 Texture* get(uint32_t* colors, float* positions, int count);
142 uint32_t* colors, float* positions, int count);
152 void getGradientInfo(const uint32_t* colors, const int count, GradientInfo& info);