Take account of changes to default directory for new DCPs (#2058).
[dcpomatic.git] / src / wx / gl_video_view.h
index d8ee65da63e04d63fc572676d6ff7b9a2c8b24f8..36edd6b8b979111285a7df2dcc4421efbd37c0f1 100644 (file)
@@ -61,14 +61,14 @@ private:
        void thread_playing ();
        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<wxSize> _canvas_size;
+
        GLuint _id;
        boost::optional<dcp::Size> _size;
        bool _have_storage;