#include <image_cache.hpp>
◆ ImageCache()
| pulp::view::ImageCache::ImageCache |
( |
| ) |
|
|
default |
◆ clear()
| void pulp::view::ImageCache::clear |
( |
| ) |
|
Drop everything rebuildable.
Wired to Processor::on_memory_pressure(Critical) at the host layer.
◆ get()
| const DecodedImage * pulp::view::ImageCache::get |
( |
const std::string & | uri | ) |
|
Look up (and decode if absent) the image at uri.
Returns nullptr on decode failure.
◆ set_byte_budget()
| void pulp::view::ImageCache::set_byte_budget |
( |
std::size_t | bytes | ) |
|
|
inline |
Soft byte cap.
When insertions push total_bytes past this, LRU entries are evicted until it fits. A cap of 0 disables trimming (useful in tests).
◆ set_decoder()
◆ set_releaser()
◆ stats()
The documentation for this class was generated from the following file: