com.bumptech.glide.load.engine.cache
Class MemorySizeCalculator

java.lang.Object
  extended by com.bumptech.glide.load.engine.cache.MemorySizeCalculator

public class MemorySizeCalculator
extends Object

A calculator that tries to intelligently determine cache sizes for a given device based on some constants and the devices screen density, width, and height.


Constructor Summary
MemorySizeCalculator(Context context)
           
 
Method Summary
 int getBitmapPoolSize()
          Returns the recommended bitmap pool size for the device it is run on in bytes.
 int getMemoryCacheSize()
          Returns the recommended memory cache size for the device it is run on in bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemorySizeCalculator

public MemorySizeCalculator(Context context)
Method Detail

getMemoryCacheSize

public int getMemoryCacheSize()
Returns the recommended memory cache size for the device it is run on in bytes.


getBitmapPoolSize

public int getBitmapPoolSize()
Returns the recommended bitmap pool size for the device it is run on in bytes.