19 #ifndef MIR_SCENE_GL_PIXEL_BUFFER_H_
20 #define MIR_SCENE_GL_PIXEL_BUFFER_H_
27 #include <GLES2/gl2.h>
43 GLPixelBuffer(std::unique_ptr<graphics::GLContext> gl_context);
53 void copy_and_convert_pixel_line(
char* src,
char* dst);
55 std::unique_ptr<graphics::GLContext>
const gl_context;
58 std::vector<char> pixels;
59 GLuint gl_pixel_format;
60 bool pixels_need_y_flip;
All things Mir.
Definition: aging_buffer.h:24
Interface for extracting the pixels from a graphics::Buffer.
Definition: pixel_buffer.h:36
geometry::Size size() const
The size of the pixel buffer.
Definition: gl_pixel_buffer.cpp:162
GLPixelBuffer(std::unique_ptr< graphics::GLContext > gl_context)
Definition: gl_pixel_buffer.cpp:51
void fill_from(graphics::Buffer &buffer)
Fills the PixelBuffer with the contents of a graphics::Buffer.
Definition: gl_pixel_buffer.cpp:97
Extracts the pixels from a graphics::Buffer using GL facilities.
Definition: gl_pixel_buffer.h:40
geometry::Stride stride() const
The stride of the pixel buffer.
Definition: gl_pixel_buffer.cpp:167
~GLPixelBuffer() noexcept
Definition: gl_pixel_buffer.cpp:66
Definition: dimensions.h:38
void const * as_argb_8888()
The pixels in 0xAARRGGBB format.
Definition: gl_pixel_buffer.cpp:126