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

123

/frameworks/base/libs/hwui/tests/unit/
H A DGradientCacheTests.cpp33 Texture* texture = cache.get(colors, positions, 3); local
34 ASSERT_TRUE(texture);
35 ASSERT_FALSE(texture->cleanup);
36 ASSERT_EQ((uint32_t) texture->objectSize(), cache.getSize());
H A DTextDropShadowCacheTests.cpp47 ShadowTexture* texture = cache.get(&paint, glyphs.data(), glyphs.size(), 10, positions.data()); local
49 ASSERT_TRUE(texture);
50 ASSERT_FALSE(texture->cleanup);
51 ASSERT_EQ((uint32_t) texture->objectSize(), cache.getSize());
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DGLES20RenderEngine.h47 GLuint texture; member in struct:android::GLES20RenderEngine::Group
80 virtual void setupLayerTexturing(const Texture& texture);
H A DDescription.cpp62 void Description::setTexture(const Texture& texture) { argument
63 mTexture = texture;
/frameworks/base/libs/hwui/
H A DAssetAtlas.cpp71 return result != mEntries.end() ? result->second->texture : nullptr;
75 * Delegates changes to wrapping and filtering to the base atlas texture
117 Texture* texture = new DelegateTexture(caches, mTexture); local
118 texture->blend = !SkAlphaTypeIsOpaque(pixelRef->info().alphaType());
119 texture->wrap(mTexture->id(), pixelRef->info().width(),
122 std::unique_ptr<Entry> entry(new Entry(pixelRef, texture, mapper, *this));
123 texture->uvMapper = &entry->uvMapper;
H A DAssetAtlas.h39 * texture. Each bitmap is associated with a location, defined in pixels,
41 * an external texture using the EGLImageKHR extension.
46 * Entry representing the texture and uvMapper of a PixelRef in the
52 * A "virtual texture" object that represents the texture
53 * this entry belongs to. This texture should never be
56 Texture* texture; member in class:android::uirenderer::AssetAtlas::Entry
59 * Maps texture coordinates in the [0..1] range into the
69 return texture->blend ? &atlas.mBlendKey : &atlas.mOpaqueKey;
73 delete texture;
87 Entry(SkPixelRef* pixelRef, Texture* texture, const UvMapper& mapper, const AssetAtlas& atlas) argument
[all...]
H A DReadback.cpp45 ALOGW("Can't copy surface into bitmap, %dx%d exceeds max texture size %d",
57 GLuint texture; local
88 glGenTextures(1, &texture);
90 caches.textureState().bindTexture(texture);
99 GL_TEXTURE_2D, texture, 0);
143 // Create a 2D texture to sample from the EGLImage
183 caches.textureState().deleteTexture(texture);
H A DTextDropShadowCache.cpp127 void TextDropShadowCache::operator()(ShadowText&, ShadowTexture*& texture) { argument
128 if (texture) {
129 mSize -= texture->objectSize();
132 ALOGD("Shadow texture deleted, size = %d", texture->bitmapSize);
135 texture->deleteTexture();
136 delete texture;
151 ShadowTexture* texture = mCache.get(entry); local
153 if (!texture) {
165 texture
[all...]
H A DDeferredLayerUpdater.h61 ANDROID_API void setSurfaceTexture(const sp<GLConsumer>& texture, bool needsAttach) { argument
62 if (texture.get() != mSurfaceTexture.get()) {
64 mSurfaceTexture = texture;
66 GLenum target = texture->getCurrentTextureTarget();
H A DGpuMemoryTracker.cpp125 const Texture* texture = static_cast<Texture*>(obj); local
126 if (texture->cleanup) {
127 ALOGE("Leaked texture marked for cleanup! id=%u, size %ux%u",
128 texture->id(), texture->width(), texture->height());
129 freeList.push_back(texture);
133 for (auto& texture : freeList) {
134 const_cast<Texture*>(texture)->deleteTexture();
135 delete texture;
[all...]
H A DTexture.h33 * Represents an OpenGL texture.
61 * Convenience method to call glDeleteTextures() on this texture's id.
66 * Sets the width, height, and format of the texture along with allocating
67 * the texture ID. Does nothing if the width, height, and format are already
92 * Wraps an existing texture.
117 * Indicates whether the texture requires blending.
121 * Indicates whether this texture should be cleaned up after use.
129 * Indicates whether this texture will use trilinear filtering.
134 * Optional, pointer to a texture coordinates mapper.
147 // and external texture wrappe
174 AutoTexture(Texture* texture) argument
183 Texture* const texture; member in class:android::uirenderer::AutoTexture
[all...]
H A DTextureCache.cpp44 INIT_LOGD(" Maximum texture dimension is %d pixels", mMaxTextureSize);
69 void TextureCache::operator()(uint32_t&, Texture*& texture) { argument
71 if (texture) {
72 mSize -= texture->bitmapSize;
74 texture->id, texture->bitmapSize, mSize);
76 ALOGD("Texture deleted, size = %d", texture->bitmapSize);
78 texture->deleteTexture();
79 delete texture;
102 ALOGW("Bitmap too large to be uploaded into a texture (
119 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID()); local
163 Texture* texture = getCachedTexture(bitmap, AtlasUsageType::Use); local
171 Texture* texture = getCachedTexture(bitmap, atlasUsageType); local
[all...]
H A DBakedOpRenderer.cpp64 // attach the texture to the FBO
66 offscreenBuffer->texture.id(), 0);
73 offscreenBuffer->texture.id(),
74 offscreenBuffer->texture.width(),
75 offscreenBuffer->texture.height());
96 // Detach the texture from the FBO
109 mCaches.textureState().bindTexture(buffer->texture.id());
185 Texture* texture = mRenderState.assetAtlas().getEntryTexture(bitmap->pixelRef()); local
186 if (!texture) {
189 return texture;
[all...]
H A DGlop.h49 // Mesh has texture coordinates embedded. Note that texture can exist without this flag
122 Texture* texture; member in struct:android::uirenderer::Glop::Fill::TextureData
127 } texture; member in struct:android::uirenderer::Glop::Fill
H A DGradientCache.cpp96 void GradientCache::operator()(GradientCacheEntry&, Texture*& texture) { argument
97 if (texture) {
98 mSize -= texture->objectSize();
99 texture->deleteTexture();
100 delete texture;
110 Texture* texture = mCache.get(gradient); local
112 if (!texture) {
113 texture = addLinearGradient(gradient, colors, positions, count);
116 return texture;
152 Texture* texture local
222 generateTexture(uint32_t* colors, float* positions, const uint32_t width, const uint32_t height, Texture* texture) argument
[all...]
H A DSkiaShader.cpp59 static inline void bindTexture(Caches* caches, Texture* texture, GLenum wrapS, GLenum wrapT) { argument
60 caches->textureState().bindTexture(texture->id());
61 texture->setWrapST(wrapS, wrapT);
/frameworks/base/libs/hwui/renderstate/
H A DTextureState.cpp32 // Must define as many texture units as specified by kTextureUnitsCount
48 "At least %d texture units are required!", kTextureUnitsCount);
63 * This is used to populate the shadow LUT texture for quick lookup in the
89 "Tried to use texture unit index %d, only %d exist",
101 void TextureState::bindTexture(GLuint texture) { argument
102 if (mBoundTextures[mTextureUnit] != texture) {
103 glBindTexture(GL_TEXTURE_2D, texture);
104 mBoundTextures[mTextureUnit] = texture;
108 void TextureState::bindTexture(GLenum target, GLuint texture) { argument
110 bindTexture(texture);
119 deleteTexture(GLuint texture) argument
144 unbindTexture(GLuint texture) argument
[all...]
H A DOffscreenBufferPool.h39 * texture.width/.height are actual allocated texture size. Texture will tend to be larger than the
63 uint32_t getSizeInBytes() { return texture.objectSize(); }
69 Texture texture; member in class:android::uirenderer::OffscreenBuffer
131 , width(layer->texture.width())
132 , height(layer->texture.height()) {
H A DRenderState.cpp301 // texture
302 if (fill.texture.texture != nullptr) {
303 const Glop::Fill::TextureData& texture = fill.texture; local
304 // texture always takes slot 0, shader samplers increment from there
307 mCaches->textureState().bindTexture(texture.target, texture.texture->id());
308 if (texture
346 Texture* texture = (fill.skiaShaderData.skiaShaderType & kBitmap_SkiaShaderType) ? 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.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);

Completed in 1819 milliseconds

123