Merge "TextLine cache is used, even for long lines of text." into honeycomb
This commit is contained in:
committed by
Android (Google) Code Review
commit
b6b15dca72
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user