/frameworks/base/libs/hwui/ |
H A D | TextDropShadowCache.cpp | 83 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 D | TextureCache.cpp | 42 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 D | ShapeCache.cpp | 35 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 D | GradientCache.cpp | 98 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 D | Layer.h | 45 * 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 D | Vertex.h | 24 * 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 D | ShapeCache.h | 53 * 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 D | PathCache.cpp | 97 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 D | Layer.cpp | 37 texture.width = layerWidth; 38 texture.height = layerHeight;
|
H A D | TextureCache.h | 48 * 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 D | SkiaShader.cpp | 89 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 D | OpenGLRenderer.cpp | 643 * texture. Unfortunately, this is inefficient as it requires every primitive to 657 * a layer is created, only a texture is created, not an FBO. The content of the 658 * frame buffer contained within the layer's bounds is copied into this texture 663 * To compose the layers back onto the frame buffer, each layer texture 797 // Bind texture to FBO 801 // Initialize the texture if needed 841 // Detach the texture from the FBO 934 setupDrawMesh(&mMeshVertices[0].position[0], &mMeshVertices[0].texture[0]); 968 &mMeshVertices[0].position[0], &mMeshVertices[0].texture[0], 1023 setupDrawMeshIndices(&mesh[0].position[0], &mesh[0].texture[ 1508 setupDrawTexture(GLuint texture) argument 1514 setupDrawExternalTexture(GLuint texture) argument 1619 drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint) argument 1672 Texture* texture = mCaches.textureCache.get(bitmap); local 1695 Texture* texture = mCaches.textureCache.get(bitmap); local 1718 Texture* texture = mCaches.textureCache.getTransient(bitmap); local 1783 Texture* texture = mCaches.textureCache.get(bitmap); local 1814 Texture* texture = mCaches.textureCache.get(bitmap); local 1883 Texture* texture = mCaches.textureCache.get(bitmap); local 2340 drawShape(float left, float top, const PathTexture* texture, SkPaint* paint) argument 2361 const PathTexture* texture = mCaches.roundRectShapeCache.getRoundRect( local 2387 const PathTexture* texture = mCaches.circleShapeCache.getCircle(radius, p); local 2410 const PathTexture* texture = mCaches.ovalShapeCache.getOval(right - left, bottom - top, p); local 2438 const PathTexture* texture = mCaches.arcShapeCache.getArc(right - left, bottom - top, local 2474 const PathTexture* texture = local 2773 const PathTexture* texture = mCaches.pathCache.get(path, paint); local 2947 drawPathTexture(const PathTexture* texture, float x, float y, SkPaint* paint) argument 3054 drawTextureRect(float left, float top, float right, float bottom, Texture* texture, SkPaint* paint) argument 3078 drawTextureRect(float left, float top, float right, float bottom, GLuint texture, float alpha, SkXfermode::Mode mode, bool blend) argument 3084 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 [all...] |
H A D | OpenGLRenderer.h | 503 * 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 D | GradientCache.h | 98 * Any texture added to the cache causing the cache to grow beyond the maximum 99 * allowed size will also cause the oldest texture to be kicked out. 111 void operator()(GradientCacheEntry& shader, Texture*& texture); 114 * Returns the texture associated with the specified shader. 138 * Adds a new linear gradient to the cache. The generated texture is 144 void generateTexture(uint32_t* colors, float* positions, int count, Texture* texture);
|
H A D | Texture.h | 26 * 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
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | TextureRenderTarget.java | 41 mData.texture = tex; 43 mField.set_texture(0, mData.texture, true);
|
H A D | Texture2D.java | 68 mData.texture = tex != null ? tex : SceneManager.getDefaultTex2D(); 70 mField.set_texture(0, mData.texture, true); 101 mData.texture = SceneManager.getDefaultTex2D();
|
H A D | TextureCube.java | 69 mData.texture = tex != null ? tex : SceneManager.getDefaultTexCube(); 71 mField.set_texture(0, mData.texture, true); 102 mData.texture = SceneManager.getDefaultTexCube();
|
H A D | TextureParam.java | 59 mData.texture = mTexture.getRsData(false).getAllocation();
|
/frameworks/native/opengl/libagl/ |
H A D | texture.cpp | 1 /* 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 D | primitives.cpp | 394 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 D | ETC1Util.java | 32 * 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 D | TrackingPatternView.java | 49 final Bitmap texture = mTexture; 64 canvas.drawBitmap(texture, x, y, paint);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | AdvancedBlendActivity.java | 63 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 D | MoreShadersActivity.java | 64 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 65 mTexWidth = texture.getWidth(); 66 mTexHeight = texture.getHeight(); 70 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR, 76 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR,
|