commit | 321dce646dc3c2ecfbd72a693d8d9294a6119736 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Tue Mar 01 11:45:33 2011 -0800 |
committer | Romain Guy <romainguy@google.com> | Tue Mar 01 11:45:33 2011 -0800 |
tree | f4ab0818521b9e336c5a4ecb83194aa4bc89e557 | |
parent | fbaa6741b61cffa5db8ad843fd4e3cf07ff0b31a [diff] [blame] |
Avoid UTF-8 conversions and string copies whenever possible. Change-Id: Ie4584417bbb7247e6c567fbfdb819529e548bb8f
diff --git a/libs/hwui/TextDropShadowCache.cpp b/libs/hwui/TextDropShadowCache.cpp index 3256790..8f6f860 100644 --- a/libs/hwui/TextDropShadowCache.cpp +++ b/libs/hwui/TextDropShadowCache.cpp
@@ -147,6 +147,9 @@ if (mDebugEnabled) { LOGD("Shadow texture created, size = %d", texture->bitmapSize); } + + entry.copyTextLocally(); + mSize += size; mCache.put(entry, texture); } else {