Mir
Public Member Functions | List of all members
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. 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...
 

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-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.