/frameworks/base/libs/hwui/ |
H A D | 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;
|
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.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...] |
H A D | TextDropShadowCache.cpp | 83 void TextDropShadowCache::operator()(ShadowText& text, ShadowTexture*& texture) { argument 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 [all...] |
H A D | Texture.h | 26 * Represents an OpenGL texture. 80 * Name of the texture. 88 * Indicates whether the texture requires blending. 100 * Indicates whether this texture should be cleaned up after use. 109 * Last wrap modes set on this texture. Defaults to GL_CLAMP_TO_EDGE. 115 * Last filters set on this texture. Defaults to GL_NEAREST. 127 AutoTexture(const Texture* texture): mTexture(texture) { } argument
|
H A D | GradientCache.cpp | 84 void GradientCache::operator()(GradientCacheEntry& shader, Texture*& texture) { argument 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 106 if (!texture) { 107 texture 145 Texture* texture = new Texture; local 154 generateTexture(SkBitmap* bitmap, Texture* texture) argument [all...] |
H A D | TextureCache.cpp | 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%%", 73 INIT_LOGD(" Maximum texture dimension is %d pixels", mMaxTextureSize); 105 void TextureCache::operator()(SkBitmap*& bitmap, Texture*& texture) { argument 107 if (texture) { 108 mSize -= texture->bitmapSize; 110 texture->id, texture 124 Texture* texture = mCache.get(bitmap); local 200 generateTexture(SkBitmap* bitmap, Texture* texture, bool regenerate) argument [all...] |
H A D | LayerRenderer.cpp | 213 // Initialize the texture if needed 219 LOGD("Could not allocate texture for layer (fbo=%d %dx%d)", 264 LAYER_RENDERER_LOGD("Creating new texture layer"); 347 GLuint texture; local 385 glGenTextures(1, &texture); 389 glBindTexture(GL_TEXTURE_2D, texture); 402 GL_TEXTURE_2D, texture, 0); 449 glDeleteTextures(1, &texture);
|
H A D | OpenGLRenderer.h | 297 * Draws the shape represented by the specified path texture. 299 * the extra left/top offset and the texture offset to correctly 304 * @param texture The texture reprsenting the shape 307 void drawShape(float left, float top, const PathTexture* texture, SkPaint* paint); 311 * This will render the rect using a path texture, which is used to render 323 * Draws the specified texture as an alpha bitmap. Alpha bitmaps obey 326 * @param texture The texture to draw with 331 void drawAlphaBitmap(Texture* texture, floa 455 bindTexture(GLuint texture) argument 463 bindExternalTexture(GLuint texture) argument [all...] |
H A D | Layer.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; 90 texture 252 Texture texture; member in struct:android::uirenderer::Layer [all...] |
H A D | SkiaShader.cpp | 78 void SkiaShader::bindTexture(Texture* texture, GLenum wrapS, GLenum wrapT) { argument 79 glBindTexture(GL_TEXTURE_2D, texture->id); 80 texture->setWrap(wrapS, wrapT); 106 Texture* texture = mTextureCache->get(mBitmap); local 107 if (!texture) return; 108 mTexture = texture; 110 const float width = texture->width; 111 const float height = texture->height; 134 Texture* texture = mTexture; local 136 if (!texture) retur 228 Texture* texture = mGradientCache->get(mColors, mPositions, mCount, mTileX); local 340 Texture* texture = mGradientCache->get(mColors, mPositions, mCount); local [all...] |
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); 344 void removeTexture(PathTexture* texture); 356 * Generates the texture from a bitmap into the specified texture structure. 358 void generateTexture(SkBitmap& bitmap, Texture* texture); 467 void ShapeCache<Entry>::operator()(Entry& path, PathTexture*& texture) { argument 468 removeTexture(texture); 476 removeTexture(PathTexture* texture) argument 518 PathTexture* texture = new PathTexture; local 570 generateTexture(SkBitmap& bitmap, Texture* texture) argument [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/libs/rs/ |
H A D | rsProgram.cpp | 58 uint32_t texture = 0; local 69 mHal.state.textureTargets[texture++] = (RsTextureTarget)params[ct+1]; 170 LOGE("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 LOGE("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/base/opengl/libagl/ |
H A D | TextureObjectManager.cpp | 220 // check if the texture is complete 295 // keep the texture's parameters 317 sp<EGLTextureObject> EGLSurfaceManager::texture(GLuint name) function in class:android::EGLSurfaceManager
|
/frameworks/base/opengl/tests/gl_basic/ |
H A D | gl_basic.cpp | 21 GLuint texture; variable 328 glGenTextures(1, &texture); 329 glBindTexture(GL_TEXTURE_2D, texture);
|
/frameworks/base/opengl/tests/gl_jni/jni/ |
H A D | gl_code.cpp | 14 GLuint texture; variable 129 glGenTextures(1, &texture); 130 glBindTexture(GL_TEXTURE_2D, texture);
|
/frameworks/base/opengl/tests/hwc/ |
H A D | hwcRects.cpp | 162 sp<GraphicBuffer> texture; member in class:Rectangle 321 layer->handle = it->texture->handle; 508 // Create source texture 509 rect.texture = new GraphicBuffer(rect.sourceDim.width(), 512 if ((rv = rect.texture->initCheck()) != NO_ERROR) { 513 testPrintE("source texture initCheck failed, rv: %i", rv); 519 hwcTestFillColor(rect.texture.get(), rect.color, rect.alpha); 523 rect.texture.get(), rect.texture->handle, format->desc,
|
/frameworks/base/opengl/tests/tritex/ |
H A D | tritex.cpp | 23 GLuint texture;
variable 220 glGenTextures(1, &texture);
221 glBindTexture(GL_TEXTURE_2D, texture);
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 94 status_t BootAnimation::initTexture(Texture* texture, AssetManager& assets, argument 114 texture->w = w; 115 texture->h = h; 117 glGenTextures(1, &texture->name); 118 glBindTexture(GL_TEXTURE_2D, texture->name);
|
/frameworks/base/services/surfaceflinger/ |
H A D | SurfaceFlinger.h | 209 GLuint texture; member in class:android::SurfaceFlinger::MessageDestroyGLTexture 211 MessageDestroyGLTexture(GLuint texture) : texture(texture) { } argument 213 glDeleteTextures(1, &texture);
|
/frameworks/base/cmds/stagefright/ |
H A D | stagefright.cpp | 612 fprintf(stderr, " -T allocate buffers from a surface texture\n"); 927 sp<SurfaceTexture> texture = new SurfaceTexture(0 /* tex */); local 928 gSurface = new SurfaceTextureClient(texture);
|
/frameworks/base/core/java/android/webkit/ |
H A D | HTML5VideoViewProxy.java | 304 // When there is a frame ready from surface texture, we should tell WebView 533 // for the Video Layer's surface texture info 699 private native static boolean nativeSendSurfaceTexture(SurfaceTexture texture, argument
|
/frameworks/base/core/jni/ |
H A D | android_opengl_GLES11.cpp | 1923 /* GLboolean glIsTexture ( GLuint texture ) */ 1926 (JNIEnv *_env, jobject _this, jint texture) { 1929 (GLuint)texture 1925 android_glIsTexture__I(JNIEnv *_env, jobject _this, jint texture) argument
|
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/ |
H A D | GL11ExtensionPack.java | 122 int texture 204 int texture, 200 glFramebufferTexture2DOES( int target, int attachment, int textarget, int texture, int level ) argument
|