Class WaylandShm¶
Defined in File wayland_shm.h
Class Documentation¶
-
class WaylandShm¶
A single WaylandShm does not efficiently provision multiple buffers for multiple window sizes. Please use one WaylandShm per window (if windows may have distinct sizes)
Public Functions
-
WaylandShm(wl_shm *shm)¶
Does not take ownership of the wl_shm.
-
auto get_buffer(mir::geometry::Size size, mir::geometry::Stride stride) -> std::shared_ptr<WaylandShmBuffer>¶
Always returns a buffer of the correct size that is not in-use.
-
WaylandShm(wl_shm *shm)¶