Searched defs:texture (Results 1 - 25 of 58) sorted by relevance

123

/frameworks/native/services/surfaceflinger/RenderEngine/
H A DGLES20RenderEngine.h47 GLuint texture; member in struct:android::GLES20RenderEngine::Group
72 virtual void setupLayerTexturing(const Texture& texture);
H A DDescription.cpp62 void Description::setTexture(const Texture& texture) { argument
63 mTexture = texture;
H A DGLES11RenderEngine.cpp182 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 DGLES20RenderEngine.cpp156 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/libs/hwui/
H A DAssetAtlas.h41 * 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 DAssetAtlas.cpp75 entry->texture->id = mTexture->id;
90 return index >= 0 ? mEntries.valueAt(index)->texture : NULL;
94 * Delegates changes to wrapping and filtering to the base atlas texture
139 Texture* texture = new DelegateTexture(caches, mTexture); local
140 texture->blend = !bitmap->isOpaque();
141 texture->width = bitmap->width();
142 texture->height = bitmap->height();
144 Entry* entry = new Entry(bitmap, x, y, rotated, texture, mapper, *this);
145 texture->uvMapper = &entry->uvMapper;
H A DDeferredLayerUpdater.h59 ANDROID_API void setSurfaceTexture(const sp<GLConsumer>& texture, bool needsAttach) { argument
60 if (texture.get() != mSurfaceTexture.get()) {
62 mSurfaceTexture = texture;
H A DTextDropShadowCache.cpp150 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 DTexture.h29 * 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 DGradientCache.cpp118 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 DTextureCache.cpp46 INIT_LOGD(" Setting texture cache size to %sMB", property);
49 INIT_LOGD(" Using default texture cache size of %.2fMB", DEFAULT_TEXTURE_CACHE_SIZE);
54 INIT_LOGD(" Setting texture cache flush rate to %.2f%%", flushRate * 100.0f);
57 INIT_LOGD(" Using default texture cache flush rate of %.2f%%",
78 INIT_LOGD(" Maximum texture dimension is %d pixels", mMaxTextureSize);
110 void TextureCache::operator()(uint32_t&, Texture*& texture) { argument
112 if (texture) {
113 mSize -= texture->bitmapSize;
115 texture->id, texture
158 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID()); local
200 Texture* texture = getCachedTexture(bitmap); local
208 Texture* texture = getCachedTexture(bitmap); local
226 Texture* texture = new Texture(); local
272 generateTexture(const SkBitmap* bitmap, Texture* texture, bool regenerate) argument
[all...]
H A DLayerRenderer.cpp206 // 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");
370 GLuint texture; local
412 glGenTextures(1, &texture);
416 caches.bindTexture(texture);
431 GL_TEXTURE_2D, texture, 0);
478 caches.deleteTexture(texture);
H A DPathCache.cpp114 // 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 DPathCache.h59 * 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 DSkiaShader.cpp58 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/opengl/java/android/opengl/
H A DETC1Util.java32 * 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/services/core/jni/
H A Dcom_android_server_AssetAtlasService.cpp83 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 DrsProgram.cpp60 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 DTextureObjectManager.cpp218 // 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 Dgl_basic.cpp21 GLuint texture; variable
329 glGenTextures(1, &texture);
330 glBindTexture(GL_TEXTURE_2D, texture);
/frameworks/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp14 GLuint texture; variable
129 glGenTextures(1, &texture);
130 glBindTexture(GL_TEXTURE_2D, texture);
/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp160 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 Dtritex.cpp23 GLuint texture; variable
221 glGenTextures(1, &texture);
222 glBindTexture(GL_TEXTURE_2D, texture);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java92 // 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 DBootAnimation.cpp108 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

Completed in 561 milliseconds

123