19 #ifndef MIR_FRONTEND_SURFACE_TRACKER_H_
20 #define MIR_FRONTEND_SURFACE_TRACKER_H_
25 #include <unordered_map>
38 class ClientBufferTracker;
62 size_t const client_cache_size;
63 std::unordered_map<SurfaceId, std::shared_ptr<ClientBufferTracker>> client_buffer_tracker;
70 mutable std::mutex mutex;
71 std::unordered_map<SurfaceId, graphics::Buffer*> client_buffer_resource;
77 #endif // MIR_FRONTEND_SURFACE_TRACKER_H_
All things Mir.
Definition: buffer_stream.h:37
graphics::Buffer * last_buffer(SurfaceId) const
Definition: surface_tracker.cpp:70
graphics::Buffer * buffer_from(graphics::BufferID) const
Definition: surface_tracker.cpp:81
bool track_buffer(SurfaceId surface_id, graphics::Buffer *buffer)
Definition: surface_tracker.cpp:36
SurfaceTracker(size_t client_cache_size)
Definition: surface_tracker.cpp:31
Definition: surface_tracker.h:39
SurfaceTracker & operator=(SurfaceTracker const &)=delete
Definition: int_wrapper.h:27
void remove_surface(SurfaceId)
Definition: surface_tracker.cpp:58