Searched defs:tex (Results 1 - 12 of 12) sorted by relevance

/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DTextureRenderTarget.java35 public TextureRenderTarget(Allocation tex) { argument
37 setTexture(tex);
40 public void setTexture(Allocation tex) { argument
41 mData.texture = tex;
H A DTexture2D.java39 public Texture2D(Allocation tex) { argument
41 setTexture(tex);
67 public void setTexture(Allocation tex) { argument
68 mData.texture = tex != null ? tex : SceneManager.getDefaultTex2D();
H A DTextureCube.java40 public TextureCube(Allocation tex) { argument
42 setTexture(tex);
68 public void setTexture(Allocation tex) { argument
69 mData.texture = tex != null ? tex : SceneManager.getDefaultTexCube();
H A DScene.java192 public void appendTextures(Texture2D tex) { argument
193 if (tex == null) {
196 mTextures.add(tex);
/frameworks/native/opengl/libagl/
H A Dmipmap.cpp30 status_t buildAPyramid(ogles_context_t* c, EGLTextureObject* tex) argument
33 const GGLSurface* base = &tex->surface;
47 if (tex->reallocate(level, w, h, w,
54 GGLSurface& cur = tex->editMip(level);
H A DTextureObjectManager.cpp283 sp<EGLTextureObject> tex; local
291 tex = old;
294 tex = new EGLTextureObject();
295 tex->copyParameters(old);
297 mTextures.add(name, tex);
300 return tex;
H A Dtexture.cpp33 ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex);
310 sp<EGLTextureObject> tex; local
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
342 bindTextureTmu( ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex) argument
385 EGLTextureObject* tex = c->textures.tmu[active].texture; local
396 sp<EGLTextureObject> tex = getAndBindActiveTextureObject(c); local
621 EGLTextureObject* tex = c->textures.tmu[active].texture; local
874 sp<EGLTextureObject> tex; local
[all...]
/frameworks/base/core/jni/android/graphics/
H A DSurfaceTexture.cpp234 static jint SurfaceTexture_attachToGLContext(JNIEnv* env, jobject thiz, jint tex) argument
237 return surfaceTexture->attachToContext((GLuint)tex);
/frameworks/native/opengl/tests/gl_perf/
H A Dfill_common.cpp267 static void doSingleTest(uint32_t pgmNum, int tex) { argument
281 glBindTexture(GL_TEXTURE_2D, tex);
283 glBindTexture(GL_TEXTURE_2D, tex);
294 sprintf(gCurrentTestName, "%s, %i, %i, 1", gFragmentTests[pgmNum]->name, pgmNum, tex);
/frameworks/rs/driver/
H A DrsdShader.cpp384 void RsdShader::setupSampler(const Context *rsc, const Sampler *s, const Allocation *tex) { argument
406 DrvAllocation *drvTex = (DrvAllocation *)tex->mHal.drv;
409 if (!dc->gl.gl.OES_texture_npot && tex->getType()->getIsNp2()) {
410 if (tex->getHasGraphicsMipmaps() &&
436 if (tex->getHasGraphicsMipmaps()) {
453 rsdGLCheckError(rsc, "Sampler::setup tex env");
492 rsdGLCheckError(rsc, "ProgramFragment::setup tex bind");
505 rsdGLCheckError(rsc, "ProgramFragment::setup tex env");
H A DrsdRuntimeStubs.cpp253 const float tex[] = {u1,v1, u2,v2, u3,v3, u4,v4}; local
257 attribs[1].set(GL_FLOAT, 2, 8, false, (uint32_t)tex, "ATTRIB_texture0");
/frameworks/native/libs/gui/
H A DSurfaceTexture.cpp116 SurfaceTexture::SurfaceTexture(GLuint tex, bool allowSynchronousMode, argument
122 mTexName(tex),
393 status_t SurfaceTexture::attachToContext(GLuint tex) { argument
424 glBindTexture(mTexTarget, tex);
460 mTexName = tex;

Completed in 138 milliseconds