mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(vg_lite): remove unnecessary grad image checks (#7443)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
parent
85402e806f
commit
fdeb63fa2e
@ -158,8 +158,6 @@ bool lv_vg_lite_draw_grad(
|
||||
lv_vg_lite_matrix_multiply(grad_mat_p, grad_matrix);
|
||||
grad_point_to_matrix(grad_mat_p, grad->x1, grad->y1, grad->x2, grad->y2);
|
||||
|
||||
LV_VG_LITE_ASSERT_SRC_BUFFER(&linear_grad->image);
|
||||
|
||||
LV_PROFILER_DRAW_BEGIN_TAG("vg_lite_draw_grad");
|
||||
LV_VG_LITE_CHECK_ERROR(vg_lite_draw_grad(
|
||||
buffer,
|
||||
@ -177,8 +175,6 @@ bool lv_vg_lite_draw_grad(
|
||||
LV_ASSERT_NULL(grad_mat_p);
|
||||
*grad_mat_p = *grad_matrix;
|
||||
|
||||
LV_VG_LITE_ASSERT_SRC_BUFFER(&linear_grad->image);
|
||||
|
||||
LV_PROFILER_DRAW_BEGIN_TAG("vg_lite_draw_linear_grad");
|
||||
LV_VG_LITE_CHECK_ERROR(vg_lite_draw_linear_grad(
|
||||
buffer,
|
||||
@ -199,8 +195,6 @@ bool lv_vg_lite_draw_grad(
|
||||
LV_ASSERT_NULL(grad_mat_p);
|
||||
*grad_mat_p = *grad_matrix;
|
||||
|
||||
LV_VG_LITE_ASSERT_SRC_BUFFER(&grad_item->vg.radial.image);
|
||||
|
||||
LV_PROFILER_DRAW_BEGIN_TAG("vg_lite_draw_radial_grad");
|
||||
LV_VG_LITE_CHECK_ERROR(
|
||||
vg_lite_draw_radial_grad(
|
||||
|
Loading…
x
Reference in New Issue
Block a user