/* Check if there are older draw task overlapping the area of  */
static bool is_independent(lv_layer_t *layer, lv_draw_task_t *t_check)
/* Check if there are older draw task overlapping the area of  */
static bool is_independent(lv_layer_t *layer, lv_draw_task_t *t_check)
{
    LV_PROFILER_BEGIN;
    lv_draw_task_t * t = layer->draw_task_head;
    while(t && t != t_check) {
        if(t->state != LV_DRAW_TASK_STATE_READY) {
            lv_area_t a;
            if(_lv_area_intersect(&a, &t->_real_area, &t_check->_real_area)) {
                LV_PROFILER_END;
                return false;
            }
        }
        t = t->next;
    }
    LV_PROFILER_END;
    return true;
}