summaryrefslogtreecommitdiff
path: root/src/wx/gl_video_view.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-04-23 01:09:38 +0200
committerCarl Hetherington <cth@carlh.net>2021-04-23 01:09:38 +0200
commit178cb8bfa20aac8e5dd0474b21c0e7a95419b546 (patch)
tree3efa95115743094967e7bb658295362f3b086afe /src/wx/gl_video_view.h
parentcde59064499abaf8f30d0979747041af363cbef4 (diff)
Make the GL thread access the canvas size in a less ridiculous way.
Diffstat (limited to 'src/wx/gl_video_view.h')
-rw-r--r--src/wx/gl_video_view.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wx/gl_video_view.h b/src/wx/gl_video_view.h
index 1e6886f26..4601eb02d 100644
--- a/src/wx/gl_video_view.h
+++ b/src/wx/gl_video_view.h
@@ -62,6 +62,7 @@ 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.
@@ -70,6 +71,8 @@ private:
wxGLCanvas* _canvas;
wxGLContext* _context;
+ boost::atomic<wxSize> _canvas_size;
+
GLuint _id;
boost::optional<dcp::Size> _size;
bool _have_storage;