57 |
* is called, is the new one. |
* is called, is the new one. |
58 |
* <p> |
* <p> |
59 |
* <b>This method may only be called by {@link MemoryPartitioner}.</b> |
* <b>This method may only be called by {@link MemoryPartitioner}.</b> |
60 |
|
* @param priority The priority to use for scheduling |
61 |
|
* this operation. |
62 |
* @param bytes The maximum amount of bytes this object should reserve. |
* @param bytes The maximum amount of bytes this object should reserve. |
63 |
* @param quality Maximum quality that should be loaded (if quality is |
* @param quality Maximum quality that should be loaded (if quality is |
64 |
* adjusted in discrete steps, the class may round upwards). |
* adjusted in discrete steps, the class may round upwards). |
67 |
* sizes come in certain increments, less memory will be used |
* sizes come in certain increments, less memory will be used |
68 |
* than needed.. |
* than needed.. |
69 |
*/ |
*/ |
70 |
int setReservation(int bytes, float quality, Obs o); |
int setReservation(float priority, |
71 |
|
int bytes, float quality, Obs o); |
72 |
/** Get the number of bytes currently used. |
/** Get the number of bytes currently used. |
73 |
*/ |
*/ |
74 |
int getReservation(); |
int getReservation(); |