Closed vince-styling closed 1 year ago
The bitmap cache is probably something that should die indeed: I used to share bitmap cache between different gifs, but I don't think it's necessary. I should just swap between two gifs, current and next, especially now that I modified to only have ARGB_8888
Decided that indeed, swaping with the pixel buffer only was sufficient. This reduces the memory usage of the GifDrawable, nice!
the BitmapCache is good for preload next frame, but it allocating two more bitmaps in memory, for me, I turn to single bitmap, that means I can't benefit from the prepareNextFrame work, but it doesn't matter as I have some other adjustments make me discard your preload job.
below are the key code, omit some unimportant lines