5#include "flutter/shell/platform/android/image_lru.h"
6#include "gtest/gtest.h"
15 EXPECT_EQ(image_lru.
FindImage(1),
nullptr);
52 EXPECT_EQ(image_lru.
FindImage(
i + 1),
nullptr);
static sk_sp< DlImage > Make(const SkImage *image)
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
TEST(DisplayListComplexity, EmptyDisplayList)
static constexpr size_t kImageReaderSwapchainSize