From a0a117b4c1a9e45ca4b895df9a355b6922ae2242 Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Thu, 5 Jan 2012 14:34:42 -0800 Subject: [PATCH] Fix bug #5822825 Paint.measureText (char[] text, int index, int count) cannot handle text more than 32K long - DO NOT MERGE - do not clear the smart pointer when the cache entry does not fit the cache size See http://code.google.com/p/android/issues/detail?id=23337 Change-Id: Id4533d9f8a396c310c9215157ec5a4c07f30c7f2 --- core/jni/android/graphics/TextLayoutCache.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/core/jni/android/graphics/TextLayoutCache.cpp b/core/jni/android/graphics/TextLayoutCache.cpp index 662d9187ed902..4f90bbf3fdc8d 100644 --- a/core/jni/android/graphics/TextLayoutCache.cpp +++ b/core/jni/android/graphics/TextLayoutCache.cpp @@ -172,7 +172,6 @@ sp TextLayoutCache::getValue(SkPaint* paint, start, count, contextCount, size, mMaxSize - mSize, endTime, String8(text, count).string()); } - value.clear(); } } else { // This is a cache hit, just log timestamp and user infos