20 #ifndef MIR_CLIENT_PRIVATE_MIR_CLIENT_BUFFER_DEPOSITORY_H_ 21 #define MIR_CLIENT_PRIVATE_MIR_CLIENT_BUFFER_DEPOSITORY_H_ 37 class ClientBufferFactory;
72 std::shared_ptr<ClientBufferFactory>
const factory;
73 std::list<std::pair<int, std::shared_ptr<ClientBuffer>>> buffers;
74 unsigned int max_buffers;
All things Mir.
Definition: atomic_callback.h:25
std::shared_ptr< ClientBuffer > current_buffer()
Definition: client_buffer_depository.cpp:75
void set_max_buffers(unsigned int max_buffers)
Definition: client_buffer_depository.cpp:85
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:32
uint32_t current_buffer_id() const
Definition: client_buffer_depository.cpp:80
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:46