Revert "perf(draw): skip empty draw tasks (#6720)" (#6758)

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
VIFEX 2024-08-29 20:48:22 +08:00 committed by GitHub
parent d0f74979f2
commit 2c021b69dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,8 +179,7 @@ void lv_draw_dispatch(void)
while(disp) { while(disp) {
lv_layer_t * layer = disp->layer_head; lv_layer_t * layer = disp->layer_head;
while(layer) { while(layer) {
/* If there are no tasks in the layer, skip it */ if(lv_draw_dispatch_layer(disp, layer))
if(layer->draw_task_head && lv_draw_dispatch_layer(disp, layer))
task_dispatched = true; task_dispatched = true;
layer = layer->next; layer = layer->next;
} }