Lines Matching refs:tex

34     ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex);
311 sp<EGLTextureObject> tex;
324 tex = c->textures.defaultTexture;
326 if (c->textures.tmu[i].texture == tex.get())
331 tex = c->surfaceManager->replaceTexture(name);
336 u.texture = tex.get();
340 return tex;
344 ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex)
346 if (tex.get() == c->textures.tmu[tmu].texture)
356 u.texture = tex.get();
386 EGLTextureObject* tex = c->textures.tmu[active].texture;
387 status_t err = tex->reallocate(level,
391 GGLSurface& surface = tex->editMip(level);
397 sp<EGLTextureObject> tex = getAndBindActiveTextureObject(c);
398 status_t err = tex->reallocate(level,
403 tex->internalformat = format;
404 *outSurface = &tex->surface;
616 extern status_t buildAPyramid(ogles_context_t* c, EGLTextureObject* tex);
622 EGLTextureObject* tex = c->textures.tmu[active].texture;
623 if (tex->generate_mipmap) {
624 if (buildAPyramid(c, tex) != NO_ERROR) {
875 sp<EGLTextureObject> tex;
878 tex = c->textures.defaultTexture;
880 tex = c->surfaceManager->texture(texture);
881 if (ggl_unlikely(tex == 0)) {
882 tex = c->surfaceManager->createTexture(texture);
883 if (tex == 0) {
889 bindTextureTmu(c, c->textures.active, texture, tex);
918 sp<EGLTextureObject> tex(c->textures.defaultTexture);
919 bindTextureTmu(c, t, 0, tex);
1256 EGLTextureObject* tex = c->textures.tmu[active].texture;
1257 const GGLSurface& surface(tex->mip(level));
1259 if (!tex->internalformat || tex->direct) {
1264 if (format != tex->internalformat) {
1440 EGLTextureObject* tex = c->textures.tmu[active].texture;
1441 const GGLSurface& surface(tex->mip(level));
1443 if (!tex->internalformat) {
1629 sp<EGLTextureObject> tex = getAndBindActiveTextureObject(c);
1630 tex->setImage(native_buffer);