/frameworks/base/libs/hwui/ |
GlLayer.h | 21 #include "Texture.h" 30 * A layer has dimensions and is backed by an OpenGL texture or FBO. 38 uint32_t getWidth() const override { return texture.mWidth; } 40 uint32_t getHeight() const override { return texture.mHeight; } 43 texture.updateLayout(width, height, texture.internalFormat(), texture.format(), 44 texture.target()); 47 void setBlend(bool blend) override { texture.blend = blend; } 49 bool isBlend() const override { return texture.blend; 75 Texture texture; member in class:android::uirenderer::GlLayer [all...] |
GlLayer.cpp | 38 , texture(caches) { 39 texture.mWidth = layerWidth; 40 texture.mHeight = layerHeight; 41 texture.blend = blend; 48 if (caches.isInitialized() && texture.mId) { 49 texture.deleteTexture(); 54 texture.deleteTexture(); 60 texture.mTarget = renderTarget; 61 if (texture.mId) { 62 caches.textureState().bindTexture(texture.target(), texture.mId) [all...] |
TextureCache.cpp | 24 #include "Texture.h" 37 : mCache(LruCache<uint32_t, Texture*>::kUnlimitedCapacity) 66 void TextureCache::operator()(uint32_t&, Texture*& texture) { 68 if (texture) { 69 mSize -= texture->bitmapSize; 70 TEXTURE_LOGD("TextureCache::callback: name, removed size, mSize = %d, %d, %d", texture->id, 71 texture->bitmapSize, mSize); 73 ALOGD("Texture deleted, size = %d", texture->bitmapSize) 103 Texture* texture = new Texture(Caches::getInstance()); local 116 Texture* texture = createTexture(bitmap); local 127 Texture* texture = mCache.get(bitmap->getStableID()); local 167 Texture* texture = getCachedTexture(bitmap); local 179 Texture* texture = getCachedTexture(bitmap); local [all...] |
PathCache.cpp | 129 static void computePathBounds(const SkPath* path, const SkPaint* paint, PathTexture* texture, 135 texture->left = floorf(bounds.fLeft); 136 texture->top = floorf(bounds.fTop); 138 texture->offset = (int)floorf(std::max(paint->getStrokeWidth(), 1.0f) * 1.5f + 0.5f); 140 width = uint32_t(pathWidth + texture->offset * 2.0 + 0.5); 141 height = uint32_t(pathHeight + texture->offset * 2.0 + 0.5); 146 // will be applied later when compositing the alpha8 texture 155 static sk_sp<Bitmap> drawPath(const SkPath* path, const SkPaint* paint, PathTexture* texture, 158 computePathBounds(path, paint, texture, width, height); 160 ALOGW("Shape too large to be rendered into a texture (%dx%d, max=%dx%d)", width, height 274 PathTexture* texture = new PathTexture(Caches::getInstance(), path->getGenerationID()); local 363 PathTexture* texture = mCache.get(entry); local 403 PathTexture* texture = mCache.get(entry); local 445 PathTexture* texture = get(entry); local 467 PathTexture* texture = get(entry); local 488 PathTexture* texture = get(entry); local 511 PathTexture* texture = get(entry); local 538 PathTexture* texture = get(entry); local [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_sampler.h | 44 const struct pipe_resource *texture, 49 const struct pipe_resource *texture,
|
u_sampler.c | 39 const struct pipe_resource *texture, 45 /* XXX: Check if format is compatible with texture->format. 48 view->target = texture->target; 51 view->u.tex.last_level = texture->last_level; 53 view->u.tex.last_layer = texture->target == PIPE_TEXTURE_3D ? 54 texture->depth0 - 1 : texture->array_size - 1; 90 const struct pipe_resource *texture, 95 texture, 102 const struct pipe_resource *texture, [all...] |
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
vktTextureCompressedFormatTests.hpp | 24 * \brief Compressed texture tests. 32 namespace texture namespace in namespace:vkt 37 } // texture
|
vktTextureFilteringAnisotropyTests.hpp | 23 * \brief Texture filtering anisotropy tests 30 namespace texture namespace in namespace:vkt 35 } // texture
|
vktTextureFilteringExplicitLodTests.hpp | 23 * \brief Texture filtering tests with explicit LOD instructions 30 namespace texture namespace in namespace:vkt 35 } // texture
|
vktTextureFilteringTests.hpp | 25 * \brief Texture filtering tests. 33 namespace texture namespace in namespace:vkt 38 } // texture
|
vktTextureMipmapTests.hpp | 34 namespace texture namespace in namespace:vkt 39 } // texture
|
vktTextureShadowTests.hpp | 24 * \brief Shadow texture lookup tests. 32 namespace texture namespace in namespace:vkt 37 } // texture
|
vktTextureTests.hpp | 25 * \brief Functional texture tests. 33 namespace texture namespace in namespace:vkt 38 } // texture
|
/external/deqp/modules/internal/ |
ditImageIOTests.cpp | 54 tcu::TextureLevel texture; local 55 tcu::ImageIO::loadImage(texture, m_testCtx.getArchive(), m_filename.c_str()); 57 m_testCtx.getLog() << TestLog::Message << "Loaded " << texture.getWidth() << "x" << texture.getHeight() << "x" << texture.getDepth() << " image with format " << texture.getFormat() << TestLog::EndMessage; 60 TCU_CHECK(texture.getAccess().getRowPitch() == texture.getWidth()*texture.getFormat().getPixelSize()); 61 TCU_CHECK(texture.getAccess().getSlicePitch() == texture.getAccess().getRowPitch()*texture.getAccess().getHeight()) [all...] |
/external/swiftshader/src/Renderer/ |
Sampler.cpp | 42 Mipmap &mipmap = texture.mipmap[level]; 73 texture.LOD = 0.0f; 76 texture.baseLevel = 0; 77 texture.maxLevel = 1000; 78 texture.maxLod = MAX_TEXTURE_LOD; 79 texture.minLod = 0; 119 Mipmap &mipmap = texture.mipmap[level]; 137 texture.widthHeightLOD[0] = width * exp2LOD; 138 texture.widthHeightLOD[1] = width * exp2LOD; 139 texture.widthHeightLOD[2] = height * exp2LOD [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
FadeInTexture.java | 20 // FadeInTexture is a texture which begins with a color, then gradually animates 21 // into a given texture. 22 public class FadeInTexture extends FadeTexture implements Texture { 29 public FadeInTexture(int color, TiledTexture texture) { 30 super(texture.getWidth(), texture.getHeight(), texture.isOpaque()); 32 mTexture = texture;
|
FadeOutTexture.java | 20 // FadeOutTexture is a texture which begins with a given texture, then gradually animates 28 public FadeOutTexture(BasicTexture texture) { 29 super(texture.getWidth(), texture.getHeight(), texture.isOpaque()); 30 mTexture = texture;
|
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
GLCanvas.java | 58 // Draws a texture to the specified rectangle. 59 public abstract void drawTexture(BasicTexture texture, int x, int y, int width, int height); 61 // Draws the source rectangle part of the texture to the target rectangle. 62 public abstract void drawTexture(BasicTexture texture, RectF source, RectF target); 64 // Unloads the specified texture from the canvas. The resource allocated 65 // to draw the texture will be released. The specified texture will return 68 public abstract boolean unloadTexture(BasicTexture texture); 75 * Sets texture parameters to use GL_CLAMP_TO_EDGE for both 76 * GL_TEXTURE_WRAP_S and GL_TEXTURE_WRAP_T. Sets texture parameters to b [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_sampler_view.h | 40 struct pipe_resource *texture, 45 u_sampler_view_default_template(&templ, texture, format); 47 return pipe->create_sampler_view(pipe, texture, &templ); 53 struct pipe_resource *texture) 55 return st_create_texture_sampler_view_format(pipe, texture, 56 texture->format);
|
/external/replicaisland/src/com/replica/replicaisland/ |
AnimationFrame.java | 20 * A single animation frame. Frames contain a texture, a hold time, and collision volumes to 23 * frames. Note that an animation frame may have a null texture and null collision volumes. Null 24 * collision volumes will exclude that frame from collision detection and a null texture will 28 public Texture texture; field in class:AnimationFrame 33 public AnimationFrame(Texture textureObject, float animationHoldTime) { 35 texture = textureObject; 39 public AnimationFrame(Texture textureObject, float animationHoldTime, 43 texture = textureObject;
|
/frameworks/base/libs/hwui/renderstate/ |
TextureState.cpp | 32 // Must define as many texture units as specified by kTextureUnitsCount 42 "At least %d texture units are required!", kTextureUnitsCount); 57 * This is used to populate the shadow LUT texture for quick lookup in the 68 mShadowLutTexture.reset(new Texture(caches)); 83 "Tried to use texture unit index %d, only %d exist", textureUnit, 95 void TextureState::bindTexture(GLuint texture) { 96 if (mBoundTextures[mTextureUnit] != texture) { 97 glBindTexture(GL_TEXTURE_2D, texture); 98 mBoundTextures[mTextureUnit] = texture; 102 void TextureState::bindTexture(GLenum target, GLuint texture) { [all...] |
TextureState.h | 19 #include "Texture.h" 29 class Texture; 37 * Activate the specified texture unit. The texture unit must 43 * Invalidate the cached value of the active texture unit. 48 * Binds the specified texture as a GL_TEXTURE_2D texture. 49 * All texture bindings must be performed with this method or 52 void bindTexture(GLuint texture); 55 * Binds the specified texture with the specified render target [all...] |
/frameworks/base/libs/hwui/tests/unit/ |
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());
|
/external/skia/tools/gpu/gl/debug/ |
GrTextureUnitObj.cpp | 12 void GrTextureUnitObj::setTexture(GrTextureObj *texture) { 22 fTexture = texture;
|
/external/skqp/tools/gpu/gl/debug/ |
GrTextureUnitObj.cpp | 12 void GrTextureUnitObj::setTexture(GrTextureObj *texture) { 22 fTexture = texture;
|