Skip to content

Commit

Permalink
fix(vg_lite): remove unnecessary grad image checks (#7443)
Browse files Browse the repository at this point in the history
Signed-off-by: pengyiqiang <[email protected]>
Co-authored-by: pengyiqiang <[email protected]>
  • Loading branch information
FASTSHIFT and pengyiqiang authored Dec 11, 2024
1 parent 85402e8 commit fdeb63f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/draw/vg_lite/lv_vg_lite_grad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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(
Expand Down

0 comments on commit fdeb63f

Please sign in to comment.