OSDN Git Service

Replace various BitmapPools with a smarter unified pool
authorBobby Georgescu <georgescu@google.com>
Tue, 19 Feb 2013 23:49:14 +0000 (15:49 -0800)
committerBobby Georgescu <georgescu@google.com>
Fri, 22 Feb 2013 20:56:23 +0000 (12:56 -0800)
commitf52ceba89962829aa12f5caba131580e8da85880
treec2b59028ff12abcbfe4552ecb7cb528d795385cc
parenta96e8879473c9f9c937a5f14dbbd35579b4d0952
Replace various BitmapPools with a smarter unified pool

Make all of gallery use a single shared pool, and pave the
way for making the pool more adaptive based on the current
workload.

Change-Id: Ia32561ad50b1b9716ebe2fd32a7bf02737685dac
19 files changed:
src/android/util/Pools.java [new file with mode: 0644]
src/com/android/gallery3d/app/AbstractGalleryActivity.java
src/com/android/gallery3d/app/PhotoDataAdapter.java
src/com/android/gallery3d/data/BitmapPool.java [deleted file]
src/com/android/gallery3d/data/DecodeUtils.java
src/com/android/gallery3d/data/ImageCacheRequest.java
src/com/android/gallery3d/data/MediaItem.java
src/com/android/gallery3d/ingest/IngestService.java
src/com/android/gallery3d/ingest/data/MtpBitmapFetch.java
src/com/android/gallery3d/ui/AlbumLabelMaker.java
src/com/android/gallery3d/ui/AlbumSetSlidingWindow.java
src/com/android/gallery3d/ui/AlbumSlidingWindow.java
src/com/android/gallery3d/ui/BitmapLoader.java
src/com/android/gallery3d/ui/BitmapTileProvider.java
src/com/android/gallery3d/ui/TileImageView.java
src/com/android/gallery3d/ui/TileImageViewAdapter.java
src/com/android/gallery3d/ui/TiledScreenNail.java
src/com/android/photos/data/GalleryBitmapPool.java [new file with mode: 0644]
src/com/android/photos/data/SparseArrayBitmapPool.java [new file with mode: 0644]