feat(vg_lite): add profiler instrumentation (#5434)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -48,12 +48,15 @@ void lv_draw_vg_lite_layer(lv_draw_unit_t * draw_unit, const lv_draw_image_dsc_t
|
||||
if(layer->draw_buf == NULL)
|
||||
return;
|
||||
|
||||
LV_PROFILER_BEGIN;
|
||||
|
||||
/* The GPU output should already be premultiplied RGB */
|
||||
layer->draw_buf->header.flags |= LV_IMAGE_FLAGS_PREMULTIPLIED;
|
||||
|
||||
lv_draw_image_dsc_t new_draw_dsc = *draw_dsc;
|
||||
new_draw_dsc.src = layer->draw_buf;
|
||||
lv_draw_vg_lite_img(draw_unit, &new_draw_dsc, coords, true);
|
||||
LV_PROFILER_END;
|
||||
}
|
||||
|
||||
/**********************
|
||||
|
||||
Reference in New Issue
Block a user