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

123

/frameworks/base/libs/hwui/renderstate/
H A DTextureState.cpp21 // Must define as many texture units as specified by kTextureUnitsCount
37 "At least %d texture units are required!", kTextureUnitsCount);
42 "Tried to use texture unit index %d, only %d exist",
54 void TextureState::bindTexture(GLuint texture) { argument
55 if (mBoundTextures[mTextureUnit] != texture) {
56 glBindTexture(GL_TEXTURE_2D, texture);
57 mBoundTextures[mTextureUnit] = texture;
61 void TextureState::bindTexture(GLenum target, GLuint texture) { argument
63 bindTexture(texture);
68 glBindTexture(target, texture);
72 deleteTexture(GLuint texture) argument
97 unbindTexture(GLuint texture) argument
[all...]
H A DRenderState.cpp270 const Glop::Fill::TextureData& texture = fill.texture; local
271 // texture always takes slot 0, shader samplers increment from there
274 if (texture.clamp != GL_INVALID_ENUM) {
275 texture.texture->setWrap(texture.clamp, true, false, texture.target);
277 if (texture.filter != GL_INVALID_ENUM) {
278 texture
[all...]
/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.cpp176 void GLES11RenderEngine::setupLayerTexturing(const Texture& texture) { argument
177 GLuint target = texture.getTextureTarget();
178 glBindTexture(target, texture.getTextureName());
180 if (texture.getFiltering()) {
188 glLoadMatrixf(texture.getMatrix().asArray());
215 // turn our EGLImage into a texture
H A DGLES20RenderEngine.cpp150 void GLES20RenderEngine::setupLayerTexturing(const Texture& texture) { argument
151 GLuint target = texture.getTextureTarget();
152 glBindTexture(target, texture.getTextureName());
154 if (texture.getFiltering()) {
162 mState.setTexture(texture);
167 Texture texture(Texture::TEXTURE_2D, mProtectedTexName);
168 texture.setDimensions(1, 1); // FIXME: we should get that from somewhere
169 mState.setTexture(texture);
190 // turn our EGLImage into a texture
/frameworks/base/libs/hwui/
H A DAssetAtlas.cpp76 entry->texture->id = mTexture->id;
91 return index >= 0 ? mEntries.valueAt(index)->texture : nullptr;
95 * Delegates changes to wrapping and filtering to the base atlas texture
136 Texture* texture = new DelegateTexture(caches, mTexture); local
137 texture->blend = !SkAlphaTypeIsOpaque(pixelRef->info().alphaType());
138 texture->width = pixelRef->info().width();
139 texture->height = pixelRef->info().height();
141 Entry* entry = new Entry(pixelRef, texture, mapper, *this);
142 texture->uvMapper = &entry->uvMapper;
H A DAssetAtlas.h41 * texture. Each bitmap is associated with a location, defined in pixels,
43 * an external texture using the EGLImageKHR extension.
48 * Entry representing the texture and uvMapper of a PixelRef in the
54 * A "virtual texture" object that represents the texture
55 * this entry belongs to. This texture should never be
58 Texture* texture; member in class:android::uirenderer::AssetAtlas::Entry
61 * Maps texture coordinates in the [0..1] range into the
71 return texture->blend ? &atlas.mBlendKey : &atlas.mOpaqueKey;
85 Entry(SkPixelRef* pixelRef, Texture* texture, cons argument
[all...]
H A DDeferredLayerUpdater.h58 ANDROID_API void setSurfaceTexture(const sp<GLConsumer>& texture, bool needsAttach) { argument
59 if (texture.get() != mSurfaceTexture.get()) {
61 mSurfaceTexture = texture;
63 GLenum target = texture->getCurrentTextureTarget();
H A DTextDropShadowCache.cpp152 void TextDropShadowCache::operator()(ShadowText&, ShadowTexture*& texture) { argument
153 if (texture) {
154 mSize -= texture->bitmapSize;
157 ALOGD("Shadow texture deleted, size = %d", texture->bitmapSize);
160 texture->deleteTexture();
161 delete texture;
176 ShadowTexture* texture = mCache.get(entry); local
178 if (!texture) {
190 texture
[all...]
H A DTexture.h29 * Represents an OpenGL texture.
54 * Convenience method to call glDeleteTextures() on this texture's id.
59 * Name of the texture.
67 * Indicates whether the texture requires blending.
79 * Indicates whether this texture should be cleaned up after use.
87 * Indicates whether this texture will use trilinear filtering.
92 * Optional, pointer to a texture coordinates mapper.
104 * Last wrap modes set on this texture.
110 * Last filters set on this texture.
123 AutoTexture(const Texture* texture) argument
[all...]
H A DGlop.h115 Texture* texture; member in struct:android::uirenderer::Glop::Fill::TextureData
120 } texture; member in struct:android::uirenderer::Glop::Fill
H A DGradientCache.cpp111 void GradientCache::operator()(GradientCacheEntry&, Texture*& texture) { argument
112 if (texture) {
113 const uint32_t size = texture->width * texture->height * bytesPerPixel();
116 texture->deleteTexture();
117 delete texture;
127 Texture* texture = mCache.get(gradient); local
129 if (!texture) {
130 texture = addLinearGradient(gradient, colors, positions, count);
133 return texture;
169 Texture* texture = new Texture(Caches::getInstance()); local
234 generateTexture(uint32_t* colors, float* positions, Texture* texture) argument
[all...]
H A DSkiaShader.cpp54 static inline void bindTexture(Caches* caches, Texture* texture, GLenum wrapS, GLenum wrapT) { argument
55 caches->textureState().bindTexture(texture->id);
56 texture->setWrapST(wrapS, wrapT);
H A DTextureCache.cpp49 INIT_LOGD(" Setting texture cache size to %sMB", property);
52 INIT_LOGD(" Using default texture cache size of %.2fMB", DEFAULT_TEXTURE_CACHE_SIZE);
57 INIT_LOGD(" Setting texture cache flush rate to %.2f%%", flushRate * 100.0f);
60 INIT_LOGD(" Using default texture cache flush rate of %.2f%%",
67 INIT_LOGD(" Maximum texture dimension is %d pixels", mMaxTextureSize);
103 void TextureCache::operator()(uint32_t&, Texture*& texture) { argument
105 if (texture) {
106 mSize -= texture->bitmapSize;
108 texture->id, texture
153 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID()); local
195 Texture* texture = getCachedTexture(bitmap, AtlasUsageType::Use); local
203 Texture* texture = getCachedTexture(bitmap, atlasUsageType); local
255 generateTexture(const SkBitmap* bitmap, Texture* texture, bool regenerate) argument
[all...]
H A DGlopBuilder.cpp245 || (mOutGlop->fill.texture.texture && mOutGlop->fill.texture.texture->blend)
312 GlopBuilder& GlopBuilder::setFillTexturePaint(Texture& texture, argument
319 mOutGlop->fill.texture = { &texture,
339 || texture.blend
361 mOutGlop->fill.texture = { nullptr, GL_INVALID_ENUM, GL_INVALID_ENUM, GL_INVALID_ENUM, nullptr };
370 GlopBuilder& GlopBuilder::setFillPathTexturePaint(PathTexture& texture,
387 setFillShadowTexturePaint(ShadowTexture& texture, int shadowColor, const SkPaint& paint, float alphaScale) argument
431 setFillLayer(Texture& texture, const SkColorFilter* colorFilter, float alpha, SkXfermode::Mode mode, Blend::ModeOrderSwap modeUsage) argument
[all...]
H A DLayerRenderer.cpp204 // We first obtain a layer before comparing against the max texture size
233 // Initialize the texture if needed
240 LOG_ALWAYS_FATAL("Could not allocate texture for layer (fbo=%d %dx%d)",
273 LAYER_RENDERER_LOGD("Creating new texture layer");
367 GLuint texture; local
409 glGenTextures(1, &texture);
413 caches.textureState().bindTexture(texture);
428 GL_TEXTURE_2D, texture, 0);
467 caches.textureState().deleteTexture(texture);
/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.cpp56 if (texture) glDeleteTextures(1, &texture); \
72 // using the GPU to swizzle the texture content
116 GLuint texture = 0; local
142 // The EGL image is later bound to a 2D texture
152 glGenTextures(1, &texture);
153 glBindTexture(GL_TEXTURE_2D, texture);
156 ALOGW("Could not create/bind texture");
165 ALOGW("Could not upload to texture");
169 // 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
318 layer->handle = it->texture->handle;
506 // Create source texture
507 rect.texture = new GraphicBuffer(rect.sourceDim.width(),
510 if ((rv = rect.texture->initCheck()) != NO_ERROR) {
511 testPrintE("source texture initCheck failed, rv: %i", rv);
517 hwcTestFillColor(rect.texture.get(), rect.color, rect.alpha);
521 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);

Completed in 884 milliseconds

123