wpe: WebView and WebContext handling fixes
authorPhilippe Normand <philn@igalia.com>
Wed, 5 Aug 2020 17:41:45 +0000 (18:41 +0100)
committerPhilippe Normand <philn@igalia.com>
Fri, 14 Aug 2020 09:41:56 +0000 (09:41 +0000)
commit314a8c023fe7f722821c73a1d06ebf6f62dd8806
tree5eae5a777f346015e3c75d02ee4ff5dc55707536
parent7ef393d5ff62fe50948a9df1bed43742e25de2a6
wpe: WebView and WebContext handling fixes

The WPEThreaded view is now split in 2 classes:
- WPEContextThread handles the persistent WebKit thread, where all WebKit API
calls should be handled.
- WPEView: is created from the WPEContextThread. It handles the WebView and
maintains the public interface on which wpesrc relies. This is the facade for
the WebView, basically. It takes care of dispatching API calls into the context
thread.

With these fixes it is now possible to create (and reuse) mutlple wpesrc
elements during the application lifetime.

Fixes #1372

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1484>
ext/wpe/WPEThreadedView.cpp
ext/wpe/WPEThreadedView.h
ext/wpe/gstwpesrc.cpp