19 #ifndef MIR_COMPOSITOR_BUFFER_MAP_H_
20 #define MIR_COMPOSITOR_BUFFER_MAP_H_
29 namespace graphics {
class GraphicBufferAllocator; }
30 namespace frontend {
class EventSink; }
38 std::shared_ptr<frontend::EventSink>
const& sink,
39 std::shared_ptr<graphics::GraphicBufferAllocator>
const& allocator);
47 std::mutex
mutable mutex;
48 typedef std::map<graphics::BufferID, std::shared_ptr<graphics::Buffer>> Map;
51 Map::iterator checked_buffers_find(
graphics::BufferID, std::unique_lock<std::mutex>
const&);
54 std::shared_ptr<frontend::EventSink>
const sink;
55 std::shared_ptr<graphics::GraphicBufferAllocator>
const allocator;
All things Mir.
Definition: atomic_callback.h:25
void remove_buffer(graphics::BufferID id) override
Definition: buffer_map.cpp:47
Definition: client_buffers.h:30
void send_buffer(graphics::BufferID id) override
Definition: buffer_map.cpp:53
Definition: buffer_map.h:33
std::shared_ptr< graphics::Buffer > & operator[](graphics::BufferID) override
Definition: buffer_map.cpp:61
graphics::BufferID add_buffer(graphics::BufferProperties const &properties) override
Definition: buffer_map.cpp:38
Buffer creation properties.
Definition: buffer_properties.h:48
BufferMap(frontend::BufferStreamId id, std::shared_ptr< frontend::EventSink > const &sink, std::shared_ptr< graphics::GraphicBufferAllocator > const &allocator)
Definition: buffer_map.cpp:28