mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 05:26:18 +08:00
feat(vg_lite): add profiler for vg_lite_set_scissor (#7023)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -1138,6 +1138,7 @@ lv_point_precise_t lv_vg_lite_matrix_transform_point(const vg_lite_matrix_t * ma
|
|||||||
|
|
||||||
void lv_vg_lite_set_scissor_area(const lv_area_t * area)
|
void lv_vg_lite_set_scissor_area(const lv_area_t * area)
|
||||||
{
|
{
|
||||||
|
LV_PROFILER_DRAW_BEGIN;
|
||||||
#if VGLITE_RELEASE_VERSION <= VGLITE_MAKE_VERSION(4,0,57)
|
#if VGLITE_RELEASE_VERSION <= VGLITE_MAKE_VERSION(4,0,57)
|
||||||
/**
|
/**
|
||||||
* In the new version of VG-Lite, vg_lite_set_scissor no longer needs to call vg_lite_enable_scissor and
|
* In the new version of VG-Lite, vg_lite_set_scissor no longer needs to call vg_lite_enable_scissor and
|
||||||
@@ -1155,16 +1156,19 @@ void lv_vg_lite_set_scissor_area(const lv_area_t * area)
|
|||||||
area->y1,
|
area->y1,
|
||||||
area->x2 + 1,
|
area->x2 + 1,
|
||||||
area->y2 + 1));
|
area->y2 + 1));
|
||||||
|
LV_PROFILER_DRAW_END;
|
||||||
}
|
}
|
||||||
|
|
||||||
void lv_vg_lite_disable_scissor(void)
|
void lv_vg_lite_disable_scissor(void)
|
||||||
{
|
{
|
||||||
|
LV_PROFILER_DRAW_BEGIN;
|
||||||
/* Restore full screen scissor */
|
/* Restore full screen scissor */
|
||||||
LV_VG_LITE_CHECK_ERROR(vg_lite_set_scissor(
|
LV_VG_LITE_CHECK_ERROR(vg_lite_set_scissor(
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
LV_HOR_RES,
|
LV_HOR_RES,
|
||||||
LV_VER_RES));
|
LV_VER_RES));
|
||||||
|
LV_PROFILER_DRAW_END;
|
||||||
}
|
}
|
||||||
|
|
||||||
void lv_vg_lite_flush(struct _lv_draw_vg_lite_unit_t * u)
|
void lv_vg_lite_flush(struct _lv_draw_vg_lite_unit_t * u)
|
||||||
|
|||||||
Reference in New Issue
Block a user