20 #ifndef MIR_CLIENT_PRIVATE_MIR_CLIENT_BUFFER_DEPOSITORY_H_
21 #define MIR_CLIENT_PRIVATE_MIR_CLIENT_BUFFER_DEPOSITORY_H_
37 class ClientBufferFactory;
69 std::shared_ptr<ClientBufferFactory>
const factory;
70 std::list<std::pair<int, std::shared_ptr<ClientBuffer>>> buffers;
71 unsigned int const max_buffers;
All things Mir.
Definition: buffer_stream.h:37
std::shared_ptr< ClientBuffer > current_buffer()
Definition: client_buffer_depository.cpp:66
Responsible for taking the buffer data sent from the server and wrapping it in a ClientBuffer.
Definition: client_buffer_depository.h:46
Definition: mir_native_buffer.h:30
ClientBufferDepository(std::shared_ptr< ClientBufferFactory > const &factory, int max_buffers)
Constructor.
Definition: client_buffer_depository.cpp:31
uint32_t current_buffer_id() const
Definition: client_buffer_depository.cpp:71
void deposit_package(std::shared_ptr< MirBufferPackage > const &, int id, geometry::Size, MirPixelFormat)
Construct a ClientBuffer from the IPC data, and use it as the current buffer.
Definition: client_buffer_depository.cpp:37