Lines Matching defs:texture
96 void GradientCache::operator()(GradientCacheEntry&, Texture*& texture) {
97 if (texture) {
98 mSize -= texture->objectSize();
99 texture->deleteTexture();
100 delete texture;
110 Texture* texture = mCache.get(gradient);
112 if (!texture) {
113 texture = addLinearGradient(gradient, colors, positions, count);
116 return texture;
152 Texture* texture = new Texture(Caches::getInstance());
153 texture->blend = info.hasAlpha;
154 texture->generation = 1;
165 generateTexture(colors, positions, info.width, 2, texture);
168 LOG_ALWAYS_FATAL_IF((int)size != texture->objectSize(),
169 "size != texture->objectSize(), size %" PRIu32 ", objectSize %d"
171 size, texture->objectSize(), info.width, bytesPerPixel());
172 mCache.put(gradient, texture);
174 return texture;
223 const uint32_t width, const uint32_t height, Texture* texture) {
270 texture->upload(GL_RGBA16F, width, height, GL_RGBA, GL_FLOAT, pixels);
272 texture->upload(GL_RGBA, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
275 texture->setFilter(GL_LINEAR);
276 texture->setWrap(GL_CLAMP_TO_EDGE);