feat(cache): rework cache

- based in cache size instead of entry count
- not only for images
- needs to be called manually in decoders (and not the cache manages the decoders)
This commit is contained in:
Gabor Kiss-Vamosi
2023-09-14 23:23:26 +02:00
parent 09c12d0f9c
commit 757877b1fc
25 changed files with 885 additions and 540 deletions

View File

@@ -9,12 +9,12 @@
#include "lv_draw_sw.h"
#if LV_USE_DRAW_SW
#include "../lv_image_cache.h"
#include "../../disp/lv_disp.h"
#include "../../disp/lv_disp_private.h"
#include "../../misc/lv_log.h"
#include "../../core/lv_refr.h"
#include "../../stdlib/lv_mem.h"
#include "../../misc/lv_cache.h"
#include "../../misc/lv_math.h"
#include "../../misc/lv_color.h"
#include "../../stdlib/lv_string.h"