Lines Matching refs:textures
47 c->textures.packAlignment = 4;
48 c->textures.unpackAlignment = 4;
51 c->textures.defaultTexture = new EGLTextureObject();
52 c->textures.defaultTexture->incStrong(c);
56 bindTextureTmu(c, i, 0, c->textures.defaultTexture);
64 if (c->textures.ggl)
65 gglUninit(c->textures.ggl);
66 c->textures.defaultTexture->decStrong(c);
68 if (c->textures.tmu[i].texture)
69 c->textures.tmu[i].texture->decStrong(c);
76 texture_unit_t& u(c->textures.tmu[i]);
107 c->rasterizer.procs.activeTexture(c, c->textures.active);
112 c->textures.tmu[tmu].dirty = flags;
116 * If the active textures are EGLImage, they need to be locked before
127 texture_unit_t& u(c->textures.tmu[i]);
155 texture_unit_t& u(c->textures.tmu[i]);
172 c->rasterizer.procs.activeTexture(c, c->textures.active);
249 GGLContext* ggl = c->textures.ggl;
257 c->textures.ggl = ggl;
311 const int active = c->textures.active;
312 const GLuint name = c->textures.tmu[active].name;
315 texture_unit_t& u(c->textures.tmu[active]);
323 tex = c->textures.defaultTexture;
325 if (c->textures.tmu[i].texture == tex.get())
345 if (tex.get() == c->textures.tmu[tmu].texture)
349 texture_unit_t& u(c->textures.tmu[tmu]);
367 const int active = c->textures.active;
368 const GLuint name = c->textures.tmu[active].name;
378 const int32_t align = c->textures.unpackAlignment-1;
384 const int active = c->textures.active;
385 EGLTextureObject* tex = c->textures.tmu[active].texture;
620 const int active = c->textures.active;
621 EGLTextureObject* tex = c->textures.tmu[active].texture;
640 EGLTextureObject* textureObject = c->textures.tmu[c->textures.active].texture;
686 invalidate_texture(c, c->textures.active);
707 texture_unit_t& u(c->textures.tmu[i]);
744 c->rasterizer.procs.activeTexture(c, c->textures.active);
777 texture_unit_t& u(c->textures.tmu[tmu]);
798 c->rasterizer.procs.activeTexture(c, c->textures.active);
861 c->textures.active = texture - GL_TEXTURE0;
862 c->rasterizer.procs.activeTexture(c, c->textures.active);
877 tex = c->textures.defaultTexture;
888 bindTextureTmu(c, c->textures.active, texture, tex);
891 void glGenTextures(GLsizei n, GLuint *textures)
899 c->surfaceManager->getToken(n, textures);
902 void glDeleteTextures(GLsizei n, const GLuint *textures)
912 if (c->textures.tmu[t].name == 0)
915 if (textures[i] && (textures[i] == c->textures.tmu[t].name)) {
917 sp<EGLTextureObject> tex(c->textures.defaultTexture);
922 c->surfaceManager->deleteTextures(n, textures);
923 c->surfaceManager->recycleTokens(n, textures);
968 c->textures.packAlignment = param;
970 c->textures.unpackAlignment = param;
1019 EGLTextureObject* textureObject = c->textures.tmu[c->textures.active].texture;
1200 const int32_t align = c->textures.unpackAlignment-1;
1254 const int active = c->textures.active;
1255 EGLTextureObject* tex = c->textures.tmu[active].texture;
1284 const int32_t align = c->textures.unpackAlignment-1;
1392 // The bottom row is stored first in textures
1438 const int active = c->textures.active;
1439 EGLTextureObject* tex = c->textures.tmu[active].texture;
1452 // The bottom row is stored first in textures
1522 const int32_t align = c->textures.packAlignment-1;