17 #ifndef UNITYSYSTEMCOMPOSITOR_MIREGL_H
18 #define UNITYSYSTEMCOMPOSITOR_MIREGL_H
31 std::vector<std::shared_ptr<MirEglSurface>>
mir_surface_init(std::shared_ptr<MirEglApp>
const&
app);
36 MirEglSurface(std::shared_ptr<MirEglApp>
const& mir_egl_app,
struct wl_output* wl_output);
40 template<
typename Pa
inter>
41 void paint(Painter
const& functor)
44 functor(width_, height_);
49 void egl_make_current();
53 std::shared_ptr<MirEglApp>
const mir_egl_app;
55 EGLSurface eglsurface;
void paint(Painter const &functor)
Definition: miregl.h:41
MirEglSurface(std::shared_ptr< MirEglApp > const &mir_egl_app, struct wl_output *wl_output)
Definition: miregl.cpp:73
~MirEglSurface()
Definition: miregl.cpp:89
Definition: wayland_surface.h:27
auto app() const -> WaylandApp const *
Definition: wayland_surface.h:38
std::vector< std::shared_ptr< MirEglSurface > > mir_surface_init(std::shared_ptr< MirEglApp > const &app)
Definition: miregl.cpp:61
std::shared_ptr< MirEglApp > make_mir_eglapp(struct wl_display *display)
Definition: miregl.cpp:56