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

* commit 'b6b15dca725b3467ea03fa4c0ae29e6b6e753b27':
  TextLine cache is used, even for long lines of text.
This commit is contained in:
Gilles Debunne
2011-01-25 10:45:15 -08:00
committed by Android Git Automerger

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;
}
}
}