Mir
|
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) More...
#include <wayland_shm.h>
Public Member Functions | |
WaylandShm (wl_shm *shm) | |
Does not take ownership of the wl_shm. More... | |
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. More... | |
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)
WaylandShm::WaylandShm | ( | wl_shm * | shm | ) |
Does not take ownership of the wl_shm.
auto WaylandShm::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.
Copyright © 2012-2023
Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.