Lines Matching full:texture
83 void TextDropShadowCache::operator()(ShadowText& text, ShadowTexture*& texture) {
84 if (texture) {
85 mSize -= texture->bitmapSize;
88 ALOGD("Shadow texture deleted, size = %d", texture->bitmapSize);
91 glDeleteTextures(1, &texture->id);
92 delete texture;
107 ShadowTexture* texture = mCache.get(entry);
109 if (!texture) {
113 texture = new ShadowTexture;
114 texture->left = shadow.penX;
115 texture->top = shadow.penY;
116 texture->width = shadow.width;
117 texture->height = shadow.height;
118 texture->generation = 0;
119 texture->blend = true;
122 texture->bitmapSize = size;
131 glGenTextures(1, &texture->id);
133 glBindTexture(GL_TEXTURE_2D, texture->id);
137 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, texture->width, texture->height, 0,
140 texture->setFilter(GL_LINEAR);
141 texture->setWrap(GL_CLAMP_TO_EDGE);
145 ALOGD("Shadow texture created, size = %d", texture->bitmapSize);
151 mCache.put(entry, texture);
153 texture->cleanup = true;
160 return texture;