41 |
* <li> May be interpolated: a quality between any two qualities that have been |
* <li> May be interpolated: a quality between any two qualities that have been |
42 |
* given to the MemoryPartitioner API may be given. |
* given to the MemoryPartitioner API may be given. |
43 |
* </ul> |
* </ul> |
44 |
* an example of quality would be DPI (dots per inch) for images. |
* an example of quality would be DPI (dots per inch) for images, or a mipmap level index |
45 |
|
* starting from 0 = (1x1). |
46 |
|
* (i.e. log(DPI)) . |
47 |
*/ |
*/ |
48 |
public interface MemoryConsumer { |
public interface MemoryConsumer { |
|
/** Whether this object can make use of byte amounts less |
|
|
* than getMaxBytes() returns. |
|
|
* For example, images can be scaled down but text cannot. |
|
|
*/ |
|
|
boolean getScalable(); |
|
49 |
/** The maximum number of bytes this object would like to consume. |
/** The maximum number of bytes this object would like to consume. |
50 |
* @param quality The quality at which the maximum bytes are requested. |
* @param quality The quality at which the maximum bytes are requested. |
51 |
*/ |
*/ |