/frameworks/base/libs/hwui/ |
TextDropShadowCache.cpp | 83 void TextDropShadowCache::operator()(ShadowText& text, ShadowTexture*& texture) { 84 if (texture) { 85 mSize -= texture->bitmapSize; 88 LOGD("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) { 113 texture = new ShadowTexture [all...] |
GradientCache.cpp | 38 mCache(GenerationCache<GradientCacheEntry, Texture*>::kUnlimitedCapacity), 52 mCache(GenerationCache<GradientCacheEntry, Texture*>::kUnlimitedCapacity), 84 void GradientCache::operator()(GradientCacheEntry& shader, Texture*& texture) { 85 if (texture) { 86 const uint32_t size = texture->width * texture->height * 4; 90 if (texture) { 91 glDeleteTextures(1, &texture->id); 92 delete texture; 104 Texture* texture = mCache.get(gradient); local 145 Texture* texture = new Texture; local [all...] |
TextureCache.cpp | 36 mCache(GenerationCache<SkBitmap*, Texture*>::kUnlimitedCapacity), 41 INIT_LOGD(" Setting texture cache size to %sMB", property); 44 INIT_LOGD(" Using default texture cache size of %.2fMB", DEFAULT_TEXTURE_CACHE_SIZE); 49 INIT_LOGD(" Setting texture cache flush rate to %.2f%%", flushRate * 100.0f); 52 INIT_LOGD(" Using default texture cache flush rate of %.2f%%", 60 mCache(GenerationCache<SkBitmap*, Texture*>::kUnlimitedCapacity), 73 INIT_LOGD(" Maximum texture dimension is %d pixels", mMaxTextureSize); 105 void TextureCache::operator()(SkBitmap*& bitmap, Texture*& texture) { 107 if (texture) { 124 Texture* texture = mCache.get(bitmap); local [all...] |
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 128 PathTexture* texture = get(entry); local [all...] |
Layer.h | 30 #include "Texture.h" 41 * A layer has dimensions and is backed by an OpenGL texture or FBO. 51 texture.width = layerWidth; 52 texture.height = layerHeight; 63 * texture coordinates. 70 const float texX = 1.0f / float(texture.width); 71 const float texY = 1.0f / float(texture.height); 81 return texture.width; 85 return texture.height; 89 texture.width = width 252 Texture texture; member in struct:android::uirenderer::Layer [all...] |
PathCache.cpp | 70 PathTexture* texture = mCache.get(entry); local 72 if (!texture) { 73 texture = addTexture(entry, path, paint); 74 } else if (path->getGenerationID() != texture->generation) { 76 texture = addTexture(entry, path, paint); 79 return texture;
|
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;
|
ShapeCache.h | 30 #include "Texture.h" 53 * Alpha texture used to represent a path. 55 struct PathTexture: public Texture { 56 PathTexture(): Texture() { 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); 344 void removeTexture(PathTexture* texture); 356 * Generates the texture from a bitmap into the specified texture structure 518 PathTexture* texture = new PathTexture; local [all...] |
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
TextureTest.java | 60 MyBasicTexture texture = new MyBasicTexture(canvas, 47); local 62 assertEquals(47, texture.getId()); 63 texture.setSize(1, 1); 64 assertEquals(1, texture.getWidth()); 65 assertEquals(1, texture.getHeight()); 66 assertEquals(1, texture.getTextureWidth()); 67 assertEquals(1, texture.getTextureHeight()); 68 texture.setSize(3, 5); 69 assertEquals(3, texture.getWidth()); 70 assertEquals(5, texture.getHeight()) 96 RawTexture texture = RawTexture.newInstance(canvas); local 113 ColorTexture texture = new ColorTexture(0x12345678); local 152 MyUploadedTexture texture = new MyUploadedTexture(); local 202 BitmapTexture texture = new BitmapTexture(bitmap); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/ |
Photo.java | 22 * Photo that holds a GL texture and all its methods must be only accessed from the GL thread. 26 private int texture; field in class:Photo 31 * Factory method to ensure every Photo instance holds a valid texture. 42 private Photo(int texture, int width, int height) { 43 this.texture = texture; 48 public int texture() { method in class:Photo 49 return texture; 59 RendererUtils.clearTexture(texture); 60 texture = RendererUtils.createTexture() [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/filters/ |
CrossProcessFilter.java | 37 src.texture(), src.width(), src.height(), dst.texture());
|
DocumentaryFilter.java | 37 src.texture(), src.width(), src.height(), dst.texture());
|
GrayscaleFilter.java | 37 src.texture(), src.width(), src.height(), dst.texture());
|
LomoishFilter.java | 37 src.texture(), src.width(), src.height(), dst.texture());
|
NegativeFilter.java | 37 src.texture(), src.width(), src.height(), dst.texture());
|
PosterizeFilter.java | 37 src.texture(), src.width(), src.height(), dst.texture());
|
SepiaFilter.java | 37 src.texture(), src.width(), src.height(), dst.texture());
|
AutoFixFilter.java | 35 effect.apply(src.texture(), src.width(), src.height(), dst.texture());
|
ColorTemperatureFilter.java | 36 effect.apply(src.texture(), src.width(), src.height(), dst.texture());
|
FaceTanFilter.java | 34 effect.apply(src.texture(), src.width(), src.height(), dst.texture());
|
FaceliftFilter.java | 34 effect.apply(src.texture(), src.width(), src.height(), dst.texture());
|
FillLightFilter.java | 35 effect.apply(src.texture(), src.width(), src.height(), dst.texture());
|
FisheyeFilter.java | 35 effect.apply(src.texture(), src.width(), src.height(), dst.texture());
|
/development/tools/emulator/opengl/tests/ut_renderer/ |
RendererContext.cpp | 44 void RendererContext::setActiveTexture(GLenum texture) 46 m_activeTexture = texture - GL_TEXTURE0; 49 void RendererContext::setTex2DBind(GLuint texture) 51 m_tex2DBind[m_activeTexture] = texture; 62 r->texture = m_tex2DBind[m_activeTexture];
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
VideoLayerChromium.cpp | 82 Texture texture = m_textures[plane]; local 83 if (!texture.isEmpty && texture.ownedByLayerRenderer) 84 GLC(context, context->deleteTexture(texture.id)); 126 // If the incoming frame is backed by a texture (i.e. decoded in hardware), 127 // then we do not need to allocate a texture via the layer renderer. Instead 128 // we save the texture data then exit. 147 // Update texture planes. 149 Texture texture = m_textures[plane] local 193 Texture texture = m_textures[plane]; local [all...] |