Searched refs:texture (Results 1 - 25 of 86) sorted by relevance

1234

/frameworks/base/libs/hwui/
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 DPathCache.cpp118 // will be applied later when compositing the alpha8 texture
142 PathTexture* texture = new PathTexture(); local
143 texture->left = left;
144 texture->top = top;
145 texture->offset = offset;
146 texture->width = width;
147 texture->height = height;
148 texture->generation = id;
149 return texture;
206 void PathCache::operator()(PathDescription& entry, PathTexture*& texture) { argument
214 removeTexture(PathTexture* texture) argument
263 PathTexture* texture = createTexture(left, top, offset, width, height, local
270 generateTexture(const PathDescription& entry, SkBitmap* bitmap, PathTexture* texture, bool addToCache) argument
294 generateTexture(SkBitmap& bitmap, Texture* texture) argument
331 PathTexture* texture = t->texture; local
407 PathTexture* texture = mCache.get(entry); local
449 PathTexture* texture = mCache.get(entry); local
494 PathTexture* texture = get(entry); local
516 PathTexture* texture = get(entry); local
537 PathTexture* texture = get(entry); local
560 PathTexture* texture = get(entry); local
587 PathTexture* texture = get(entry); local
[all...]
H A DTextDropShadowCache.cpp149 void TextDropShadowCache::operator()(ShadowText& text, ShadowTexture*& texture) { argument
150 if (texture) {
151 mSize -= texture->bitmapSize;
154 ALOGD("Shadow texture deleted, size = %d", texture->bitmapSize);
157 glDeleteTextures(1, &texture->id);
158 delete texture;
173 ShadowTexture* texture = mCache.get(entry); local
175 if (!texture) {
185 texture
[all...]
H A DGradientCache.cpp118 void GradientCache::operator()(GradientCacheEntry& shader, Texture*& texture) { argument
119 if (texture) {
120 const uint32_t size = texture->width * texture->height * bytesPerPixel();
123 glDeleteTextures(1, &texture->id);
124 delete texture;
134 Texture* texture = mCache.get(gradient); local
136 if (!texture) {
137 texture = addLinearGradient(gradient, colors, positions, count);
140 return texture;
176 Texture* texture = new Texture; local
241 generateTexture(uint32_t* colors, float* positions, int count, Texture* texture) argument
[all...]
H A DLayer.h49 * A layer has dimensions and is backed by an OpenGL texture or FBO.
67 * texture coordinates.
74 const float texX = 1.0f / float(texture.width);
75 const float texY = 1.0f / float(texture.height);
94 return texture.width;
98 return texture.height;
102 * Resize the layer and its texture if needed.
113 texture.width = width;
114 texture.height = height;
120 texture
342 Texture texture; member in struct:android::uirenderer::Layer
[all...]
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 texture UV.
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;
56 * Simple structure to describe a vertex with a position, texture UV and ARGB color.
H A DPathCache.h58 * Alpha texture used to represent a path.
178 * Any texture added to the cache causing the cache to grow beyond the maximum
179 * allowed size will also cause the oldest texture to be kicked out.
190 void operator()(PathDescription& path, PathTexture*& texture);
258 * Generates the texture from a bitmap into the specified texture structure.
260 void generateTexture(SkBitmap& bitmap, Texture* texture);
261 void generateTexture(const PathDescription& entry, SkBitmap* bitmap, PathTexture* texture,
275 * Ensures there is enough space in the cache for a texture of the specified
280 void removeTexture(PathTexture* texture);
295 PathTask(SkPath* path, SkPaint* paint, PathTexture* texture) argument
305 PathTexture* texture; member in class:android::uirenderer::PathCache::PathTask
[all...]
H A DTextureCache.h48 * A simple LRU texture cache. The cache has a maximum size expressed in bytes.
49 * Any texture added to the cache causing the cache to grow beyond the maximum
50 * allowed size will also cause the oldest texture to be kicked out.
62 void operator()(SkBitmap*& bitmap, Texture*& texture);
65 * Returns the texture associated with the specified bitmap. If the texture
66 * cannot be found in the cache, a new texture is generated.
70 * Returns the texture associated with the specified bitmap. The generated
71 * texture is not kept in the cache. The caller must destroy the texture
[all...]
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 DOpenGLRenderer.cpp799 * texture. Unfortunately, this is inefficient as it requires every primitive to
813 * a layer is created, only a texture is created, not an FBO. The content of the
814 * frame buffer contained within the layer's bounds is copied into this texture
819 * To compose the layers back onto the frame buffer, each layer texture
887 // Unfortunately some drivers will turn the entire target texture black
921 // Bind texture to FBO
925 // Initialize the texture if needed
967 // Detach the texture from the FBO
1049 setupDrawMesh(&mMeshVertices[0].position[0], &mMeshVertices[0].texture[0]);
1084 &mMeshVertices[0].position[0], &mMeshVertices[0].texture[
1856 setupDrawTexture(GLuint texture) argument
1862 setupDrawExternalTexture(GLuint texture) argument
1963 drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint) argument
1998 Texture* texture = mCaches.textureCache.get(bitmap); local
2036 Texture* texture = mCaches.textureCache.get(bitmap); local
2059 Texture* texture = mCaches.textureCache.get(bitmap); local
2086 Texture* texture = mCaches.textureCache.getTransient(bitmap); local
2161 Texture* texture = mCaches.textureCache.get(bitmap); local
2217 Texture* texture = mCaches.textureCache.get(bitmap); local
2323 Texture* texture = mCaches.textureCache.get(bitmap); local
2543 drawShape(float left, float top, const PathTexture* texture, SkPaint* paint) argument
2565 const PathTexture* texture = mCaches.pathCache.getRoundRect( local
2590 const PathTexture* texture = mCaches.pathCache.getCircle(radius, p); local
2612 const PathTexture* texture = mCaches.pathCache.getOval(right - left, bottom - top, p); local
2639 const PathTexture* texture = mCaches.pathCache.getArc(right - left, bottom - top, local
2674 const PathTexture* texture = local
3020 const PathTexture* texture = mCaches.pathCache.get(path, paint); local
3202 drawPathTexture(const PathTexture* texture, float x, float y, SkPaint* paint) argument
3387 drawTextureRect(float left, float top, float right, float bottom, Texture* texture, SkPaint* paint) argument
3411 drawTextureRect(float left, float top, float right, float bottom, GLuint texture, float alpha, SkXfermode::Mode mode, bool blend) argument
3417 drawTextureMesh(float left, float top, float right, float bottom, GLuint texture, float alpha, SkXfermode::Mode mode, bool blend, GLvoid* vertices, GLvoid* texCoords, GLenum drawMode, GLsizei elementsCount, bool swapSrcDst, bool ignoreTransform, GLuint vbo, bool ignoreScale, bool dirty) argument
3444 drawAlpha8TextureMesh(float left, float top, float right, float bottom, GLuint texture, bool hasColor, int color, int alpha, SkXfermode::Mode mode, GLvoid* vertices, GLvoid* texCoords, GLenum drawMode, GLsizei elementsCount, bool ignoreTransform, bool ignoreScale, bool dirty) argument
[all...]
H A DOpenGLRenderer.h702 * Draws the shape represented by the specified path texture.
704 * the extra left/top offset and the texture offset to correctly
709 * @param texture The texture reprsenting the shape
712 status_t drawShape(float left, float top, const PathTexture* texture, SkPaint* paint);
715 * Draws the specified texture as an alpha bitmap. Alpha bitmaps obey
718 * @param texture The texture to draw with
723 void drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint);
744 * Draws a textured rectangle with the specified texture
870 bindTexture(GLuint texture) argument
878 bindExternalTexture(GLuint texture) argument
[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 DFontRenderer.cpp139 // Start from 1; don't deallocate smallest/default texture
186 // Now copy the bitmap into the cache texture
218 // Large-glyph texture memory is allocated only as needed
394 // Reset to default unpack row length to avoid affecting texture
411 CacheTexture* texture = mCacheTextures[i]; local
412 if (texture->canDraw()) {
430 glBindTexture(GL_TEXTURE_2D, texture->getTextureId());
431 texture->setLinearFiltering(mLinearFiltering, false);
433 TextureVertex* mesh = texture->mesh();
435 caches.bindTexCoordsVertexPointer(force, &mesh[0].texture[
448 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
460 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
483 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/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DAlpha8BitmapActivity.java49 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.spot_mask);
50 mBitmap1 = Bitmap.createBitmap(texture.getWidth(), texture.getHeight(),
53 canvas.drawBitmap(texture, 0.0f, 0.0f, null);
55 texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1);
56 BitmapShader shader = new BitmapShader(texture,
59 final float width = texture.getWidth() / 3.0f;
60 final float height = texture.getHeight() / 3.0f;
H A DAdvancedBlendActivity.java63 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1);
64 mTexWidth = texture.getWidth();
65 mTexHeight = texture.getHeight();
69 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR,
75 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR,
H A DMoreShadersActivity.java65 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1);
66 mTexWidth = texture.getWidth();
67 mTexHeight = texture.getHeight();
71 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR,
77 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR,
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DTextureRenderTarget.java41 mData.texture = tex;
43 mField.set_texture(0, mData.texture, true);
H A DTexture2D.java68 mData.texture = tex != null ? tex : SceneManager.getDefaultTex2D();
70 mField.set_texture(0, mData.texture, true);
101 mData.texture = SceneManager.getDefaultTex2D();
H A DTextureCube.java69 mData.texture = tex != null ? tex : SceneManager.getDefaultTexCube();
71 mField.set_texture(0, mData.texture, true);
102 mData.texture = SceneManager.getDefaultTexCube();
H A DTextureParam.java59 mData.texture = mTexture.getRsData(false).getAllocation();
/frameworks/native/opengl/libagl/
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 Dprimitives.cpp394 array_t const * const texcoordArray = c->arrays.texture;
397 if (!(c->rasterizer.state.texture[i].enable))
409 vec4_t& coords = v->texture[i];
414 // transform texture coordinates...
416 const transform_t& tr = c->transforms.texture[i].transform;
442 // Fetch & transform texture coordinates...
486 if (!c->rasterizer.state.texture[i].enable)
491 if (c->rasterizer.state.texture[i].s_wrap == GGL_CLAMP) {
492 int width = c->textures.tmu[i].texture->surface.width;
493 itt[0] = v->texture[
[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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DTrackingPatternView.java49 final Bitmap texture = mTexture;
64 canvas.drawBitmap(texture, x, y, paint);
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A DCarouselRS.java131 * Called when the detail texture for a card is tapped
142 * @param detailCoordinates position of detail texture, in screen coordinates
147 * Called when texture is needed for card n. This happens when the given card becomes
154 * Called when a texture is no longer needed for card n. This happens when the card
161 * Called when detail texture is needed for card n. This happens when the given card
168 * Called when a detail texture is no longer needed for card n. This happens when the card
373 // Single texture program
385 // Single texture program, plus blending
402 // Multi texture program
419 // Multi texture progra
[all...]

Completed in 339 milliseconds

1234