summaryrefslogtreecommitdiff
path: root/libs/hwui/TextureCache.cpp
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2016-08-02 01:07:18 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-08-02 01:07:19 +0000
commite733f862f06dd4fa9a84741ea94866fc2bc2f14e (patch)
tree21ec6b9b66ff3c48c99768cfd13af7e7b6f0ef13 /libs/hwui/TextureCache.cpp
parentafc7e8e9bac644ce2226080800d37b0c31ce83ad (diff)
parent4387190d8ec9fe4e953fcfeb093a644b82cf85ed (diff)
Merge "Eliminate recents upload jank" into nyc-mr1-dev
Diffstat (limited to 'libs/hwui/TextureCache.cpp')
-rw-r--r--libs/hwui/TextureCache.cpp4
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);