X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fgl_video_view.h;h=e32a1ede95eeea421b808733ea4b0a91058c5a6f;hp=ba4c7cfdc92df3a32afbc9642f3de5d8264b8fdc;hb=5eb8b5c3a1566aef638e9d9df03b88d320735092;hpb=ca3393a75c1685d1615ff678b58bd3b75fe79cd2 diff --git a/src/wx/gl_video_view.h b/src/wx/gl_video_view.h index ba4c7cfdc..e32a1ede9 100644 --- a/src/wx/gl_video_view.h +++ b/src/wx/gl_video_view.h @@ -23,6 +23,7 @@ #include #include #include +#include #undef None #undef Success @@ -37,18 +38,25 @@ public: return _canvas; } void update (); + void start (); bool vsync_enabled () const { return _vsync_enabled; } private: - void paint (); - void draw (); + void paint (); + void draw (); + void thread (); + wxGLContext* context () const; wxGLCanvas* _canvas; - wxGLContext* _context; - GLuint _id; - boost::optional _size; + + wxGLContext* _context; + mutable boost::mutex _context_mutex; + + GLuint _id; + boost::optional _size; bool _vsync_enabled; + boost::thread* _thread; };