Intial Wayland EGL integration.
This commit is contained in:
parent
a4d3019f04
commit
6af296409a
20 changed files with 278 additions and 44 deletions
|
@ -5,12 +5,15 @@
|
|||
|
||||
#include "Window.h"
|
||||
#include "SharedMemory.h"
|
||||
#include <WaylandBuffer.h>
|
||||
#include "WaylandBuffer.h"
|
||||
|
||||
struct wl_surface;
|
||||
struct xdg_surface;
|
||||
struct xdg_toplevel;
|
||||
|
||||
class WaylandEglInterface;
|
||||
class WaylandEglWindowInterface;
|
||||
|
||||
class WaylandSurface
|
||||
{
|
||||
|
||||
|
@ -19,7 +22,7 @@ public:
|
|||
|
||||
~WaylandSurface();
|
||||
|
||||
void initialize(wl_compositor* compositor, xdg_wm_base* xdg_wm_base, std::shared_ptr<WaylandBuffer> buffer);
|
||||
void initialize(wl_compositor* compositor, xdg_wm_base* xdg_wm_base, std::shared_ptr<WaylandBuffer> buffer, WaylandEglInterface* eglInterface);
|
||||
|
||||
void onConfigure(xdg_surface *xdg_surface, uint32_t serial);
|
||||
|
||||
|
@ -37,6 +40,7 @@ private:
|
|||
xdg_toplevel* mXdgTopLevel{nullptr};
|
||||
|
||||
std::shared_ptr<WaylandBuffer> mBuffer;
|
||||
std::unique_ptr<WaylandEglWindowInterface> mEglWindowInterface{nullptr};
|
||||
};
|
||||
|
||||
using WaylandSurfacePtr = std::unique_ptr<WaylandSurface>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue