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

12345

/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(Caches::getInstance()); 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
278 PathTexture* texture = createTexture(left, top, offset, width, height, local
285 generateTexture(const PathDescription& entry, SkBitmap* bitmap, PathTexture* texture, bool addToCache) argument
314 generateTexture(SkBitmap& bitmap, Texture* texture) argument
351 PathTexture* texture = t->texture; local
430 PathTexture* texture = mCache.get(entry); local
472 PathTexture* texture = mCache.get(entry); local
517 PathTexture* texture = get(entry); local
539 PathTexture* texture = get(entry); local
560 PathTexture* texture = get(entry); local
583 PathTexture* texture = get(entry); local
610 PathTexture* texture = get(entry); local
[all...]
H A DTextDropShadowCache.cpp150 void TextDropShadowCache::operator()(ShadowText& text, ShadowTexture*& texture) { argument
151 if (texture) {
152 mSize -= texture->bitmapSize;
155 ALOGD("Shadow texture deleted, size = %d", texture->bitmapSize);
158 texture->deleteTexture();
159 delete texture;
174 ShadowTexture* texture = mCache.get(entry); local
176 if (!texture) {
188 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 texture->deleteTexture();
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 DAssetAtlas.h41 * texture. Each bitmap is associated with a location, defined in pixels,
43 * an external texture using the EGLImageKHR extension.
70 * A "virtual texture" object that represents the texture
71 * this entry belongs to. This texture should never be
74 Texture* texture; member in struct:android::uirenderer::AssetAtlas::Entry
77 * Maps texture coordinates in the [0..1] range into the
92 return texture->blend ? &atlas.mBlendKey : &atlas.mOpaqueKey;
97 Texture* texture, const UvMapper& mapper, const AssetAtlas& atlas):
99 texture(textur
96 Entry(SkBitmap* bitmap, int x, int y, bool rotated, Texture* texture, const UvMapper& mapper, const AssetAtlas& atlas) argument
[all...]
H A DVertex.h26 * Simple structure to describe a vertex with a position and a texture.
56 * Simple structure to describe a vertex with a position and texture UV.
60 float texture[2]; member in struct:android::uirenderer::TextureVertex
65 vertex[0].texture[0] = u;
66 vertex[0].texture[1] = v;
70 vertex[0].texture[0] = u;
71 vertex[0].texture[1] = v;
76 * Simple structure to describe a vertex with a position, texture UV and ARGB color.
H A DAssetAtlas.cpp84 return index >= 0 ? mEntries.valueAt(index)->texture : NULL;
88 * Delegates changes to wrapping and filtering to the base atlas texture
128 Texture* texture = new DelegateTexture(caches, mTexture); local
129 texture->id = mTexture->id;
130 texture->blend = !bitmap->isOpaque();
131 texture->width = bitmap->width();
132 texture->height = bitmap->height();
134 Entry* entry = new Entry(bitmap, x, y, rotated, texture, mapper, *this);
135 texture->uvMapper = &entry->uvMapper;
H A DLayer.cpp32 caches(Caches::getInstance()), texture(caches) {
39 texture.width = layerWidth;
40 texture.height = layerHeight;
149 if (texture.id) {
150 caches.bindTexture(renderTarget, texture.id);
161 if (!texture.id) {
162 glGenTextures(1, &texture.id);
167 if (texture.id) {
168 texture.deleteTexture();
169 texture
[all...]
H A DLayer.h50 * A layer has dimensions and is backed by an OpenGL texture or FBO.
68 * texture coordinates.
75 const float texX = 1.0f / float(texture.width);
76 const float texY = 1.0f / float(texture.height);
95 return texture.width;
99 return texture.height;
103 * Resize the layer and its texture if needed.
114 texture.width = width;
115 texture.height = height;
121 texture
314 Texture texture; member in struct:android::uirenderer::Layer
[all...]
H A DOpenGLRenderer.cpp871 * texture. Unfortunately, this is inefficient as it requires every primitive to
885 * a layer is created, only a texture is created, not an FBO. The content of the
886 * frame buffer contained within the layer's bounds is copied into this texture
891 * To compose the layers back onto the frame buffer, each layer texture
959 // Unfortunately some drivers will turn the entire target texture black
993 // Bind texture to FBO
997 // Initialize the texture if needed
1043 // Detach the texture from the FBO
1125 setupDrawMesh(&mMeshVertices[0].position[0], &mMeshVertices[0].texture[0]);
1158 &mMeshVertices[0].position[0], &mMeshVertices[0].texture[
1948 setupDrawTexture(GLuint texture) argument
1954 setupDrawExternalTexture(GLuint texture) argument
2063 drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint) argument
2101 Texture* texture = entry ? entry->texture : mCaches.textureCache.get(bitmap); local
2140 Texture* texture = getTexture(bitmap); local
2163 Texture* texture = getTexture(bitmap); local
2190 Texture* texture = mCaches.textureCache.getTransient(bitmap); local
2230 Texture* texture = mCaches.assetAtlas.getEntryTexture(bitmap); local
2329 Texture* texture = getTexture(bitmap); local
2433 Texture* texture = entry ? entry->texture : mCaches.textureCache.get(bitmap); local
2492 Texture* texture = entry ? entry->texture : mCaches.textureCache.get(bitmap); local
2643 drawShape(float left, float top, const PathTexture* texture, SkPaint* paint) argument
2665 const PathTexture* texture = mCaches.pathCache.getRoundRect( local
2690 const PathTexture* texture = mCaches.pathCache.getCircle(radius, p); local
2712 const PathTexture* texture = mCaches.pathCache.getOval(right - left, bottom - top, p); local
2739 const PathTexture* texture = mCaches.pathCache.getArc(right - left, bottom - top, local
2774 const PathTexture* texture = local
3045 const PathTexture* texture = mCaches.pathCache.get(path, paint); local
3236 Texture* texture = mCaches.assetAtlas.getEntryTexture(bitmap); local
3243 drawPathTexture(const PathTexture* texture, float x, float y, SkPaint* paint) argument
3415 drawTextureRect(float left, float top, float right, float bottom, Texture* texture, SkPaint* paint) argument
3455 drawTextureRect(float left, float top, float right, float bottom, GLuint texture, float alpha, SkXfermode::Mode mode, bool blend) argument
3461 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
3486 drawIndexedTextureMesh(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
3511 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 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 DTexture.h29 * Represents an OpenGL texture.
55 * Convenience method to call glDeleteTextures() on this texture's id.
60 * Name of the texture.
68 * Indicates whether the texture requires blending.
80 * Indicates whether this texture should be cleaned up after use.
88 * Indicates whether this texture will use trilinear filtering.
93 * Optional, pointer to a texture coordinates mapper.
99 * Last wrap modes set on this texture. Defaults to GL_CLAMP_TO_EDGE.
105 * Last filters set on this texture. Defaults to GL_NEAREST.
118 AutoTexture(const Texture* texture) argument
[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...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java94 // Draws a texture to the specified rectangle.
96 BasicTexture texture, int x, int y, int width, int height);
101 // Draws the source rectangle part of the texture to the target rectangle.
102 public abstract void drawTexture(BasicTexture texture, RectF source, RectF target); argument
104 // Draw a texture with a specified texture transform.
105 public abstract void drawTexture(BasicTexture texture, float[] mTextureTransform, argument
108 // Draw two textures to the specified rectangle. The actual texture used is
114 // Draw a region of a texture and a specified color to the specified
116 // The region of the texture i
95 drawTexture( BasicTexture texture, int x, int y, int width, int height) argument
125 unloadTexture(BasicTexture texture) argument
137 beginRenderTarget(RawTexture texture) argument
149 setTextureParameters(BasicTexture texture) argument
158 initializeTextureSize(BasicTexture texture, int format, int type) argument
166 initializeTexture(BasicTexture texture, Bitmap bitmap) argument
179 texSubImage2D(BasicTexture texture, int xOffset, int yOffset, Bitmap bitmap, int format, int type) argument
[all...]
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/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;
/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();
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DTransformUtils.java67 TextureSource texture = frame.lockTextureSource();
68 texture.generateMipmaps();
73 TextureSource texture = frame.lockTextureSource();
74 texture.setParameter(param, value);
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DGLES20RenderEngine.cpp122 void GLES20RenderEngine::setupLayerTexturing(const Texture& texture) { argument
123 GLuint target = texture.getTextureTarget();
124 glBindTexture(target, texture.getTextureName());
126 if (texture.getFiltering()) {
134 mState.setTexture(texture);
139 Texture texture(Texture::TEXTURE_2D, mProtectedTexName);
140 texture.setDimensions(1, 1); // FIXME: we should get that from somewhere
141 mState.setTexture(texture);
156 // turn our EGLImage into a texture
215 // create the texture
[all...]
H A DDescription.cpp62 void Description::setTexture(const Texture& texture) { argument
63 mTexture = texture;
H A DGLES20RenderEngine.h46 GLuint texture; member in struct:android::GLES20RenderEngine::Group
70 virtual void setupLayerTexturing(const Texture& texture);
/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...]
/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...]

Completed in 391 milliseconds

12345