opt: reduce Repetitive calculation

This commit is contained in:
DreamMaoMao 2026-02-17 17:26:55 +08:00
parent c3dcee2c8e
commit b1c957dcc5
3 changed files with 351 additions and 410 deletions

View file

@ -717,7 +717,9 @@ get_nearest_output_mode(struct wlr_output *output, int32_t width,
static void client_commit(Client *c);
static void layer_commit(LayerSurface *l);
static void apply_border(Client *c);
static void apply_border(Client *c, int32_t left_offset, int32_t top_offset,
int32_t right_offset, int32_t bottom_offset,
enum corner_location current_corner_location);
static void client_set_opacity(Client *c, double opacity);
static void init_baked_points(void);
static void scene_buffer_apply_opacity(struct wlr_scene_buffer *buffer,