20 #ifndef MIR_GRAPHICS_MESA_SHM_BUFFER_H_
21 #define MIR_GRAPHICS_MESA_SHM_BUFFER_H_
40 ShmBuffer(std::shared_ptr<ShmFile>
const& shm_file,
52 void write(
unsigned char const* data,
size_t size);
58 std::shared_ptr<ShmFile>
const shm_file;
All things Mir.
Definition: aging_buffer.h:24
bool can_bypass() const
Definition: shm_buffer.cpp:90
void gl_bind_to_texture() override
Definition: shm_buffer.cpp:66
Definition: shm_buffer.h:37
geometry::Stride stride() const
Definition: shm_buffer.cpp:56
std::shared_ptr< MirNativeBuffer > native_buffer_handle() const
Definition: shm_buffer.cpp:74
~ShmBuffer() noexcept
Definition: shm_buffer.cpp:47
ShmBuffer(std::shared_ptr< ShmFile > const &shm_file, geometry::Size const &size, MirPixelFormat const &pixel_format)
Definition: shm_buffer.cpp:35
MirPixelFormat pixel_format() const
Definition: shm_buffer.cpp:61
Definition: buffer_basic.h:29
geometry::Size size() const
Definition: shm_buffer.cpp:51
void write(unsigned char const *data, size_t size)
Definition: shm_buffer.cpp:95
Definition: dimensions.h:38