Searched defs:texture (Results 26 - 50 of 58) sorted by relevance

123

/frameworks/base/libs/hwui/
H A DCaches.cpp143 ALOGW("At least %d texture units are required!", REQUIRED_TEXTURE_UNITS_COUNT);
538 void Caches::bindTexture(GLuint texture) { argument
539 if (mBoundTextures[mTextureUnit] != texture) {
540 glBindTexture(GL_TEXTURE_2D, texture);
541 mBoundTextures[mTextureUnit] = texture;
545 void Caches::bindTexture(GLenum target, GLuint texture) { argument
547 bindTexture(texture);
552 glBindTexture(target, texture);
556 void Caches::deleteTexture(GLuint texture) { argument
557 // When glDeleteTextures() is called on a currently bound texture,
579 unbindTexture(GLuint texture) argument
[all...]
H A DLayer.h53 * A layer has dimensions and is backed by an OpenGL texture or FBO.
88 * texture coordinates.
95 const float texX = 1.0f / float(texture.width);
96 const float texY = 1.0f / float(texture.height);
113 return texture.width;
117 return texture.height;
121 * Resize the layer and its texture if needed.
132 texture.width = width;
133 texture.height = height;
139 texture
362 Texture texture; member in class:android::uirenderer::Layer
[all...]
H A DFontRenderer.cpp82 // uv attributes and increase the texture unit count
83 // texture binding will be performed by the font renderer as
189 // Start from 1; don't deallocate smallest/default texture
233 // choose an appropriate cache texture list for this glyph format
259 // Now copy the bitmap into the cache texture
291 // Large-glyph texture memory is allocated only as needed
478 // Reset to default unpack row length to avoid affecting texture
492 CacheTexture* texture = cacheTextures[i]; local
493 if (texture->canDraw()) {
496 TextSetupFunctor::Data functorData(texture
537 appendMeshQuadNoClip(float x1, float y1, float u1, float v1, float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, float x4, float y4, float u4, float v4, CacheTexture* texture) argument
549 appendMeshQuad(float x1, float y1, float u1, float v1, float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, float x4, float y4, float u4, float v4, CacheTexture* texture) argument
572 appendRotatedMeshQuad(float x1, float y1, float u1, float v1, float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, float x4, float y4, float u4, float v4, CacheTexture* texture) argument
[all...]
H A DOpenGLRenderer.h636 * Draws the shape represented by the specified path texture.
638 * the extra left/top offset and the texture offset to correctly
643 * @param texture The texture reprsenting the shape
646 status_t drawShape(float left, float top, const PathTexture* texture, const SkPaint* paint);
649 * Draws the specified texture as an alpha bitmap. Alpha bitmaps obey
652 * @param texture The texture to draw with
657 void drawAlphaBitmap(Texture* texture, float left, float top, const SkPaint* paint);
686 * Draws a textured rectangle with the specified texture
807 bindTexture(GLuint texture) argument
815 bindExternalTexture(GLuint texture) argument
938 getMapper(const Texture* texture) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DImageWallpaper.java140 "uniform sampler2D texture;\n" +
142 " gl_FragColor = texture2D(texture, outTexCoords);\n" +
496 final int texture = loadTexture(mBackground);
501 final int uniformTexture = glGetUniformLocation(program, "texture");
507 glBindTexture(GL_TEXTURE_2D, texture);
536 finishGL(texture, program);
564 int texture = textures[0];
565 glBindTexture(GL_TEXTURE_2D, texture);
577 return texture;
643 private void finishGL(int texture, in argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DRenderTarget.java103 public RenderTarget forTexture(TextureSource texture, int width, int height) { argument
104 // NOTE: We do not need to lookup any previous bindings of this texture to an FBO, as
105 // multiple FBOs to a single texture is valid.
111 texture.getTarget(),
112 texture.getTextureId(),
H A DImageShader.java242 public static void renderTextureToTarget(TextureSource texture, argument
247 shader.process(texture, target, width, height);
277 public void process(TextureSource texture, RenderTarget target, int width, int height) { argument
278 processMulti(new TextureSource[] { texture }, target, width, height);
612 // Activate texture unit i
615 // Bind texture
618 // Assign the texture uniform in the shader to unit i
627 GLToolbox.checkGlError("Binding input texture " + i);
683 + "maximum number of allowed texture units (" + maxTextureUnits() + ")!");
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp609 fprintf(stderr, " -T allocate buffers from a surface texture\n");
945 sp<GLConsumer> texture = new GLConsumer(consumer, 0 /* tex */, local
/frameworks/base/core/jni/
H A Dandroid_opengl_GLES11.cpp2287 /* GLboolean glIsTexture ( GLuint texture ) */
2290 (JNIEnv *_env, jobject _this, jint texture) {
2293 (GLuint)texture
2289 android_glIsTexture__I(JNIEnv *_env, jobject _this, jint texture) argument
H A Dandroid_opengl_GLES31.cpp2665 /* void glBindImageTexture ( GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format ) */
2668 (JNIEnv *_env, jobject _this, jint unit, jint texture, jint level, jboolean layered, jint layer, jint access, jint format) {
2671 (GLuint)texture,
2667 android_glBindImageTexture__IIIZIII(JNIEnv *_env, jobject _this, jint unit, jint texture, jint level, jboolean layered, jint layer, jint access, jint format) argument
H A Dandroid_opengl_GLES31Ext.cpp720 /* void glFramebufferTextureEXT ( GLenum target, GLenum attachment, GLuint texture, GLint level ) */
723 (JNIEnv *_env, jobject _this, jint target, jint attachment, jint texture, jint level) {
727 (GLuint)texture,
722 android_glFramebufferTextureEXT__IIII(JNIEnv *_env, jobject _this, jint target, jint attachment, jint texture, jint level) argument
H A Dandroid_opengl_GLES10.cpp327 /* void glActiveTexture ( GLenum texture ) */
330 (JNIEnv *_env, jobject _this, jint texture) {
332 (GLenum)texture
356 /* void glBindTexture ( GLenum target, GLuint texture ) */
359 (JNIEnv *_env, jobject _this, jint target, jint texture) {
362 (GLuint)texture
436 /* void glClientActiveTexture ( GLenum texture ) */
439 (JNIEnv *_env, jobject _this, jint texture) {
441 (GLenum)texture
329 android_glActiveTexture__I(JNIEnv *_env, jobject _this, jint texture) argument
358 android_glBindTexture__II(JNIEnv *_env, jobject _this, jint target, jint texture) argument
438 android_glClientActiveTexture__I(JNIEnv *_env, jobject _this, jint texture) argument
H A Dandroid_opengl_GLES11Ext.cpp2640 /* void glFramebufferTexture2DOES ( GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level ) */
2643 (JNIEnv *_env, jobject _this, jint target, jint attachment, jint textarget, jint texture, jint level) {
2648 (GLuint)texture,
2642 android_glFramebufferTexture2DOES__IIIII(JNIEnv *_env, jobject _this, jint target, jint attachment, jint textarget, jint texture, jint level) argument
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
H A DGL11ExtensionPack.java122 int texture
204 int texture,
200 glFramebufferTexture2DOES( int target, int attachment, int textarget, int texture, int level ) argument
/frameworks/native/opengl/libagl/
H A Darray.cpp27 #include "texture.h"
114 c->arrays.texture[i].size = 4;
115 c->arrays.texture[i].type = GL_FLOAT;
146 memcpy(v, c->current.texture[c->arrays.tmu].v, sizeof(vec4_t));
441 case GL_TEXTURE_COORD_ARRAY: a = &c->arrays.texture[tmu]; break;
1058 if (c->rasterizer.state.texture[i].enable)
1059 clipVec4(nv->texture[i], t, s->texture[i], p->texture[i]);
1124 if (enables & GGL_ENABLE_TMUS) { // needs texture transform
1335 glClientActiveTexture(GLenum texture) argument
[all...]
H A Dtexture.cpp1 /* libs/opengles/texture.cpp
23 #include "texture.h"
33 ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex);
50 // each context has a default named (0) texture (not shared)
54 // bind the default texture to each texture unit
57 memset(c->current.texture[i].v, 0, sizeof(vec4_t));
58 c->current.texture[i].Q = 0x10000;
68 if (c->textures.tmu[i].texture)
69 c->textures.tmu[i].texture
342 bindTextureTmu( ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex) argument
854 glActiveTexture(GLenum texture) argument
865 glBindTexture(GLenum target, GLuint texture) argument
[all...]
H A Dcontext.h124 TT = 0x8000, // texture coords transformed
149 vec4_t texture[GGL_TEXTURE_UNIT_COUNT]; member in struct:android::gl::vertex_t
204 array_t texture[GGL_TEXTURE_UNIT_COUNT]; member in struct:android::gl::array_machine_t
353 EGLTextureObject* texture; member in struct:android::gl::texture_unit_t
497 matrix_stack_t texture[GGL_TEXTURE_UNIT_COUNT]; member in struct:android::gl::transform_state_t
/frameworks/base/opengl/java/android/opengl/
H A DGLES11Ext.java833 // C function void glFramebufferTexture2DOES ( GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level )
839 int texture,
835 glFramebufferTexture2DOES( int target, int attachment, int textarget, int texture, int level ) argument
H A DGLES31.java943 // C function void glBindImageTexture ( GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format )
947 int texture,
945 glBindImageTexture( int unit, int texture, int level, boolean layered, int layer, int access, int format ) argument
H A DGLES31Ext.java495 // C function void glFramebufferTextureEXT ( GLenum target, GLenum attachment, GLuint texture, GLint level )
500 int texture,
497 glFramebufferTextureEXT( int target, int attachment, int texture, int level ) argument
H A DGLErrorWrapper.java70 public void glActiveTexture(int texture) { argument
72 mgl.glActiveTexture(texture);
88 public void glBindTexture(int target, int texture) { argument
90 mgl.glBindTexture(target, texture);
136 public void glClientActiveTexture(int texture) { argument
138 mgl.glClientActiveTexture(texture);
1225 public boolean glIsTexture(int texture) { argument
1227 boolean valid = mgl11.glIsTexture(texture);
1462 int textarget, int texture, int level) {
1464 mgl11ExtensionPack.glFramebufferTexture2DOES(target, attachment, textarget, texture, leve
1461 glFramebufferTexture2DOES(int target, int attachment, int textarget, int texture, int level) argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLES20Canvas.java153 // Screen size for when we aren't bound to a texture
173 // Handle indices -- texture
253 // texture.
582 public void drawTexture(BasicTexture texture, int x, int y, int width, int height) { argument
586 copyTextureCoordinates(texture, mTempSourceRect);
588 convertCoordinate(mTempSourceRect, mTempTargetRect, texture);
589 drawTextureRect(texture, mTempSourceRect, mTempTargetRect);
592 private static void copyTextureCoordinates(BasicTexture texture, RectF outRect) { argument
595 int right = texture.getWidth();
596 int bottom = texture
607 drawTexture(BasicTexture texture, RectF source, RectF target) argument
619 drawTexture(BasicTexture texture, float[] textureTransform, int x, int y, int w, int h) argument
628 drawTextureRect(BasicTexture texture, RectF source, RectF target) argument
643 convertCoordinate(RectF source, RectF target, BasicTexture texture) argument
667 drawTextureRect(BasicTexture texture, float[] textureMatrix, RectF target) argument
686 prepareTexture(BasicTexture texture) argument
700 prepareTexture(BasicTexture texture, int program, ShaderParameter[] params) argument
716 drawMesh(BasicTexture texture, int x, int y, int xyBuffer, int uvBuffer, int indexBuffer, int indexCount) argument
758 drawMixed(BasicTexture texture, int toColor, float ratio, int x, int y, int w, int h) argument
765 drawMixed(BasicTexture texture, int toColor, float ratio, RectF source, RectF target) argument
786 unloadTexture(BasicTexture texture) argument
840 beginRenderTarget(RawTexture texture) argument
851 setRenderTarget(BasicTexture oldTexture, RawTexture texture) argument
904 setTextureParameters(BasicTexture texture) argument
915 initializeTextureSize(BasicTexture texture, int format, int type) argument
925 initializeTexture(BasicTexture texture, Bitmap bitmap) argument
933 texSubImage2D(BasicTexture texture, int xOffset, int yOffset, Bitmap bitmap, int format, int type) argument
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcCommit.cpp1411 // Allocate the texture for the source frame
1414 sp<GraphicBuffer> texture; local
1415 texture = new GraphicBuffer(it->sourceDim.width(),
1418 buffers.push_back(texture);
1420 layer->handle = texture->handle;
/frameworks/base/opengl/java/com/google/android/gles_jni/
H A DGLImpl.java87 // C function void glActiveTexture ( GLenum texture )
90 int texture
107 // C function void glBindTexture ( GLenum target, GLuint texture )
111 int texture
163 // C function void glClientActiveTexture ( GLenum texture )
166 int texture
1535 // C function GLboolean glIsTexture ( GLuint texture )
1538 int texture
1984 // C function void glFramebufferTexture2DOES ( GLint target, GLint attachment, GLint textarget, GLint texture, GLint level )
1990 int texture,
1986 glFramebufferTexture2DOES( int target, int attachment, int textarget, int texture, int level ) argument
[all...]
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlinger.cpp301 void SurfaceFlinger::deleteTextureAsync(uint32_t texture) { argument
304 uint32_t texture; member in class:android::MessageDestroyGLTexture
306 MessageDestroyGLTexture(RenderEngine& engine, uint32_t texture) argument
307 : engine(engine), texture(texture) {
310 engine.deleteTextures(1, &texture);
314 postMessageAsync(new MessageDestroyGLTexture(getRenderEngine(), texture));
1421 // the hint is set before we acquire a buffer from the surface texture.
3226 // turn it into a texture

Completed in 586 milliseconds

123