Mir
Loading...
Searching...
No Matches
WaylandShm Class Reference

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.
 
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.
 

Detailed Description

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)

Constructor & Destructor Documentation

◆ WaylandShm()

WaylandShm::WaylandShm ( wl_shm * shm)

Does not take ownership of the wl_shm.

Member Function Documentation

◆ get_buffer()

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.


The documentation for this class was generated from the following files:

Copyright © 2012-2025 Canonical Ltd.
Generated on Sun Mar 2 17:34:18 UTC 2025
This documentation is licensed under the GPL version 2 or 3.