From 321dce646dc3c2ecfbd72a693d8d9294a6119736 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Tue, 1 Mar 2011 11:45:33 -0800 Subject: Avoid UTF-8 conversions and string copies whenever possible. Change-Id: Ie4584417bbb7247e6c567fbfdb819529e548bb8f --- libs/hwui/TextDropShadowCache.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libs/hwui/TextDropShadowCache.cpp') 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 { -- cgit v1.2.3-59-g8ed1b