diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-07-08 16:48:46 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-07-10 11:17:55 +0200 |
commit | dd1fbacd25e7f871fd415d4139ecde97f65dacfa (patch) | |
tree | a9ae7fc187105c8cc2ae29359f1012a809e693d4 /android | |
parent | 40499e3db9ab890af13e6e8b47da68191fa11157 (diff) |
LOAndroid3: use CopyOnWriteArrayList in MultiTileLayer
Change-Id: Idb7fa8234bf74c83295816cb95dcc56e50c05969
Diffstat (limited to 'android')
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/MultiTileLayer.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/MultiTileLayer.java b/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/MultiTileLayer.java index e069a961f59e..0d20b9d8c452 100644 --- a/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/MultiTileLayer.java +++ b/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/MultiTileLayer.java @@ -44,9 +44,8 @@ import android.graphics.RectF; import android.graphics.Region; import android.util.Log; -import java.util.ArrayList; -import java.util.Collections; import java.util.List; +import java.util.concurrent.CopyOnWriteArrayList; /** * Encapsulates the logic needed to draw a layer made of multiple tiles. @@ -61,7 +60,7 @@ public class MultiTileLayer extends Layer { public MultiTileLayer(IntSize tileSize) { super(); mTileSize = tileSize; - mTiles = Collections.synchronizedList(new ArrayList<SubTile>()); + mTiles = new CopyOnWriteArrayList<SubTile>(); mSize = new IntSize(0,0); } |