perf(vg_lite): add stroke path cache to improve drawing performance (#6502)

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
VIFEX
2024-07-25 04:40:00 +08:00
committed by GitHub
parent efbb983c16
commit 42eec5fb42
12 changed files with 606 additions and 83 deletions

View File

@@ -327,6 +327,7 @@ void lv_vg_lite_path_end(lv_vg_lite_path_t * path)
{
LV_ASSERT_NULL(path);
lv_vg_lite_path_append_op(path, VLC_OP_END);
path->base.add_end = 1;
}
void lv_vg_lite_path_append_rect(
@@ -589,6 +590,15 @@ void lv_vg_lite_path_for_each_data(const vg_lite_path_t * path, lv_vg_lite_path_
}
}
void lv_vg_lite_path_append_path(lv_vg_lite_path_t * dest, const lv_vg_lite_path_t * src)
{
LV_ASSERT_NULL(dest);
LV_ASSERT_NULL(src);
LV_ASSERT(dest->base.format == dest->base.format);
lv_vg_lite_path_append_data(dest, src->base.path, src->base.path_length);
}
/**********************
* STATIC FUNCTIONS
**********************/