One device's resident texture for an image entity. More...
#include "donner/svg/renderer/geode/GeodeResidentImageComponent.h"
Public Member Functions | |
| GeodeImageResidency (const GeodeImageResidency &)=delete | |
| GeodeImageResidency & | operator= (const GeodeImageResidency &)=delete |
| const GeodeResidentImage * | image () const |
| The resident texture, or null when none is kept. | |
| const std::shared_ptr< GeodeResidentSlab > & | slab () const |
| Slab the texture is parked in when it is dropped, or null. | |
| void | replace (std::shared_ptr< GeodeResidentSlab > slab, std::shared_ptr< const GeodeResidentImage > image) |
Park the current texture, if any, in its slab and keep image instead, parking future drops in slab. | |
| void | reset () |
| Park the current texture, if any, in its slab. | |
One device's resident texture for an image entity.
Dropping or replacing the texture parks it in the document's resident slab for that device, which releases it at the first frame boundary no open frame on the device precedes, so a draw an open frame recorded never samples a released texture.
|
inline |
Park the current texture, if any, in its slab and keep image instead, parking future drops in slab.
| slab | This device's resident slab for the document. |
| image | Texture to keep, or null to keep none. |