Searched refs:Texture (Results 1 - 25 of 51) sorted by relevance

123

/frameworks/native/services/surfaceflinger/RenderEngine/
H A DTexture.cpp19 #include "Texture.h"
23 Texture::Texture() : function in class:android::Texture
28 Texture::Texture(Target textureTarget, uint32_t textureName) : function in class:android::Texture
33 void Texture::init(Target textureTarget, uint32_t textureName) {
38 Texture::~Texture() {
42 void Texture::setMatrix(float const* matrix) {
46 void Texture
[all...]
H A DTexture.h25 class Texture { class in namespace:android
36 Texture();
37 Texture(Target textureTarget, uint32_t textureName);
38 ~Texture();
H A DDescription.h18 #include "Texture.h"
45 // Texture this layer uses
46 Texture mTexture;
64 void setTexture(const Texture& texture);
H A DGLES11RenderEngine.h35 class Texture;
65 virtual void setupLayerTexturing(const Texture& texture);
H A DGLES20RenderEngine.h37 class Texture;
80 virtual void setupLayerTexturing(const Texture& texture);
H A DRenderEngine.h39 class Texture;
103 virtual void setupLayerTexturing(const Texture& texture) = 0;
/frameworks/base/libs/hwui/tests/unit/
H A DGpuMemoryTrackerTests.cpp33 TestGPUObject() : GpuMemoryTracker(GpuObjectType::Texture) {}
55 ASSERT_EQ(0, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture));
56 ASSERT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture));
59 ASSERT_EQ(1, GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture));
61 ASSERT_EQ(500, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture));
63 ASSERT_EQ(1000, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture));
65 ASSERT_EQ(300, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture));
67 ASSERT_EQ(0, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture));
68 ASSERT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture));
H A DGradientCacheTests.cpp33 Texture* texture = cache.get(colors, positions, 3);
/frameworks/base/libs/hwui/
H A DTextureCache.h33 class Texture;
57 class TextureCache : public OnEntryRemoved<uint32_t, Texture*> {
66 void operator()(uint32_t&, Texture*& texture) override;
74 * Attempts to precache the SkBitmap. Returns true if a Texture was successfully
75 * acquired for the bitmap, false otherwise. If a Texture was acquired it is
84 Texture* get(const SkBitmap* bitmap) {
92 Texture* getAndBypassAtlas(const SkBitmap* bitmap) {
136 Texture* get(const SkBitmap* bitmap, AtlasUsageType atlasUsageType);
137 Texture* getCachedTexture(const SkBitmap* bitmap, AtlasUsageType atlasUsageType);
139 LruCache<uint32_t, Texture*> mCach
[all...]
H A DAssetAtlas.cpp41 mTexture = new Texture(caches);
69 Texture* AssetAtlas::getEntryTexture(const SkPixelRef* pixelRef) const {
78 struct DelegateTexture: public Texture {
79 DelegateTexture(Caches& caches, Texture* delegate)
80 : Texture(caches), mDelegate(delegate) { }
93 Texture* const mDelegate;
117 Texture* texture = new DelegateTexture(caches, mTexture);
H A DTexture.h35 class Texture : public GpuMemoryTracker { class in namespace:android::uirenderer
37 Texture(Caches& caches) function in class:android::uirenderer::Texture
38 : GpuMemoryTracker(GpuObjectType::Texture)
42 virtual ~Texture() { }
77 * Updates this Texture with the contents of the provided SkBitmap,
139 * Whether or not the Texture is marked in use and thus not evictable for
170 }; // struct Texture
174 AutoTexture(Texture* texture)
183 Texture* const texture;
H A DAssetAtlas.h20 #include "Texture.h"
56 Texture* texture;
87 Entry(SkPixelRef* pixelRef, Texture* texture, const UvMapper& mapper,
157 Texture* getEntryTexture(const SkPixelRef* pixelRef) const;
162 Texture* mTexture;
H A DSkiaShader.h34 class Texture;
55 Texture* bitmapTexture;
72 Texture* gradientTexture;
H A DGpuMemoryTracker.cpp18 #include "Texture.h"
36 "Texture",
122 std::vector<const Texture*> freeList;
124 if (obj->objectType() == GpuObjectType::Texture) {
125 const Texture* texture = static_cast<Texture*>(obj);
134 const_cast<Texture*>(texture)->deleteTexture();
H A DTextureCache.cpp23 #include "Texture.h"
36 : mCache(LruCache<uint32_t, Texture*>::kUnlimitedCapacity)
69 void TextureCache::operator()(uint32_t&, Texture*& texture) {
76 ALOGD("Texture deleted, size = %d", texture->bitmapSize);
92 LruCache<uint32_t, Texture*>::Iterator iter(mCache);
109 // Returns a prepared Texture* that either is already in the cache or can fit
111 Texture* TextureCache::getCachedTexture(const SkBitmap* bitmap, AtlasUsageType atlasUsageType) {
119 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID());
130 Texture* oldest = mCache.peekOldestValue();
139 texture = new Texture(Cache
[all...]
H A DGradientCache.h32 class Texture;
104 class GradientCache: public OnEntryRemoved<GradientCacheEntry, Texture*> {
113 void operator()(GradientCacheEntry& shader, Texture*& texture) override;
118 Texture* get(uint32_t* colors, float* positions, int count);
139 Texture* addLinearGradient(GradientCacheEntry& gradient,
143 const uint32_t width, const uint32_t height, Texture* texture);
173 LruCache<GradientCacheEntry, Texture*> mCache;
H A DGlop.h36 class Texture;
86 * vertex/index/Texture/RoundRectClipState pointers prevent this from
122 Texture* texture;
H A DTexture.cpp18 #include "Texture.h"
47 void Texture::setWrapST(GLenum wrapS, GLenum wrapT, bool bindTexture, bool force,
63 void Texture::setFilterMinMag(GLenum min, GLenum mag, bool bindTexture, bool force,
81 void Texture::deleteTexture() {
86 bool Texture::updateSize(uint32_t width, uint32_t height, GLint format) {
97 void Texture::resetCachedParams() {
104 void Texture::upload(GLint internalformat, uint32_t width, uint32_t height,
202 void Texture::upload(const SkBitmap& bitmap) {
210 ATRACE_FORMAT("Upload %ux%u Texture", bitmap.width(), bitmap.height());
265 void Texture
[all...]
H A DGlopBuilder.h34 class Texture;
62 GlopBuilder& setFillTexturePaint(Texture& texture, const int textureFillFlags,
70 GlopBuilder& setFillLayer(Texture& texture, const SkColorFilter* colorFilter,
73 // TODO: Texture should probably know and own its target.
76 GlopBuilder& setFillExternalTexture(Texture& texture, Matrix4& textureTransform);
H A DGpuMemoryTracker.h34 Texture = 0, member in class:android::uirenderer::GpuObjectType
H A DGradientCache.cpp66 : mCache(LruCache<GradientCacheEntry, Texture*>::kUnlimitedCapacity)
96 void GradientCache::operator()(GradientCacheEntry&, Texture*& texture) {
108 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) {
110 Texture* texture = mCache.get(gradient);
146 Texture* GradientCache::addLinearGradient(GradientCacheEntry& gradient,
152 Texture* texture = new Texture(Caches::getInstance());
223 const uint32_t width, const uint32_t height, Texture* texture) {
H A DTextDropShadowCache.h28 #include "Texture.h"
113 struct ShadowTexture: public Texture {
114 ShadowTexture(Caches& caches): Texture(caches) {
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DTexture.java20 // Texture is a rectangular image which can be drawn on GLCanvas.
26 // Texture
38 public interface Texture { interface
/frameworks/base/libs/hwui/renderstate/
H A DTextureState.h20 #include "Texture.h"
29 class Texture;
80 Texture* getShadowLutTexture() { return mShadowLutTexture.get(); }
93 std::unique_ptr<Texture> mShadowLutTexture;
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.h54 struct Texture { struct in class:android::BootAnimation
90 status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
94 void drawTime(const Texture& clockTex, const int yPos);
106 Texture mAndroid[2];
107 Texture mClock;

Completed in 442 milliseconds

123