Skip to content

Commit a0a117b

Browse files
author
Fabrice Di Meglio
committed
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
1 parent dacbf67 commit a0a117b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

core/jni/android/graphics/TextLayoutCache.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ sp<TextLayoutCacheValue> TextLayoutCache::getValue(SkPaint* paint,
172172
start, count, contextCount, size, mMaxSize - mSize, endTime,
173173
String8(text, count).string());
174174
}
175-
value.clear();
176175
}
177176
} else {
178177
// This is a cache hit, just log timestamp and user infos

0 commit comments

Comments
 (0)