/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | GLES20RenderEngine.h | 47 GLuint texture; member in struct:android::GLES20RenderEngine::Group 72 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 | 182 void GLES11RenderEngine::setupLayerTexturing(const Texture& texture) { argument 183 GLuint target = texture.getTextureTarget(); 184 glBindTexture(target, texture.getTextureName()); 186 if (texture.getFiltering()) { 194 glLoadMatrixf(texture.getMatrix().asArray()); 221 // turn our EGLImage into a texture
|
H A D | GLES20RenderEngine.cpp | 156 void GLES20RenderEngine::setupLayerTexturing(const Texture& texture) { argument 157 GLuint target = texture.getTextureTarget(); 158 glBindTexture(target, texture.getTextureName()); 160 if (texture.getFiltering()) { 168 mState.setTexture(texture); 173 Texture texture(Texture::TEXTURE_2D, mProtectedTexName); 174 texture.setDimensions(1, 1); // FIXME: we should get that from somewhere 175 mState.setTexture(texture); 190 // turn our EGLImage into a texture 249 // create the 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/libs/hwui/ |
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 133 Texture* texture = new DelegateTexture(caches, mTexture); local 134 texture->id = mTexture->id; 135 texture->blend = !bitmap->isOpaque(); 136 texture->width = bitmap->width(); 137 texture->height = bitmap->height(); 139 Entry* entry = new Entry(bitmap, x, y, rotated, texture, mapper, *this); 140 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 | DeferredLayerUpdater.h | 59 ANDROID_API void setSurfaceTexture(const sp<GLConsumer>& texture, bool needsAttach) { argument 60 if (texture.get() != mSurfaceTexture.get()) { 62 mSurfaceTexture = texture;
|
H A D | TextDropShadowCache.cpp | 150 void TextDropShadowCache::operator()(ShadowText&, 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. 105 * Last wrap modes set on this texture. Defaults to GL_CLAMP_TO_EDGE. 111 * Last filters set on this texture. Defaults to GL_NEAREST. 124 AutoTexture(const Texture* texture) argument [all...] |
H A D | GradientCache.cpp | 118 void GradientCache::operator()(GradientCacheEntry&, 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, Texture* texture) argument [all...] |
H A D | TextureCache.cpp | 43 INIT_LOGD(" Setting texture cache size to %sMB", property); 46 INIT_LOGD(" Using default texture cache size of %.2fMB", DEFAULT_TEXTURE_CACHE_SIZE); 51 INIT_LOGD(" Setting texture cache flush rate to %.2f%%", flushRate * 100.0f); 54 INIT_LOGD(" Using default texture cache flush rate of %.2f%%", 75 INIT_LOGD(" Maximum texture dimension is %d pixels", mMaxTextureSize); 107 void TextureCache::operator()(const SkPixelRef*&, Texture*& texture) { argument 109 if (texture) { 110 mSize -= texture->bitmapSize; 112 texture->id, texture 144 Texture* texture = mCache.get(bitmap->pixelRef()); local 186 Texture* texture = getCachedTexture(bitmap); local 194 Texture* texture = getCachedTexture(bitmap); local 212 Texture* texture = new Texture(); local 261 generateTexture(const SkBitmap* bitmap, Texture* texture, bool regenerate) argument [all...] |
H A D | LayerRenderer.cpp | 205 // We first obtain a layer before comparing against the max texture size 234 // Initialize the texture if needed 241 ALOGE("Could not allocate texture for layer (fbo=%d %dx%d)", fbo, width, height); 273 LAYER_RENDERER_LOGD("Creating new texture layer"); 377 GLuint texture; local 419 glGenTextures(1, &texture); 423 caches.bindTexture(texture); 438 GL_TEXTURE_2D, texture, 0); 485 caches.deleteTexture(texture);
|
H A D | PathCache.cpp | 114 // will be applied later when compositing the alpha8 texture 138 PathTexture* texture = new PathTexture(Caches::getInstance()); local 139 texture->left = left; 140 texture->top = top; 141 texture->offset = offset; 142 texture->width = width; 143 texture->height = height; 144 texture->generation = id; 145 return texture; 199 void PathCache::operator()(PathDescription& entry, PathTexture*& texture) { argument 207 removeTexture(PathTexture* texture) argument 271 PathTexture* texture = createTexture(left, top, offset, width, height, local 278 generateTexture(const PathDescription& entry, SkBitmap* bitmap, PathTexture* texture, bool addToCache) argument 307 generateTexture(SkBitmap& bitmap, Texture* texture) argument 344 PathTexture* texture = t->texture; local 425 PathTexture* texture = mCache.get(entry); local 467 PathTexture* texture = mCache.get(entry); local 512 PathTexture* texture = get(entry); local 534 PathTexture* texture = get(entry); local 555 PathTexture* texture = get(entry); local 578 PathTexture* texture = get(entry); local 605 PathTexture* texture = get(entry); local [all...] |
H A D | PathCache.h | 59 * Alpha texture used to represent a path. 157 * Any texture added to the cache causing the cache to grow beyond the maximum 158 * allowed size will also cause the oldest texture to be kicked out. 169 void operator()(PathDescription& path, PathTexture*& texture); 237 * Generates the texture from a bitmap into the specified texture structure. 239 void generateTexture(SkBitmap& bitmap, Texture* texture); 240 void generateTexture(const PathDescription& entry, SkBitmap* bitmap, PathTexture* texture, 254 * Ensures there is enough space in the cache for a texture of the specified 259 void removeTexture(PathTexture* texture); 274 PathTask(const SkPath* path, const SkPaint* paint, PathTexture* texture) argument 288 PathTexture* texture; member in class:android::uirenderer::PathCache::PathTask [all...] |
H A D | SkiaShader.cpp | 58 static inline void bindTexture(Caches* caches, Texture* texture, GLenum wrapS, GLenum wrapT) { argument 59 caches->bindTexture(texture->id); 60 texture->setWrapST(wrapS, wrapT); 209 Texture* texture; member in struct:android::uirenderer::BitmapShaderInfo 216 Texture* texture = caches->textureCache.get(&bitmap); local 217 if (!texture) return false; 219 const float width = texture->width; 220 const float height = texture->height; 248 shaderInfo->texture = texture; 280 Texture* texture = shaderInfo.texture; local 399 Texture* texture = caches->gradientCache.get(gradInfo.fColors, gradInfo.fColorOffsets, local [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_AssetAtlasService.cpp | 83 if (texture) glDeleteTextures(1, &texture); \ 96 // using the GPU to swizzle the texture content 140 GLuint texture = 0; local 166 // The EGL image is later bound to a 2D texture 176 glGenTextures(1, &texture); 177 glBindTexture(GL_TEXTURE_2D, texture); 180 ALOGW("Could not create/bind texture"); 189 ALOGW("Could not upload to texture"); 193 // The fence is used to wait for the texture uploa [all...] |
/frameworks/rs/ |
H A D | rsProgram.cpp | 60 uint32_t texture = 0; local 71 mHal.state.textureTargets[texture++] = (RsTextureTarget)params[ct+1]; 183 ALOGE("Attempt to bind texture to slot %u but tex count is %u", slot, mHal.state.texturesCount); 184 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind texture"); 189 ALOGE("Attempt to bind cubemap to slot %u but 2d texture needed", slot); 190 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind cubemap to 2d texture slot");
|
/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 329 glGenTextures(1, &texture); 330 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 | 160 sp<GraphicBuffer> texture; member in class:Rectangle 319 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/native/opengl/tests/tritex/ |
H A D | tritex.cpp | 23 GLuint texture;
variable 221 glGenTextures(1, &texture);
222 glBindTexture(GL_TEXTURE_2D, texture);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 92 // Draws a texture to the specified rectangle. 94 BasicTexture texture, int x, int y, int width, int height); 99 // Draws the source rectangle part of the texture to the target rectangle. 100 public abstract void drawTexture(BasicTexture texture, RectF source, RectF target); argument 102 // Draw a texture with a specified texture transform. 103 public abstract void drawTexture(BasicTexture texture, float[] mTextureTransform, argument 106 // Draw two textures to the specified rectangle. The actual texture used is 112 // Draw a region of a texture and a specified color to the specified 114 // The region of the texture i 93 drawTexture( BasicTexture texture, int x, int y, int width, int height) argument 123 unloadTexture(BasicTexture texture) argument 135 beginRenderTarget(RawTexture texture) argument 147 setTextureParameters(BasicTexture texture) argument 156 initializeTextureSize(BasicTexture texture, int format, int type) argument 164 initializeTexture(BasicTexture texture, Bitmap bitmap) argument 177 texSubImage2D(BasicTexture texture, int xOffset, int yOffset, Bitmap bitmap, int format, int type) argument [all...] |
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 108 status_t BootAnimation::initTexture(Texture* texture, AssetManager& assets, argument 128 texture->w = w; 129 texture->h = h; 131 glGenTextures(1, &texture->name); 132 glBindTexture(GL_TEXTURE_2D, texture->name); 179 // Release it now as the texture is already loaded and the memory used for
|