fix(vg_lite): fix build break after LV_USE_VECTOR_GRAPHIC is turned off (#8912)

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
VIFEX
2025-09-22 23:20:32 +08:00
committed by GitHub
parent f923a5606b
commit 5889dd51d6
+2
View File
@@ -310,6 +310,7 @@ static void draw_event_cb(lv_event_t * e)
switch(code) { switch(code) {
case LV_EVENT_CANCEL: { case LV_EVENT_CANCEL: {
#if LV_USE_VECTOR_GRAPHIC
/** /**
* Because VG-Lite will deinitialize the context (including the GPU independent heap) * Because VG-Lite will deinitialize the context (including the GPU independent heap)
* before the GPU goes to sleep, it is necessary to first discard and dereference * before the GPU goes to sleep, it is necessary to first discard and dereference
@@ -319,6 +320,7 @@ static void draw_event_cb(lv_event_t * e)
lv_cache_drop_all(lv_vg_lite_grad_ctx_get_cache(unit->grad_ctx), NULL); lv_cache_drop_all(lv_vg_lite_grad_ctx_get_cache(unit->grad_ctx), NULL);
lv_cache_drop_all(unit->stroke_cache, NULL); lv_cache_drop_all(unit->stroke_cache, NULL);
LV_LOG_INFO("dropt all cache"); LV_LOG_INFO("dropt all cache");
#endif
} }
break; break;
default: default: