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)
override;
58 std::shared_ptr<ShmFile>
const shm_file;
All things Mir.
Definition: buffer_stream.h:37
void gl_bind_to_texture() override
Definition: shm_buffer.cpp:66
bool can_bypass() const override
Definition: shm_buffer.cpp:90
geometry::Size size() const override
Definition: shm_buffer.cpp:51
Definition: shm_buffer.h:37
std::shared_ptr< MirNativeBuffer > native_buffer_handle() const override
Definition: shm_buffer.cpp:74
geometry::Stride stride() const override
Definition: shm_buffer.cpp:56
~ShmBuffer() noexcept
Definition: shm_buffer.cpp:47
MirPixelFormat pixel_format() const override
Definition: shm_buffer.cpp:61
ShmBuffer(std::shared_ptr< ShmFile > const &shm_file, geometry::Size const &size, MirPixelFormat const &pixel_format)
Definition: shm_buffer.cpp:35
void write(unsigned char const *data, size_t size) override
Definition: shm_buffer.cpp:95
Definition: buffer_basic.h:29
Definition: dimensions.h:38