diff options
| author | Bobby Georgescu <georgescu@google.com> | 2013-05-22 11:12:39 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2013-05-22 11:12:39 -0700 |
| commit | 410635e7f8df429fcecc328bf6191b053b989004 (patch) | |
| tree | cee65b5df71b1fea7b7015089fbe6fb9229af33f /src | |
| parent | 0259312504eddbae2f29a1d8a09892fb0e95d8c8 (diff) | |
| parent | cdc87e62ee28b5022b2e4d0bc756c264cc26d8e9 (diff) | |
| download | android_packages_apps_Gallery2-410635e7f8df429fcecc328bf6191b053b989004.tar.gz android_packages_apps_Gallery2-410635e7f8df429fcecc328bf6191b053b989004.tar.bz2 android_packages_apps_Gallery2-410635e7f8df429fcecc328bf6191b053b989004.zip | |
am cdc87e62: Merge "Fix potential synchronization issue in bitmap pool" into gb-ub-photos-bryce
* commit 'cdc87e62ee28b5022b2e4d0bc756c264cc26d8e9':
Fix potential synchronization issue in bitmap pool
Diffstat (limited to 'src')
| -rw-r--r-- | src/com/android/photos/data/GalleryBitmapPool.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/photos/data/GalleryBitmapPool.java b/src/com/android/photos/data/GalleryBitmapPool.java index a5a17ede2..aca3e4b5c 100644 --- a/src/com/android/photos/data/GalleryBitmapPool.java +++ b/src/com/android/photos/data/GalleryBitmapPool.java @@ -19,7 +19,7 @@ package com.android.photos.data; import android.graphics.Bitmap; import android.graphics.Point; import android.util.Pools.Pool; -import android.util.Pools.SimplePool; +import android.util.Pools.SynchronizedPool; import com.android.photos.data.SparseArrayBitmapPool.Node; @@ -36,7 +36,7 @@ public class GalleryBitmapPool { private int mCapacityBytes; private SparseArrayBitmapPool [] mPools; - private Pool<Node> mSharedNodePool = new SimplePool<Node>(128); + private Pool<Node> mSharedNodePool = new SynchronizedPool<Node>(128); private GalleryBitmapPool(int capacityBytes) { mPools = new SparseArrayBitmapPool[3]; |
