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

12

/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 DGLES20RenderEngine.h37 class Texture;
101 virtual void setupLayerTexturing(const Texture& texture);
H A DDescription.cpp62 void Description::setTexture(const Texture& texture) {
/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 DTextureCacheTests.cpp30 int initialCount = GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture);
36 ASSERT_EQ(GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture), initialCount + 1);
38 ASSERT_EQ(GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture), initialCount);
H A DGradientCacheTests.cpp33 Texture* texture = cache.get(colors, positions, 3);
/frameworks/base/libs/hwui/
H A DTextureCache.h38 class Texture;
60 class TextureCache : public OnEntryRemoved<uint32_t, Texture*> {
69 void operator()(uint32_t&, Texture*& texture) override;
77 * Attempts to precache the SkBitmap. Returns true if a Texture was successfully
78 * acquired for the bitmap, false otherwise. If a Texture was acquired it is
84 * Attempts to precache the SkBitmap. Returns true if a Texture was successfully
85 * acquired for the bitmap, false otherwise. Does not mark the Texture
94 Texture* get(Bitmap* bitmap);
125 Texture* getCachedTexture(Bitmap* bitmap);
126 Texture* createTextur
[all...]
H A DTextureCache.cpp22 #include "Texture.h"
36 : mCache(LruCache<uint32_t, Texture*>::kUnlimitedCapacity)
68 void TextureCache::operator()(uint32_t&, Texture*& texture) {
75 ALOGD("Texture deleted, size = %d", texture->bitmapSize);
87 LruCache<uint32_t, Texture*>::Iterator iter(mCache);
104 Texture* TextureCache::createTexture(Bitmap* bitmap) {
105 Texture* texture = new Texture(Caches::getInstance());
112 // Returns a prepared Texture* that either is already in the cache or can fit
114 Texture* TextureCach
[all...]
H A DSkiaShader.h32 class Texture;
52 Texture* bitmapTexture;
68 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 DGradientCache.h34 class Texture;
106 class GradientCache: public OnEntryRemoved<GradientCacheEntry, Texture*> {
115 void operator()(GradientCacheEntry& shader, Texture*& texture) override;
120 Texture* get(uint32_t* colors, float* positions, int count);
141 Texture* addLinearGradient(GradientCacheEntry& gradient,
145 const uint32_t width, const uint32_t height, Texture* texture);
165 LruCache<GradientCacheEntry, Texture*> mCache;
H A DTexture.h49 class Texture : public GpuMemoryTracker { class in namespace:android::uirenderer
57 explicit Texture(Caches& caches) function in class:android::uirenderer::Texture
58 : GpuMemoryTracker(GpuObjectType::Texture)
62 virtual ~Texture() { }
95 * Updates this Texture with the contents of the provided Bitmap,
188 * Whether or not the Texture is marked in use and thus not evictable for
225 }; // struct Texture
229 explicit AutoTexture(Texture* texture)
238 Texture* const texture;
H A DGlLayer.h21 #include "Texture.h"
63 inline Texture& getTexture() {
91 Texture texture;
H A DGlop.h34 class Texture;
84 * vertex/index/Texture/RoundRectClipState pointers prevent this from
120 Texture* texture;
H A DTexture.cpp18 #include "Texture.h"
54 void Texture::setWrapST(GLenum wrapS, GLenum wrapT, bool bindTexture, bool force) {
68 void Texture::setFilterMinMag(GLenum min, GLenum mag, bool bindTexture, bool force) {
84 void Texture::deleteTexture() {
95 bool Texture::updateLayout(uint32_t width, uint32_t height, GLint internalFormat,
113 void Texture::resetCachedParams() {
120 void Texture::upload(GLint internalFormat, uint32_t width, uint32_t height,
140 void Texture::uploadHardwareBitmapToTexture(GraphicBuffer* buffer) {
195 void Texture::colorTypeToGlFormatAndType(const Caches& caches, SkColorType colorType,
247 SkBitmap Texture
[all...]
H A DGlopBuilder.h35 class Texture;
65 GlopBuilder& setFillTexturePaint(Texture& texture, const int textureFillFlags,
73 GlopBuilder& setFillLayer(Texture& texture, const SkColorFilter* colorFilter,
78 GlopBuilder& setFillExternalTexture(Texture& texture, Matrix4& textureTransform,
H A DGpuMemoryTracker.h35 Texture = 0, member in class:android::uirenderer::GpuObjectType
H A DGradientCache.cpp66 : mCache(LruCache<GradientCacheEntry, Texture*>::kUnlimitedCapacity)
97 void GradientCache::operator()(GradientCacheEntry&, Texture*& texture) {
109 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) {
111 Texture* texture = mCache.get(gradient);
147 Texture* GradientCache::addLinearGradient(GradientCacheEntry& gradient,
153 Texture* texture = new Texture(Caches::getInstance());
218 const uint32_t width, const uint32_t height, Texture* texture) {
H A DPathCache.h21 #include "Texture.h"
77 struct PathTexture: public Texture {
79 : Texture(caches) {
243 void generateTexture(Bitmap& bitmap, Texture* texture);
H A DTextDropShadowCache.h28 #include "Texture.h"
113 struct ShadowTexture: public Texture {
114 explicit 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.h80 struct Texture { struct in class:android::BootAnimation
88 Texture texture;
134 status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
153 Texture mAndroid[2];

Completed in 2935 milliseconds

12