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:
_VIFEXTech
2024-01-23 19:17:31 +08:00
committed by GitHub
parent 1a182a70ed
commit 5c9a0cc017
14 changed files with 127 additions and 2 deletions

View File

@@ -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;
}
/**********************