Loading libs/hwui/TextureCache.cpp +0 −10 Original line number Original line Diff line number Diff line Loading @@ -215,16 +215,6 @@ Texture* TextureCache::get(const SkBitmap* bitmap) { return texture; return texture; } } Texture* TextureCache::getTransient(const SkBitmap* bitmap) { Texture* texture = new Texture(Caches::getInstance()); texture->bitmapSize = bitmap->rowBytes() * bitmap->height(); texture->cleanup = true; generateTexture(bitmap, texture, false); return texture; } void TextureCache::releaseTexture(uint32_t pixelRefStableID) { void TextureCache::releaseTexture(uint32_t pixelRefStableID) { Mutex::Autolock _l(mLock); Mutex::Autolock _l(mLock); mGarbage.push(pixelRefStableID); mGarbage.push(pixelRefStableID); Loading libs/hwui/TextureCache.h +0 −5 Original line number Original line Diff line number Diff line Loading @@ -80,11 +80,6 @@ public: * cannot be found in the cache, a new texture is generated. * cannot be found in the cache, a new texture is generated. */ */ Texture* get(const SkBitmap* bitmap); Texture* get(const SkBitmap* bitmap); /** * Returns the texture associated with the specified bitmap. The generated * texture is not kept in the cache. The caller must destroy the texture. */ Texture* getTransient(const SkBitmap* bitmap); /** /** * Removes the texture associated with the specified pixelRef. This is meant * Removes the texture associated with the specified pixelRef. This is meant Loading Loading
libs/hwui/TextureCache.cpp +0 −10 Original line number Original line Diff line number Diff line Loading @@ -215,16 +215,6 @@ Texture* TextureCache::get(const SkBitmap* bitmap) { return texture; return texture; } } Texture* TextureCache::getTransient(const SkBitmap* bitmap) { Texture* texture = new Texture(Caches::getInstance()); texture->bitmapSize = bitmap->rowBytes() * bitmap->height(); texture->cleanup = true; generateTexture(bitmap, texture, false); return texture; } void TextureCache::releaseTexture(uint32_t pixelRefStableID) { void TextureCache::releaseTexture(uint32_t pixelRefStableID) { Mutex::Autolock _l(mLock); Mutex::Autolock _l(mLock); mGarbage.push(pixelRefStableID); mGarbage.push(pixelRefStableID); Loading
libs/hwui/TextureCache.h +0 −5 Original line number Original line Diff line number Diff line Loading @@ -80,11 +80,6 @@ public: * cannot be found in the cache, a new texture is generated. * cannot be found in the cache, a new texture is generated. */ */ Texture* get(const SkBitmap* bitmap); Texture* get(const SkBitmap* bitmap); /** * Returns the texture associated with the specified bitmap. The generated * texture is not kept in the cache. The caller must destroy the texture. */ Texture* getTransient(const SkBitmap* bitmap); /** /** * Removes the texture associated with the specified pixelRef. This is meant * Removes the texture associated with the specified pixelRef. This is meant Loading