19 #ifndef MIR_COMPOSITOR_SCREENCAST_DISPLAY_BUFFER_H_
20 #define MIR_COMPOSITOR_SCREENCAST_DISPLAY_BUFFER_H_
24 #include <GLES2/gl2.h>
33 template <
void (*Generate)(GLsizei,GLu
int*),
void (*Delete)(GLsizei,GLu
int const*)>
39 operator GLuint()
const {
return resource; }
75 GLint old_viewport[4];
All things Mir.
Definition: buffer_stream.h:37
bool post_renderables_if_optimizable(graphics::RenderableList const &) override
This will render renderlist to the screen and post the result to the screen if there is a hardware op...
Definition: screencast_display_buffer.cpp:88
MirOrientation orientation() const override
Returns the orientation of the display buffer relative to how the user should see it (the orientation...
Definition: screencast_display_buffer.cpp:102
GLResource()
Definition: screencast_display_buffer.h:37
Definition: screencast_display_buffer.h:48
Interface to an output framebuffer.
Definition: display_buffer.h:38
Definition: screencast_display_buffer.h:34
void flip() override
After gl_swap_buffers, flip the new front buffer to the screen This most likely involves a wait for v...
Definition: screencast_display_buffer.cpp:98
~GLResource()
Definition: screencast_display_buffer.h:38
geometry::Rectangle view_area() const override
The area the DisplayBuffer occupies in the virtual screen space.
Definition: screencast_display_buffer.cpp:63
std::list< std::shared_ptr< Renderable > > RenderableList
Definition: renderable.h:80
void make_current() override
Makes the DisplayBuffer the current GL rendering target.
Definition: screencast_display_buffer.cpp:68
~ScreencastDisplayBuffer()
Definition: screencast_display_buffer.cpp:58
void release_current() override
Releases the current GL rendering target.
Definition: screencast_display_buffer.cpp:81
Definition: rectangle.h:33
bool uses_alpha() const override
Returns true if the display buffer has an alpha channel and the alpha channel will be read from at so...
Definition: screencast_display_buffer.cpp:107
void gl_swap_buffers() override
Swap buffers for OpenGL rendering.
Definition: screencast_display_buffer.cpp:93
ScreencastDisplayBuffer(geometry::Rectangle const &rect, graphics::Buffer &buffer)
Definition: screencast_display_buffer.cpp:28