diff options
| author | 2016-08-02 01:07:18 +0000 | |
|---|---|---|
| committer | 2016-08-02 01:07:19 +0000 | |
| commit | e733f862f06dd4fa9a84741ea94866fc2bc2f14e (patch) | |
| tree | 21ec6b9b66ff3c48c99768cfd13af7e7b6f0ef13 /libs/hwui/TextureCache.cpp | |
| parent | afc7e8e9bac644ce2226080800d37b0c31ce83ad (diff) | |
| parent | 4387190d8ec9fe4e953fcfeb093a644b82cf85ed (diff) | |
Merge "Eliminate recents upload jank" into nyc-mr1-dev
Diffstat (limited to 'libs/hwui/TextureCache.cpp')
| -rw-r--r-- | libs/hwui/TextureCache.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/TextureCache.cpp b/libs/hwui/TextureCache.cpp index ade8600ab78b..523924af5ef1 100644 --- a/libs/hwui/TextureCache.cpp +++ b/libs/hwui/TextureCache.cpp @@ -167,6 +167,10 @@ bool TextureCache::prefetchAndMarkInUse(void* ownerToken, const SkBitmap* bitmap return texture; } +bool TextureCache::prefetch(const SkBitmap* bitmap) { + return getCachedTexture(bitmap, AtlasUsageType::Use); +} + Texture* TextureCache::get(const SkBitmap* bitmap, AtlasUsageType atlasUsageType) { Texture* texture = getCachedTexture(bitmap, atlasUsageType); |