Use manual mipmaps to improve image draw performance

This commit is contained in:
Yousef Khadadeh 2026-02-16 18:19:17 +03:00
parent ddface1de6
commit 9216be3b7c
2 changed files with 33 additions and 3 deletions

View file

@ -19,6 +19,7 @@ class ImageResourceDisplay : public ResourceDisplay {
struct FrameData {
sk_sp<SkImage> data;
float duration;
std::unordered_map<unsigned, sk_sp<SkImage>> mipmapLevels;
};
std::vector<FrameData> frames;