gstreamer/gst-libs/gst/gl/eagl
Mart Raudsepp 526cb2baa8 gl/eagl: Fix automatic resize behaviour
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/681
added a layoutSubViews, which never gets called, because it should have been
called layoutSubviews (non-capital "v"). However after fixing that, it still
doesn't work correctly, because window_width/height values are immediately
updated and then draw_cb will never trigger the resize path, because the
values are already up to date.
Update the values inside the resize path again instead, so the check for
entering the resize path is logically always correct.
This makes the layoutSubviews unnecessary, as it only updated the internal
size values prematurely, so it is deleted instead of method naming fixed.

These changes were originally done to avoid accessing UIKit objects on the
main thread, but no additional accesses are added here, only internal
private variable assignments under the same draw_lock, so there should be
no threading issues reintroduced.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/945>
2020-12-03 08:18:29 +00:00
..
gstglcontext_eagl.h gl/eagl: don't access UIkit objects on the main thread 2020-06-02 14:32:03 +10:00
gstglcontext_eagl.m gl/eagl: don't access UIkit objects on the main thread 2020-06-02 14:32:03 +10:00
gstglios_utils.h gl/eagl: don't access UIkit objects on the main thread 2020-06-02 14:32:03 +10:00
gstglwindow_eagl.h gl/eagl: don't access UIkit objects on the main thread 2020-06-02 14:32:03 +10:00
gstglwindow_eagl.m gl/eagl: Fix automatic resize behaviour 2020-12-03 08:18:29 +00:00