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