From 5865086aa84cae5e5505698ccf115a53a1b6b4fa Mon Sep 17 00:00:00 2001 From: Akemi Date: Wed, 6 Jun 2018 17:04:40 +0200 Subject: cocoa-cb: remove pre-allocation of window, view and layer the pre-allocation was needed because the layer allocated a opengl context async itself and we couldn't influence that. so we had to start the core after the context was actually allocated. furthermore a window, view and layer hierarchy had to be created so the layer would create a context. now, instead of relying on the layer to create a context we do this manually and re-use that context later when the layer wants to create one async itself. --- osdep/macosx_application.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'osdep/macosx_application.h') diff --git a/osdep/macosx_application.h b/osdep/macosx_application.h index 96a861fa35..c04f479c5b 100644 --- a/osdep/macosx_application.h +++ b/osdep/macosx_application.h @@ -20,6 +20,11 @@ #include "osdep/macosx_menubar.h" +struct macos_opts { + int macos_title_bar_style; + int macos_fs_animation_duration; +}; + // multithreaded wrapper for mpv_main int cocoa_main(int argc, char *argv[]); void cocoa_register_menu_item_action(MPMenuKey key, void* action); -- cgit v1.2.3