Searched defs:texture (Results 1 - 25 of 41) sorted by relevance

12

/frameworks/base/libs/hwui/
H A DVertex.h24 * Simple structure to describe a vertex with a position and a texture.
36 * Simple structure to describe a vertex with a position and a texture.
40 float texture[2]; member in struct:android::uirenderer::TextureVertex
45 vertex[0].texture[0] = u;
46 vertex[0].texture[1] = v;
50 vertex[0].texture[0] = u;
51 vertex[0].texture[1] = v;
H A DPathCache.cpp97 PathTexture* texture = mCache.get(entry); local
102 if (!texture) {
103 texture = addTexture(entry, path, paint);
104 } else if (path->getGenerationID() != texture->generation) {
106 texture = addTexture(entry, path, paint);
109 return texture;
H A DTextDropShadowCache.cpp83 void TextDropShadowCache::operator()(ShadowText& text, ShadowTexture*& texture) { argument
84 if (texture) {
85 mSize -= texture->bitmapSize;
88 ALOGD("Shadow texture deleted, size = %d", texture->bitmapSize);
91 glDeleteTextures(1, &texture->id);
92 delete texture;
107 ShadowTexture* texture = mCache.get(entry); local
109 if (!texture) {
115 texture
[all...]
H A DShapeCache.cpp35 PathTexture* texture = get(entry); local
37 if (!texture) {
43 texture = addTexture(entry, &path, paint);
46 return texture;
59 PathTexture* texture = get(entry); local
61 if (!texture) {
65 texture = addTexture(entry, &path, paint);
68 return texture;
81 PathTexture* texture = get(entry); local
83 if (!texture) {
105 PathTexture* texture = get(entry); local
147 PathTexture* texture = get(entry); local
[all...]
H A DTexture.h26 * Represents an OpenGL texture.
96 * Name of the texture.
104 * Indicates whether the texture requires blending.
116 * Indicates whether this texture should be cleaned up after use.
124 * Indicates whether this texture will use trilinear filtering.
130 * Last wrap modes set on this texture. Defaults to GL_CLAMP_TO_EDGE.
136 * Last filters set on this texture. Defaults to GL_NEAREST.
147 AutoTexture(const Texture* texture): mTexture(texture) { } argument
H A DTextureCache.cpp42 INIT_LOGD(" Setting texture cache size to %sMB", property);
45 INIT_LOGD(" Using default texture cache size of %.2fMB", DEFAULT_TEXTURE_CACHE_SIZE);
50 INIT_LOGD(" Setting texture cache flush rate to %.2f%%", flushRate * 100.0f);
53 INIT_LOGD(" Using default texture cache flush rate of %.2f%%",
74 INIT_LOGD(" Maximum texture dimension is %d pixels", mMaxTextureSize);
106 void TextureCache::operator()(SkBitmap*& bitmap, Texture*& texture) { argument
108 if (texture) {
109 mSize -= texture->bitmapSize;
111 texture->id, texture
125 Texture* texture = mCache.get(bitmap); local
165 Texture* texture = new Texture; local
212 generateTexture(SkBitmap* bitmap, Texture* texture, bool regenerate) argument
[all...]
H A DGradientCache.cpp98 void GradientCache::operator()(GradientCacheEntry& shader, Texture*& texture) { argument
99 if (texture) {
100 const uint32_t size = texture->width * texture->height * GRADIENT_BYTES_PER_PIXEL;
104 if (texture) {
105 glDeleteTextures(1, &texture->id);
106 delete texture;
117 Texture* texture = mCache.get(gradient); local
119 if (!texture) {
120 texture
156 Texture* texture = new Texture; local
176 generateTexture(uint32_t* colors, float* positions, int count, Texture* texture) argument
[all...]
H A DOpenGLRenderer.h503 * Draws the shape represented by the specified path texture.
505 * the extra left/top offset and the texture offset to correctly
510 * @param texture The texture reprsenting the shape
513 status_t drawShape(float left, float top, const PathTexture* texture, SkPaint* paint);
516 * Draws the specified texture as an alpha bitmap. Alpha bitmaps obey
519 * @param texture The texture to draw with
524 void drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint);
535 * Draws a textured rectangle with the specified texture
651 bindTexture(GLuint texture) argument
659 bindExternalTexture(GLuint texture) argument
[all...]
H A DLayer.h45 * A layer has dimensions and is backed by an OpenGL texture or FBO.
55 * texture coordinates.
62 const float texX = 1.0f / float(texture.width);
63 const float texY = 1.0f / float(texture.height);
82 return texture.width;
86 return texture.height;
90 texture.width = width;
91 texture.height = height;
97 texture.blend = blend;
101 return texture
284 Texture texture; member in struct:android::uirenderer::Layer
[all...]
H A DLayerRenderer.cpp230 // Initialize the texture if needed
236 ALOGD("Could not allocate texture for layer (fbo=%d %dx%d)",
273 LAYER_RENDERER_LOGD("Creating new texture layer");
372 GLuint texture; local
413 glGenTextures(1, &texture);
417 glBindTexture(GL_TEXTURE_2D, texture);
432 GL_TEXTURE_2D, texture, 0);
479 glDeleteTextures(1, &texture);
H A DSkiaShader.cpp89 void SkiaShader::bindTexture(Texture* texture, GLenum wrapS, GLenum wrapT) { argument
90 glBindTexture(GL_TEXTURE_2D, texture->id);
91 texture->setWrapST(wrapS, wrapT);
117 Texture* texture = mTextureCache->get(mBitmap); local
118 if (!texture) return;
119 mTexture = texture;
121 const float width = texture->width;
122 const float height = texture->height;
145 Texture* texture = mTexture; local
147 if (!texture) retur
232 Texture* texture = mGradientCache->get(mColors, mPositions, mCount); local
352 Texture* texture = mGradientCache->get(mColors, mPositions, mCount); local
[all...]
H A DShapeCache.h53 * Alpha texture used to represent a path.
304 * Any texture added to the cache causing the cache to grow beyond the maximum
305 * allowed size will also cause the oldest texture to be kicked out.
317 void operator()(Entry& path, PathTexture*& texture);
340 void addTexture(const Entry& entry, SkBitmap* bitmap, PathTexture* texture);
343 * Ensures there is enough space in the cache for a texture of the specified
357 void removeTexture(PathTexture* texture);
369 * Generates the texture from a bitmap into the specified texture structure.
371 void generateTexture(SkBitmap& bitmap, Texture* texture);
480 operator ()(Entry& path, PathTexture*& texture) argument
489 removeTexture(PathTexture* texture) argument
512 PathTexture* texture = new PathTexture; local
585 PathTexture* texture = createTexture(left, top, offset, width, height, path->getGenerationID()); local
592 addTexture(const Entry& entry, SkBitmap* bitmap, PathTexture* texture) argument
615 generateTexture(SkBitmap& bitmap, Texture* texture) argument
[all...]
H A DFontRenderer.cpp145 // Start from 1; don't deallocate smallest/default texture
181 // Now copy the bitmap into the cache texture
213 // Large-glyph texture memory is allocated only as needed
388 float x4, float y4, float u4, float v4, CacheTexture* texture) {
389 if (texture != mCurrentCacheTexture) {
391 // First, draw everything stored already which uses the previous texture
395 // Now use the new texture id
396 mCurrentCacheTexture = texture;
428 float x4, float y4, float u4, float v4, CacheTexture* texture) {
435 appendMeshQuadNoClip(x1, y1, u1, v1, x2, y2, u2, v2, x3, y3, u3, v3, x4, y4, u4, v4, texture);
386 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
426 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
450 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...]
/frameworks/base/opengl/java/android/opengl/
H A DETC1Util.java32 * Convenience method to load an ETC1 texture whether or not the active OpenGL context
33 * supports the ETC1 texture compression format.
34 * @param target the texture target.
35 * @param level the texture level
37 * @param fallbackFormat the format to use if ETC1 texture compression is not supported.
39 * @param fallbackType the type to use if ETC1 texture compression is not supported.
42 * @param input the input stream containing an ETC1 texture in PKM format.
52 * Convenience method to load an ETC1 texture whether or not the active OpenGL context
53 * supports the ETC1 texture compression format.
54 * @param target the texture targe
64 loadTexture(int target, int level, int border, int fallbackFormat, int fallbackType, ETC1Texture texture) argument
206 writeTexture(ETC1Texture texture, OutputStream output) argument
[all...]
/frameworks/rs/
H A DrsProgram.cpp58 uint32_t texture = 0; local
69 mHal.state.textureTargets[texture++] = (RsTextureTarget)params[ct+1];
170 ALOGE("Attempt to bind texture to slot %u but tex count is %u", slot, mHal.state.texturesCount);
171 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind texture");
176 ALOGE("Attempt to bind cubemap to slot %u but 2d texture needed", slot);
177 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind cubemap to 2d texture slot");
/frameworks/native/opengl/libagl/
H A DTextureObjectManager.cpp218 // check if the texture is complete
293 // keep the texture's parameters
315 sp<EGLTextureObject> EGLSurfaceManager::texture(GLuint name) function in class:android::EGLSurfaceManager
/frameworks/native/opengl/tests/gl_basic/
H A Dgl_basic.cpp21 GLuint texture; variable
328 glGenTextures(1, &texture);
329 glBindTexture(GL_TEXTURE_2D, texture);
/frameworks/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp14 GLuint texture; variable
129 glGenTextures(1, &texture);
130 glBindTexture(GL_TEXTURE_2D, texture);
/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp161 sp<GraphicBuffer> texture; member in class:Rectangle
320 layer->handle = it->texture->handle;
509 // Create source texture
510 rect.texture = new GraphicBuffer(rect.sourceDim.width(),
513 if ((rv = rect.texture->initCheck()) != NO_ERROR) {
514 testPrintE("source texture initCheck failed, rv: %i", rv);
520 hwcTestFillColor(rect.texture.get(), rect.color, rect.alpha);
524 rect.texture.get(), rect.texture->handle, format->desc,
/frameworks/native/opengl/tests/tritex/
H A Dtritex.cpp23 GLuint texture; variable
220 glGenTextures(1, &texture);
221 glBindTexture(GL_TEXTURE_2D, texture);
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp100 status_t BootAnimation::initTexture(Texture* texture, AssetManager& assets, argument
120 texture->w = w;
121 texture->h = h;
123 glGenTextures(1, &texture->name);
124 glBindTexture(GL_TEXTURE_2D, texture->name);
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp609 fprintf(stderr, " -T allocate buffers from a surface texture\n");
943 sp<SurfaceTexture> texture = new SurfaceTexture(0 /* tex */); local
944 gSurface = new SurfaceTextureClient(texture);
/frameworks/base/core/java/android/webkit/
H A DHTML5VideoViewProxy.java359 // When there is a frame ready from surface texture, we should tell WebView
605 // for the Video Layer's surface texture info
794 private native static boolean nativeSendSurfaceTexture(SurfaceTexture texture, argument
/frameworks/base/core/jni/
H A Dandroid_opengl_GLES11.cpp2302 /* GLboolean glIsTexture ( GLuint texture ) */
2305 (JNIEnv *_env, jobject _this, jint texture) {
2308 (GLuint)texture
2304 android_glIsTexture__I(JNIEnv *_env, jobject _this, jint texture) 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

Completed in 898 milliseconds

12