/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | GLES20RenderEngine.h | 46 GLuint texture; member in struct:android::GLES20RenderEngine::Group 70 virtual void setupLayerTexturing(const Texture& texture);
|
H A D | Description.cpp | 62 void Description::setTexture(const Texture& texture) { argument 63 mTexture = texture;
|
H A D | GLES11RenderEngine.cpp | 151 void GLES11RenderEngine::setupLayerTexturing(const Texture& texture) { argument 152 GLuint target = texture.getTextureTarget(); 153 glBindTexture(target, texture.getTextureName()); 155 if (texture.getFiltering()) { 163 glLoadMatrixf(texture.getMatrix().asArray()); 190 // turn our EGLImage into a texture
|
H A D | GLES20RenderEngine.cpp | 122 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...] |
/frameworks/base/libs/hwui/ |
H A D | Vertex.h | 26 * 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 D | AssetAtlas.cpp | 84 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 D | AssetAtlas.h | 41 * 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 D | TextDropShadowCache.cpp | 150 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 D | Texture.h | 29 * 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 D | GradientCache.cpp | 118 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 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 | Caches.cpp | 138 ALOGW("At least %d texture units are required!", REQUIRED_TEXTURE_UNITS_COUNT); 529 void Caches::bindTexture(GLuint texture) { argument 530 if (mBoundTextures[mTextureUnit] != texture) { 531 glBindTexture(GL_TEXTURE_2D, texture); 532 mBoundTextures[mTextureUnit] = texture; 536 void Caches::bindTexture(GLenum target, GLuint texture) { argument 537 if (mBoundTextures[mTextureUnit] != texture) { 538 glBindTexture(target, texture); 539 mBoundTextures[mTextureUnit] = texture; 543 void Caches::deleteTexture(GLuint texture) { argument [all...] |
H A D | Layer.h | 50 * 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 D | LayerRenderer.cpp | 204 // We first obtain a layer before comparing against the max texture size 235 // Initialize the texture if needed 242 ALOGE("Could not allocate texture for layer (fbo=%d %dx%d)", fbo, width, height); 274 LAYER_RENDERER_LOGD("Creating new texture layer"); 373 GLuint texture; local 414 glGenTextures(1, &texture); 418 caches.bindTexture(texture); 433 GL_TEXTURE_2D, texture, 0); 480 caches.deleteTexture(texture);
|
H A D | PathCache.cpp | 118 // 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 D | SkiaShader.cpp | 93 void SkiaShader::bindTexture(Texture* texture, GLenum wrapS, GLenum wrapT) { argument 94 mCaches->bindTexture(texture->id); 95 texture->setWrapST(wrapS, wrapT); 121 Texture* texture = mCaches->textureCache.get(mBitmap); local 122 if (!texture) return; 123 mTexture = texture; 125 const float width = texture->width; 126 const float height = texture->height; 149 Texture* texture = mTexture; local 151 if (!texture) retur 236 Texture* texture = mCaches->gradientCache.get(mColors, mPositions, mCount); local 356 Texture* texture = mCaches->gradientCache.get(mColors, mPositions, mCount); local [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/rs/ |
H A D | rsProgram.cpp | 58 uint32_t texture = 0; local 69 mHal.state.textureTargets[texture++] = (RsTextureTarget)params[ct+1]; 181 ALOGE("Attempt to bind texture to slot %u but tex count is %u", slot, mHal.state.texturesCount); 182 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind texture"); 187 ALOGE("Attempt to bind cubemap to slot %u but 2d texture needed", slot); 188 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind cubemap to 2d texture slot");
|
/frameworks/base/services/jni/ |
H A D | com_android_server_AssetAtlasService.cpp | 102 if (texture) glDeleteTextures(1, &texture); \ 114 // using the GPU to swizzle the texture content 158 GLuint texture = 0; local 184 // The EGL image is later bound to a 2D texture 194 glGenTextures(1, &texture); 195 glBindTexture(GL_TEXTURE_2D, texture); 198 ALOGW("Could not create/bind texture"); 207 ALOGW("Could not upload to texture"); 211 // The fence is used to wait for the texture uploa [all...] |
/frameworks/native/opengl/libagl/ |
H A D | TextureObjectManager.cpp | 218 // check if the texture is complete 293 // keep the texture's parameters 315 sp<EGLTextureObject> EGLSurfaceManager::texture(GLuint name) function in class:android::EGLSurfaceManager
|
/frameworks/native/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/native/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/native/opengl/tests/hwc/ |
H A D | hwcRects.cpp | 161 sp<GraphicBuffer> texture; member in class:Rectangle 320 layer->handle = it->texture->handle; 509 // Create source texture 510 rect.texture = new GraphicBuffer(rect.sourceDim.width(), 513 if ((rv = rect.texture->initCheck()) != NO_ERROR) { 514 testPrintE("source texture initCheck failed, rv: %i", rv); 520 hwcTestFillColor(rect.texture.get(), rect.color, rect.alpha); 524 rect.texture.get(), rect.texture->handle, format->desc,
|
/frameworks/native/opengl/tests/tritex/ |
H A D | tritex.cpp | 23 GLuint texture;
variable 220 glGenTextures(1, &texture);
221 glBindTexture(GL_TEXTURE_2D, texture);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 94 // 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...] |