mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-30 07:06:19 +08:00
refact(draw_vector): standardized draw gradient API (#6344)
Signed-off-by: FASTSHIFT <vifextech@foxmail.com> Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -393,19 +393,14 @@ menu "LVGL configuration"
|
||||
which usually improves performance,
|
||||
but does not guarantee the same rendering quality as the software.
|
||||
|
||||
config LV_VG_LITE_LINEAR_GRAD_CACHE_CNT
|
||||
int "VG-Lite linear gradient image maximum cache number."
|
||||
config LV_VG_LITE_GRAD_CACHE_CNT
|
||||
int "VG-Lite gradient maximum cache number."
|
||||
default 32
|
||||
depends on LV_USE_DRAW_VG_LITE
|
||||
help
|
||||
The memory usage of a single gradient image is 4K bytes.
|
||||
|
||||
config LV_VG_LITE_RADIAL_GRAD_CACHE_CNT
|
||||
int "VG-Lite radial gradient image maximum cache number."
|
||||
default 32
|
||||
depends on LV_USE_DRAW_VG_LITE
|
||||
help
|
||||
The memory usage of a single gradient image is radial grad radius * 4 bytes.
|
||||
The memory usage of a single gradient:
|
||||
linear: 4K bytes.
|
||||
radial: radius * 4K bytes.
|
||||
|
||||
config LV_USE_VECTOR_GRAPHIC
|
||||
bool "Use Vector Graphic APIs"
|
||||
@@ -653,6 +648,11 @@ menu "LVGL configuration"
|
||||
default n
|
||||
depends on LV_USE_VG_LITE_THORVG
|
||||
|
||||
config LV_VG_LITE_THORVG_LINEAR_GRADIENT_EXT_SUPPORT
|
||||
bool "Enable linear gradient extension support"
|
||||
default n
|
||||
depends on LV_USE_VG_LITE_THORVG
|
||||
|
||||
config LV_VG_LITE_THORVG_16PIXELS_ALIGN
|
||||
bool "Enable 16 pixels alignment"
|
||||
default y
|
||||
|
||||
Reference in New Issue
Block a user