diff options
Diffstat (limited to 'libs/hwui/TextDropShadowCache.cpp')
-rw-r--r-- | libs/hwui/TextDropShadowCache.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/TextDropShadowCache.cpp b/libs/hwui/TextDropShadowCache.cpp index 32567904161c..8f6f860ff14e 100644 --- a/libs/hwui/TextDropShadowCache.cpp +++ b/libs/hwui/TextDropShadowCache.cpp @@ -147,6 +147,9 @@ ShadowTexture* TextDropShadowCache::get(SkPaint* paint, const char* text, uint32 if (mDebugEnabled) { LOGD("Shadow texture created, size = %d", texture->bitmapSize); } + + entry.copyTextLocally(); + mSize += size; mCache.put(entry, texture); } else { |