Package 

Class SizeConfigStrategy

  • All Implemented Interfaces:
    com.mobwith.imgmodule.load.engine.bitmap_recycle.LruPoolStrategy

    @RequiresApi(value = Build.VERSION_CODES.KITKAT) 
    public class SizeConfigStrategy
     implements LruPoolStrategy
                        

    Keys Bitmaps using both and the Config returned from getConfig.

    Using both the config and the byte size allows us to safely re-use a greater variety of Bitmaps, which increases the hit rate of the pool and therefore the performance of applications. This class works around #301 by only allowing re-use of Bitmaps with a matching number of bytes per pixel.