/frameworks/base/libs/hwui/tests/unit/ |
H A D | GradientCacheTests.cpp | 33 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 D | TextDropShadowCacheTests.cpp | 47 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/base/libs/hwui/ |
H A D | GlLayer.h | 30 * A layer has dimensions and is backed by an OpenGL texture or FBO. 39 return texture.mWidth; 43 return texture.mHeight; 47 texture.updateLayout(width, height, texture.internalFormat(), texture.format(), 48 texture.target()); 52 texture.blend = blend; 56 return texture.blend; 60 return texture 91 Texture texture; member in class:android::uirenderer::GlLayer [all...] |
H A D | TextDropShadowCache.cpp | 127 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 D | TextureCache.cpp | 43 INIT_LOGD(" Maximum texture dimension is %d pixels", mMaxTextureSize); 68 void TextureCache::operator()(uint32_t&, Texture*& texture) { argument 70 if (texture) { 71 mSize -= texture->bitmapSize; 73 texture->id, texture->bitmapSize, mSize); 75 ALOGD("Texture deleted, size = %d", texture->bitmapSize); 77 texture->deleteTexture(); 78 delete texture; 97 ALOGW("Bitmap too large to be uploaded into a texture ( 105 Texture* texture = new Texture(Caches::getInstance()); local 118 Texture* texture = createTexture(bitmap); local 129 Texture* texture = mCache.get(bitmap->getStableID()); local 169 Texture* texture = getCachedTexture(bitmap); local 181 Texture* texture = getCachedTexture(bitmap); local [all...] |
H A D | DeferredLayerUpdater.h | 71 ANDROID_API void setSurfaceTexture(const sp<GLConsumer>& texture) { argument 72 if (texture.get() != mSurfaceTexture.get()) { 73 mSurfaceTexture = texture; 75 GLenum target = texture->getCurrentTextureTarget();
|
H A D | GpuMemoryTracker.cpp | 125 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 D | Glop.h | 47 // Mesh has texture coordinates embedded. Note that texture can exist without this flag 120 Texture* texture; member in struct:android::uirenderer::Glop::Fill::TextureData 124 } texture; member in struct:android::uirenderer::Glop::Fill
|
H A D | GradientCache.cpp | 97 void GradientCache::operator()(GradientCacheEntry&, Texture*& texture) { argument 98 if (texture) { 99 mSize -= texture->objectSize(); 100 texture->deleteTexture(); 101 delete texture; 111 Texture* texture = mCache.get(gradient); local 113 if (!texture) { 114 texture = addLinearGradient(gradient, colors, positions, count); 117 return texture; 153 Texture* texture local 217 generateTexture(uint32_t* colors, float* positions, const uint32_t width, const uint32_t height, Texture* texture) argument [all...] |
H A D | OpenGLReadback.cpp | 95 // All we're flushing & finishing is the deletion of the texture since 130 ALOGW("Can't copy surface into bitmap, %dx%d exceeds max texture size %d", 149 GLuint texture; local 180 glGenTextures(1, &texture); 182 caches.textureState().bindTexture(texture); 191 GL_TEXTURE_2D, texture, 0); 235 caches.textureState().deleteTexture(texture); 249 // Create a 2D texture to sample from the EGLImage
|
H A D | SkiaShader.cpp | 59 static inline void bindTexture(Caches* caches, Texture* texture, GLenum wrapS, GLenum wrapT) { argument 60 caches->textureState().bindTexture(texture->target(), texture->id()); 61 texture->setWrapST(wrapS, wrapT); 219 Texture* texture = outData->bitmapTexture; local 222 description->hasLinearTexture = texture->isLinear(); 223 description->hasColorSpaceConversion = texture->hasColorSpaceConversion(); 224 description->transferFunction = texture->getTransferFunctionType(); 225 description->hasTranslucentConversion = texture->blend;
|
H A D | Texture.h | 47 * Represents an OpenGL texture. 79 * Convenience method to call glDeleteTextures() on this texture's id. 84 * Sets the width, height, and format of the texture along with allocating 85 * the texture ID. Does nothing if the width, height, and format are already 110 * Wraps an existing texture. 140 * Returns nullptr if this texture does not require color space conversion 155 * Returns true if this texture uses a linear encoding format. 166 * Indicates whether the texture requires blending. 170 * Indicates whether this texture should be cleaned up after use. 178 * Indicates whether this texture wil 229 AutoTexture(Texture* texture) argument 238 Texture* const texture; member in class:android::uirenderer::AutoTexture [all...] |
/frameworks/base/libs/hwui/font/ |
H A D | FontCacheHistoryTracker.h | 29 // what a missing character is: skipped glyph, wrong coordinates in cache texture etc. 40 void* texture; member in struct:android::uirenderer::FontCacheHistoryTracker::CachedGlyph
|
H A D | FontCacheHistoryTracker.cpp | 26 log.appendFormat("glyph (texture %p, position: (%d, %d), size: %dx%d, gen: %d)", glyph.texture, 42 log.appendFormat(" cleared cachetexture %p in gen %d\n", glyph.texture, 66 entry.glyph.texture = glyphInfo->mCacheTexture; 75 void FontCacheHistoryTracker::glyphUploaded(CacheTexture* texture, uint32_t x, uint32_t y, argument 79 glyph.texture = texture; 86 void FontCacheHistoryTracker::glyphsCleared(CacheTexture* texture) { argument 89 glyph.texture = texture; [all...] |
/frameworks/base/libs/hwui/renderstate/ |
H A D | TextureState.cpp | 32 // 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 D | OffscreenBufferPool.h | 39 * 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()) {
|
/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/native/services/surfaceflinger/RenderEngine/ |
H A D | Description.cpp | 62 void Description::setTexture(const Texture& texture) { argument 63 mTexture = texture;
|
H A D | GLES20RenderEngine.h | 47 GLuint texture; member in struct:android::GLES20RenderEngine::Group 101 virtual void setupLayerTexturing(const Texture& texture);
|
/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 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 D | tritex.cpp | 23 GLuint texture;
variable 221 glGenTextures(1, &texture);
222 glBindTexture(GL_TEXTURE_2D, texture);
|