19 #ifndef MIR_COMPOSITOR_SCREENCAST_DISPLAY_BUFFER_H_ 20 #define MIR_COMPOSITOR_SCREENCAST_DISPLAY_BUFFER_H_ 25 #include MIR_SERVER_GL_H 26 #include MIR_SERVER_GLEXT_H 35 namespace renderer {
namespace gl {
class TextureSource; }}
42 template <
void (*Delete)(GLsizei,GLu
int const*)>
50 operator GLuint()
const {
return resource; }
68 resource = other.resource;
101 void release_current()
override;
105 void swap_buffers()
override;
111 NativeDisplayBuffer* native_display_buffer()
override;
114 std::unique_ptr<graphics::GLContext> gl_context;
120 std::shared_ptr<graphics::Buffer> current_buffer;
123 GLint old_viewport[4];
All things Mir.
Definition: atomic_callback.h:25
bool make_current(mrg::RenderTarget *render_target)
Definition: server_example_adorning_compositor.cpp:39
Definition: screencast_display_buffer.h:81
Interface to an output framebuffer.
Definition: display_buffer.h:47
void reset()
Definition: screencast_display_buffer.h:52
Definition: screencast_display_buffer.h:43
GLResource & operator=(GLResource &&other)
Definition: screencast_display_buffer.h:66
GLResource()
Definition: screencast_display_buffer.h:46
~GLResource()
Definition: screencast_display_buffer.h:48
Definition: display_buffer.h:35
Definition: render_target.h:29
GLResource(GLuint resource)
Definition: screencast_display_buffer.h:47
std::vector< std::shared_ptr< Renderable > > RenderableList
Definition: renderable.h:79
GLResource(GLResource &&other)
Definition: screencast_display_buffer.h:61
Definition: rectangle.h:33
Definition: schedule.h:29
int const size
Definition: make_socket_rpc_channel.cpp:51
Interface to the display subsystem.
Definition: display.h:88