mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(Threaded Video/video_thread_wrapper.c) Cleaning and optimization
This commit is contained in:
parent
1c1d37e959
commit
9e39abcd00
File diff suppressed because it is too large
Load Diff
@ -73,9 +73,7 @@ typedef bool (*custom_font_command_method_t)(const void **font_driver,
|
||||
float font_size, enum font_driver_render_api api,
|
||||
bool is_threaded);
|
||||
|
||||
typedef struct thread_packet thread_packet_t;
|
||||
|
||||
struct thread_packet
|
||||
typedef struct thread_packet
|
||||
{
|
||||
union
|
||||
{
|
||||
@ -166,7 +164,7 @@ struct thread_packet
|
||||
} hdr;
|
||||
} data;
|
||||
enum thread_cmd type;
|
||||
};
|
||||
} thread_packet_t;
|
||||
|
||||
typedef struct thread_video
|
||||
{
|
||||
@ -191,7 +189,6 @@ typedef struct thread_video
|
||||
|
||||
float *alpha_mod;
|
||||
slock_t *alpha_lock;
|
||||
void (*send_and_wait)(struct thread_video *, thread_packet_t*);
|
||||
|
||||
struct
|
||||
{
|
||||
@ -216,7 +213,6 @@ typedef struct thread_video
|
||||
thread_packet_t cmd_data;
|
||||
video_driver_t video_thread;
|
||||
|
||||
|
||||
enum thread_cmd send_cmd;
|
||||
enum thread_cmd reply_cmd;
|
||||
|
||||
@ -235,7 +231,6 @@ typedef struct thread_video
|
||||
bool within_thread;
|
||||
} frame;
|
||||
|
||||
|
||||
bool apply_state_changes;
|
||||
|
||||
bool alive;
|
||||
|
Loading…
x
Reference in New Issue
Block a user