summaryrefslogtreecommitdiff
path: root/src/wx/gl_video_view.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-10-21 00:55:52 +0200
committerCarl Hetherington <cth@carlh.net>2020-01-08 21:56:47 +0100
commit5eb8b5c3a1566aef638e9d9df03b88d320735092 (patch)
treeeb33df0144e1784efcf5d46e0dca9e19f6bff8b8 /src/wx/gl_video_view.h
parentca3393a75c1685d1615ff678b58bd3b75fe79cd2 (diff)
Barely-functioning GL playback with new arrangement.
Diffstat (limited to 'src/wx/gl_video_view.h')
-rw-r--r--src/wx/gl_video_view.h18
1 files changed, 13 insertions, 5 deletions
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 <wx/glcanvas.h>
#include <dcp/util.h>
#include <boost/shared_ptr.hpp>
+#include <boost/thread.hpp>
#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<dcp::Size> _size;
+
+ wxGLContext* _context;
+ mutable boost::mutex _context_mutex;
+
+ GLuint _id;
+ boost::optional<dcp::Size> _size;
bool _vsync_enabled;
+ boost::thread* _thread;
};