summaryrefslogtreecommitdiff
path: root/libs/hwui/TextDropShadowCache.cpp
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-03-01 11:45:33 -0800
committerRomain Guy <romainguy@google.com>2011-03-01 11:45:33 -0800
commit321dce646dc3c2ecfbd72a693d8d9294a6119736 (patch)
treef4ab0818521b9e336c5a4ecb83194aa4bc89e557 /libs/hwui/TextDropShadowCache.cpp
parentfbaa6741b61cffa5db8ad843fd4e3cf07ff0b31a (diff)
Avoid UTF-8 conversions and string copies whenever possible.
Change-Id: Ie4584417bbb7247e6c567fbfdb819529e548bb8f
Diffstat (limited to 'libs/hwui/TextDropShadowCache.cpp')
-rw-r--r--libs/hwui/TextDropShadowCache.cpp3
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 {