X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fgl_video_view.h;h=36edd6b8b979111285a7df2dcc4421efbd37c0f1;hb=cf7b5fd94e50f740ab93f52343610d01c80ac6d5;hp=1e6886f26cd4e91b032558f03d5acd3e486980c1;hpb=c31eb6d664ad26940d56f1d9da1778dd9729a187;p=dcpomatic.git diff --git a/src/wx/gl_video_view.h b/src/wx/gl_video_view.h index 1e6886f26..36edd6b8b 100644 --- a/src/wx/gl_video_view.h +++ b/src/wx/gl_video_view.h @@ -62,14 +62,13 @@ private: void request_one_shot (); void check_for_butler_errors (); void ensure_context (); + void size_changed (wxSizeEvent const &); - /* Mutex for use of _canvas; it's only contended when our ::thread - is started up so this may be overkill. - */ - boost::mutex _canvas_mutex; wxGLCanvas* _canvas; wxGLContext* _context; + boost::atomic _canvas_size; + GLuint _id; boost::optional _size; bool _have_storage;