java.lang.Object | |
↳ | com.cooliris.media.BitmapManager |
This class provides several utilities to cancel bitmap decoding. The function decodeFileDescriptor() is used to decode a bitmap. During decoding if another thread wants to cancel it, it calls the function cancelThreadDecoding() specifying the Thread which is in decoding. cancelThreadDecoding() is sticky until allowThreadDecoding() is called. You can also cancel decoding for a set of threads using ThreadSet as the parameter for cancelThreadDecoding. To put a thread into a ThreadSet, use the add() method. A ThreadSet holds (weak) references to the threads, so you don't need to remove Thread from it if some thread dies.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BitmapManager.ThreadSet |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The following two methods are used to allow/cancel a set of threads for
bitmap decoding.
| |||||||||||
The following three methods are used to keep track of which thread is
being disabled for bitmap decoding.
| |||||||||||
The real place to delegate bitmap decoding to BitmapFactory.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The following two methods are used to allow/cancel a set of threads for bitmap decoding.
The following three methods are used to keep track of which thread is being disabled for bitmap decoding.
The real place to delegate bitmap decoding to BitmapFactory.