Lines Matching defs:tex

33     ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex);
310 sp<EGLTextureObject> tex;
323 tex = c->textures.defaultTexture;
325 if (c->textures.tmu[i].texture == tex.get())
330 tex = c->surfaceManager->replaceTexture(name);
335 u.texture = tex.get();
339 return tex;
343 ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex)
345 if (tex.get() == c->textures.tmu[tmu].texture)
355 u.texture = tex.get();
385 EGLTextureObject* tex = c->textures.tmu[active].texture;
386 status_t err = tex->reallocate(level,
390 GGLSurface& surface = tex->editMip(level);
396 sp<EGLTextureObject> tex = getAndBindActiveTextureObject(c);
397 status_t err = tex->reallocate(level,
402 tex->internalformat = format;
403 *outSurface = &tex->surface;
615 extern status_t buildAPyramid(ogles_context_t* c, EGLTextureObject* tex);
621 EGLTextureObject* tex = c->textures.tmu[active].texture;
622 if (tex->generate_mipmap) {
623 if (buildAPyramid(c, tex) != NO_ERROR) {
874 sp<EGLTextureObject> tex;
877 tex = c->textures.defaultTexture;
879 tex = c->surfaceManager->texture(texture);
880 if (ggl_unlikely(tex == 0)) {
881 tex = c->surfaceManager->createTexture(texture);
882 if (tex == 0) {
888 bindTextureTmu(c, c->textures.active, texture, tex);
917 sp<EGLTextureObject> tex(c->textures.defaultTexture);
918 bindTextureTmu(c, t, 0, tex);
1255 EGLTextureObject* tex = c->textures.tmu[active].texture;
1256 const GGLSurface& surface(tex->mip(level));
1258 if (!tex->internalformat || tex->direct) {
1263 if (format != tex->internalformat) {
1439 EGLTextureObject* tex = c->textures.tmu[active].texture;
1440 const GGLSurface& surface(tex->mip(level));
1442 if (!tex->internalformat) {
1628 sp<EGLTextureObject> tex = getAndBindActiveTextureObject(c);
1629 tex->setImage(native_buffer);