From fdeb63fa2e43efb35c7854bba89b7cc6149ed94f Mon Sep 17 00:00:00 2001 From: VIFEX Date: Wed, 11 Dec 2024 23:00:09 +0800 Subject: [PATCH] fix(vg_lite): remove unnecessary grad image checks (#7443) Signed-off-by: pengyiqiang Co-authored-by: pengyiqiang --- src/draw/vg_lite/lv_vg_lite_grad.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/draw/vg_lite/lv_vg_lite_grad.c b/src/draw/vg_lite/lv_vg_lite_grad.c index ef00481b2..8c2f1001c 100644 --- a/src/draw/vg_lite/lv_vg_lite_grad.c +++ b/src/draw/vg_lite/lv_vg_lite_grad.c @@ -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(