19 #ifndef MIR_GRAPHICS_NESTED_DETAIL_NESTED_OUTPUT_H_
20 #define MIR_GRAPHICS_NESTED_DETAIL_NESTED_OUTPUT_H_
33 class EGLSurfaceHandle;
57 std::shared_ptr<input::EventFilter>
const& event_handler,
71 std::function<
void(
Renderable const&)>
const& render_fn);
78 EGLConfig
const egl_config;
81 std::shared_ptr<input::EventFilter>
const event_handler;
85 void mir_event(
MirEvent const& event);
Definition: mir_surface.h:54
Interface to an output framebuffer.
Definition: display_buffer.h:39
~NestedOutput() noexcept
Definition: nested_output.cpp:100
NestedOutput(EGLDisplayHandle const &egl_display, MirSurface *mir_surface, geometry::Rectangle const &area, std::shared_ptr< input::EventFilter > const &event_handler, MirPixelFormat preferred_format)
Definition: nested_output.cpp:40
void render_and_post_update(RenderableList const &renderlist, std::function< void(Renderable const &)> const &render_fn)
This will render renderlist to the screen and post the result to the screen.
Definition: nested_output.cpp:85
MirOrientation orientation() const override
Returns the orientation of the display buffer relative to how the user should see it (the orientation...
Definition: nested_output.cpp:91
void make_current() override
Makes the DisplayBuffer the current GL rendering target.
Definition: nested_output.cpp:63
std::list< std::shared_ptr< Renderable > > RenderableList
Definition: renderable.h:88
~MirSurfaceHandle() noexcept
Definition: nested_output.cpp:35
Definition: renderable.h:33
void release_current() override
Releases the current GL rendering target.
Definition: nested_output.cpp:69
virtual bool can_bypass() const override
to be deprecated
Definition: nested_output.cpp:79
Definition: egl_resources.h:29
Definition: nested_output.h:34
void post_update() override
This will trigger OpenGL rendering and post the result to the screen.
Definition: nested_output.cpp:74
Definition: nested_display.h:53
geometry::Rectangle view_area() const override
The area the DisplayBuffer occupies in the virtual screen space.
Definition: nested_output.cpp:58
Definition: nested_display.h:66
Definition: rectangle.h:33
NestedOutput operator=(NestedOutput const &)=delete
MirSurfaceHandle(MirSurface *mir_surface)
Definition: nested_output.cpp:30
Definition: nested_output.h:50