Merge "TextLine cache is used, even for long lines of text." into honeycomb

This commit is contained in:
Gilles Debunne
2011-01-25 10:43:05 -08:00
committed by Android (Google) Code Review

View File

@@ -90,13 +90,11 @@ class TextLine {
tl.mText = null;
tl.mPaint = null;
tl.mDirections = null;
if (tl.mLen < 250) {
synchronized(cached) {
for (int i = 0; i < cached.length; ++i) {
if (cached[i] == null) {
cached[i] = tl;
break;
}
synchronized(cached) {
for (int i = 0; i < cached.length; ++i) {
if (cached[i] == null) {
cached[i] = tl;
break;
}
}
}