mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-10 04:37:55 +08:00
chore(vg_lite): minimize the header file inclusion (#9361)
Arduino Lint / lint (push) Has been cancelled
Build Examples with C++ Compiler / build-examples (push) Has been cancelled
MicroPython CI / Build esp32 port (push) Has been cancelled
MicroPython CI / Build rp2 port (push) Has been cancelled
MicroPython CI / Build stm32 port (push) Has been cancelled
MicroPython CI / Build unix port (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_NORMAL_8BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_SDL - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build ESP IDF ESP32S3 (push) Has been cancelled
C/C++ CI / Run tests with 32bit build (push) Has been cancelled
C/C++ CI / Run tests with 64bit build (push) Has been cancelled
BOM Check / bom-check (push) Has been cancelled
Verify that lv_conf_internal.h matches repository state / verify-conf-internal (push) Has been cancelled
Verify the widget property name / verify-property-name (push) Has been cancelled
Verify code formatting / verify-formatting (push) Has been cancelled
Compare file templates with file names / template-check (push) Has been cancelled
Build docs / build-and-deploy (push) Has been cancelled
Test API JSON generator / Test API JSON (push) Has been cancelled
Install LVGL using CMake / build-examples (push) Has been cancelled
Check Makefile / Build using Makefile (push) Has been cancelled
Check Makefile for UEFI / Build using Makefile for UEFI (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/benchmark_results_comment/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/filter_docker_logs/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/serialize_results/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark 32b - lv_conf_perf32b (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark 64b - lv_conf_perf64b (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Save PR Number (push) Has been cancelled
Hardware Performance Test / Hardware Performance Benchmark (push) Has been cancelled
Hardware Performance Test / HW Benchmark - Save PR Number (push) Has been cancelled
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_32B - Ubuntu (push) Has been cancelled
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_64B - Ubuntu (push) Has been cancelled
Port repo release update / run-release-branch-updater (push) Has been cancelled
Verify Font License / verify-font-license (push) Has been cancelled
Verify Kconfig / verify-kconfig (push) Has been cancelled
Arduino Lint / lint (push) Has been cancelled
Build Examples with C++ Compiler / build-examples (push) Has been cancelled
MicroPython CI / Build esp32 port (push) Has been cancelled
MicroPython CI / Build rp2 port (push) Has been cancelled
MicroPython CI / Build stm32 port (push) Has been cancelled
MicroPython CI / Build unix port (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_NORMAL_8BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_SDL - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build ESP IDF ESP32S3 (push) Has been cancelled
C/C++ CI / Run tests with 32bit build (push) Has been cancelled
C/C++ CI / Run tests with 64bit build (push) Has been cancelled
BOM Check / bom-check (push) Has been cancelled
Verify that lv_conf_internal.h matches repository state / verify-conf-internal (push) Has been cancelled
Verify the widget property name / verify-property-name (push) Has been cancelled
Verify code formatting / verify-formatting (push) Has been cancelled
Compare file templates with file names / template-check (push) Has been cancelled
Build docs / build-and-deploy (push) Has been cancelled
Test API JSON generator / Test API JSON (push) Has been cancelled
Install LVGL using CMake / build-examples (push) Has been cancelled
Check Makefile / Build using Makefile (push) Has been cancelled
Check Makefile for UEFI / Build using Makefile for UEFI (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/benchmark_results_comment/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/filter_docker_logs/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/serialize_results/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark 32b - lv_conf_perf32b (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark 64b - lv_conf_perf64b (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Save PR Number (push) Has been cancelled
Hardware Performance Test / Hardware Performance Benchmark (push) Has been cancelled
Hardware Performance Test / HW Benchmark - Save PR Number (push) Has been cancelled
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_32B - Ubuntu (push) Has been cancelled
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_64B - Ubuntu (push) Has been cancelled
Port repo release update / run-release-branch-updater (push) Has been cancelled
Verify Font License / verify-font-license (push) Has been cancelled
Verify Kconfig / verify-kconfig (push) Has been cancelled
Signed-off-by: FASTSHIFT <vifextech@foxmail.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
|
||||
#include "../lv_draw_private.h"
|
||||
#include "lv_draw_vg_lite_type.h"
|
||||
#include "lv_vg_lite_path.h"
|
||||
#include "lv_vg_lite_utils.h"
|
||||
|
||||
@@ -16,7 +16,7 @@ extern "C" {
|
||||
#include "../../lv_conf_internal.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
#include "../lv_draw.h"
|
||||
|
||||
#include "../../draw/lv_draw_vector.h"
|
||||
#include "../../draw/lv_draw_arc.h"
|
||||
#include "../../draw/lv_draw_rect.h"
|
||||
|
||||
@@ -7,9 +7,6 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../../misc/lv_area_private.h"
|
||||
#include "../lv_image_decoder_private.h"
|
||||
#include "../lv_draw_private.h"
|
||||
#include "lv_draw_vg_lite.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
@@ -19,7 +16,8 @@
|
||||
#include "lv_vg_lite_path.h"
|
||||
#include "lv_vg_lite_pending.h"
|
||||
#include "lv_vg_lite_utils.h"
|
||||
#include <math.h>
|
||||
#include "../../misc/lv_area_private.h"
|
||||
#include "../lv_image_decoder_private.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../../misc/lv_area_private.h"
|
||||
#include "../lv_draw_private.h"
|
||||
#include "lv_draw_vg_lite.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
@@ -17,6 +15,7 @@
|
||||
#include "lv_vg_lite_utils.h"
|
||||
#include "lv_vg_lite_path.h"
|
||||
#include "lv_vg_lite_math.h"
|
||||
#include "../../misc/lv_area_private.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../../misc/lv_area_private.h"
|
||||
#include "lv_draw_vg_lite.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
|
||||
#include "lv_draw_vg_lite_type.h"
|
||||
#include "../../misc/lv_area_private.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../../misc/lv_area_private.h"
|
||||
#include "lv_draw_vg_lite.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
@@ -16,6 +15,7 @@
|
||||
#include "lv_vg_lite_path.h"
|
||||
#include "lv_vg_lite_utils.h"
|
||||
#include "lv_vg_lite_grad.h"
|
||||
#include "../../misc/lv_area_private.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -7,10 +7,6 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../../misc/lv_area_private.h"
|
||||
#include "../lv_image_decoder_private.h"
|
||||
#include "../lv_draw_image_private.h"
|
||||
#include "../lv_draw_private.h"
|
||||
#include "lv_draw_vg_lite.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
@@ -20,6 +16,8 @@
|
||||
#include "lv_vg_lite_path.h"
|
||||
#include "lv_vg_lite_pending.h"
|
||||
#include "lv_vg_lite_utils.h"
|
||||
#include "../../misc/lv_area_private.h"
|
||||
#include "../lv_image_decoder_private.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -7,11 +7,10 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../../lvgl.h"
|
||||
#include "lv_draw_vg_lite.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
|
||||
#include "lv_draw_vg_lite.h"
|
||||
#include "lv_draw_vg_lite_type.h"
|
||||
#include "lv_vg_lite_utils.h"
|
||||
#include "lv_vg_lite_path.h"
|
||||
@@ -23,7 +22,6 @@
|
||||
#include "../lv_draw_label_private.h"
|
||||
#include "../lv_draw_image_private.h"
|
||||
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
*********************/
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
|
||||
#include "lv_draw_vg_lite_type.h"
|
||||
#include "lv_vg_lite_utils.h"
|
||||
#include "lv_vg_lite_path.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../../misc/lv_area_private.h"
|
||||
#include "lv_draw_vg_lite.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
@@ -16,6 +15,7 @@
|
||||
#include "lv_vg_lite_math.h"
|
||||
#include "lv_vg_lite_path.h"
|
||||
#include "lv_vg_lite_utils.h"
|
||||
#include "../../misc/lv_area_private.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -7,9 +7,6 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../../misc/lv_area_private.h"
|
||||
#include "../sw/lv_draw_sw_mask_private.h"
|
||||
#include "../lv_draw_mask_private.h"
|
||||
#include "lv_draw_vg_lite.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
@@ -17,6 +14,9 @@
|
||||
#include "lv_vg_lite_utils.h"
|
||||
#include "lv_draw_vg_lite_type.h"
|
||||
#include "lv_vg_lite_path.h"
|
||||
#include "../../misc/lv_area_private.h"
|
||||
#include "../sw/lv_draw_sw_mask_private.h"
|
||||
#include "../lv_draw_mask_private.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -7,15 +7,15 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../../misc/lv_area_private.h"
|
||||
#include "lv_draw_vg_lite.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
|
||||
#include "lv_draw_vg_lite_type.h"
|
||||
#include "lv_vg_lite_utils.h"
|
||||
#include "lv_vg_lite_path.h"
|
||||
#include "lv_draw_vg_lite_type.h"
|
||||
#include "lv_vg_lite_grad.h"
|
||||
#include "../../misc/lv_area_private.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -42,7 +42,7 @@ extern "C" {
|
||||
struct _lv_vg_lite_pending_t;
|
||||
struct _lv_vg_lite_grad_ctx_t;
|
||||
|
||||
struct _lv_draw_vg_lite_unit_t {
|
||||
typedef struct _lv_draw_vg_lite_unit_t {
|
||||
lv_draw_unit_t base_unit;
|
||||
lv_draw_task_t * task_act;
|
||||
lv_area_t current_scissor_area;
|
||||
@@ -63,7 +63,7 @@ struct _lv_draw_vg_lite_unit_t {
|
||||
vg_lite_matrix_t global_matrix;
|
||||
struct _lv_vg_lite_path_t * global_path;
|
||||
bool path_in_use;
|
||||
};
|
||||
} lv_draw_vg_lite_unit_t;
|
||||
|
||||
/**********************
|
||||
* GLOBAL PROTOTYPES
|
||||
|
||||
@@ -7,15 +7,14 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../lv_image_decoder_private.h"
|
||||
#include "lv_vg_lite_decoder.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
|
||||
#include "lv_vg_lite_utils.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "../../core/lv_global.h"
|
||||
#include "../lv_image_decoder_private.h"
|
||||
#include "../../libs/bin_decoder/lv_bin_decoder.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../lv_image_decoder.h"
|
||||
#include "../../lv_conf_internal.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../lv_draw_vector_private.h"
|
||||
#include "lv_vg_lite_grad.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE && LV_USE_VECTOR_GRAPHIC
|
||||
@@ -15,8 +14,7 @@
|
||||
#include "lv_draw_vg_lite_type.h"
|
||||
#include "lv_vg_lite_pending.h"
|
||||
#include "lv_vg_lite_math.h"
|
||||
#include "../../misc/lv_types.h"
|
||||
#include "../../stdlib/lv_string.h"
|
||||
#include "../lv_draw_vector_private.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../../lvgl.h"
|
||||
#include "../../lv_conf_internal.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE && LV_USE_VECTOR_GRAPHIC
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
|
||||
#include "lv_draw_vg_lite_type.h"
|
||||
#include "lv_vg_lite_math.h"
|
||||
#include <float.h>
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -17,7 +17,6 @@ extern "C" {
|
||||
#include "lv_vg_lite_utils.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
#include <float.h>
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
@@ -31,7 +30,7 @@ extern "C" {
|
||||
**********************/
|
||||
|
||||
typedef struct _lv_vg_lite_path_t lv_vg_lite_path_t;
|
||||
typedef struct _lv_draw_vg_lite_unit_t lv_draw_vg_lite_unit_t;
|
||||
struct _lv_draw_vg_lite_unit_t;
|
||||
|
||||
typedef void (*lv_vg_lite_path_iter_cb_t)(void * user_data, uint8_t op_code, const float * data, uint32_t len);
|
||||
|
||||
@@ -39,17 +38,17 @@ typedef void (*lv_vg_lite_path_iter_cb_t)(void * user_data, uint8_t op_code, con
|
||||
* GLOBAL PROTOTYPES
|
||||
**********************/
|
||||
|
||||
void lv_vg_lite_path_init(lv_draw_vg_lite_unit_t * unit);
|
||||
void lv_vg_lite_path_init(struct _lv_draw_vg_lite_unit_t * unit);
|
||||
|
||||
void lv_vg_lite_path_deinit(lv_draw_vg_lite_unit_t * unit);
|
||||
void lv_vg_lite_path_deinit(struct _lv_draw_vg_lite_unit_t * unit);
|
||||
|
||||
lv_vg_lite_path_t * lv_vg_lite_path_create(vg_lite_format_t data_format);
|
||||
|
||||
void lv_vg_lite_path_destroy(lv_vg_lite_path_t * path);
|
||||
|
||||
lv_vg_lite_path_t * lv_vg_lite_path_get(lv_draw_vg_lite_unit_t * unit, vg_lite_format_t data_format);
|
||||
lv_vg_lite_path_t * lv_vg_lite_path_get(struct _lv_draw_vg_lite_unit_t * unit, vg_lite_format_t data_format);
|
||||
|
||||
void lv_vg_lite_path_drop(lv_draw_vg_lite_unit_t * unit, lv_vg_lite_path_t * path);
|
||||
void lv_vg_lite_path_drop(struct _lv_draw_vg_lite_unit_t * unit, lv_vg_lite_path_t * path);
|
||||
|
||||
void lv_vg_lite_path_reset(lv_vg_lite_path_t * path, vg_lite_format_t data_format);
|
||||
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
|
||||
#include "../../misc/lv_assert.h"
|
||||
#include "../../misc/lv_array.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
*********************/
|
||||
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../../lvgl.h"
|
||||
#include "../../misc/lv_types.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
|
||||
|
||||
@@ -11,9 +11,8 @@
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE && LV_USE_VECTOR_GRAPHIC
|
||||
|
||||
#include "lv_vg_lite_path.h"
|
||||
#include "lv_draw_vg_lite_type.h"
|
||||
#include "lv_vg_lite_math.h"
|
||||
#include "lv_vg_lite_path.h"
|
||||
#include "../lv_draw_vector_private.h"
|
||||
|
||||
/*********************
|
||||
|
||||
@@ -7,18 +7,19 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../lv_image_decoder_private.h"
|
||||
#include "lv_vg_lite_utils.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
|
||||
#include "lv_draw_vg_lite_type.h"
|
||||
#include "lv_vg_lite_decoder.h"
|
||||
#include "lv_vg_lite_path.h"
|
||||
#include "lv_vg_lite_pending.h"
|
||||
#include "lv_vg_lite_grad.h"
|
||||
#include "lv_draw_vg_lite_type.h"
|
||||
#include "../../misc/lv_area_private.h"
|
||||
#include <string.h>
|
||||
#include "../../display/lv_display.h"
|
||||
#include "../../draw/lv_draw_image.h"
|
||||
#include "../lv_image_decoder_private.h"
|
||||
#include <math.h>
|
||||
|
||||
/*********************
|
||||
|
||||
@@ -14,13 +14,15 @@ extern "C" {
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#include "../../lvgl.h"
|
||||
#include "../../lv_conf_internal.h"
|
||||
|
||||
#if LV_USE_DRAW_VG_LITE
|
||||
|
||||
#include "../../misc/lv_profiler.h"
|
||||
#include "../../misc/lv_area.h"
|
||||
#include "../../misc/lv_style.h"
|
||||
#include "../../misc/lv_matrix.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#if LV_USE_VG_LITE_THORVG
|
||||
#include "../../debugging/vg_lite_tvg/vg_lite.h"
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user