5#ifndef FLUTTER_SHELL_PLATFORM_ANDROID_IMAGE_LRU_H_
6#define FLUTTER_SHELL_PLATFORM_ANDROID_IMAGE_LRU_H_
52 std::array<Data, kImageReaderSwapchainSize> images_;
HardwareBufferKey AddImage(const sk_sp< flutter::DlImage > &image, HardwareBufferKey key)
Add a new image to the cache with a key, returning the key of the LRU entry that was removed.
sk_sp< flutter::DlImage > FindImage(std::optional< HardwareBufferKey > key)
Retrieve the image associated with the given [key], or nullptr.
void Clear()
Remove all entires from the image cache.
sk_sp< const SkImage > image
static constexpr size_t kImageReaderSwapchainSize
struct PathData * Data(SkPath *path)
uint64_t HardwareBufferKey