fix(vg_lite): check for better draw unit (#8040)

Signed-off-by: yushuailong1 <yushuailong1@xiaomi.com>
This commit is contained in:
yushuailong
2025-04-03 20:13:19 +08:00
committed by GitHub
parent 1ff8ea1da0
commit 7c56d0ebb4
+6 -3
View File
@@ -277,9 +277,12 @@ static int32_t draw_evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task)
return 0;
}
/* The draw unit is able to draw this task. */
task->preference_score = 80;
task->preferred_draw_unit_id = VG_LITE_DRAW_UNIT_ID;
if(task->preference_score > 80) {
/* The draw unit is able to draw this task. */
task->preference_score = 80;
task->preferred_draw_unit_id = VG_LITE_DRAW_UNIT_ID;
}
return 1;
}