Skip to content
Commit c76c1d13 authored by Neil Roberts's avatar Neil Roberts
Browse files

wayland: Add a convenience function to update a region from SHM buffer



Adds cogl_wayland_texture_set_region_from_shm_buffer which is a
convenience wrapper around cogl_texture_set_region but it uses the
correct format to copy the data from a Wayland SHM buffer. This will
typically be used by compositors to update the texture for a surface
when an SHM buffer is attached. The ordering of the arguments is based
on cogl_texture_set_region_from_bitmap.

Based on a patch by Jasper St. Pierre.

Reviewed-by: default avatarRobert Bragg <robert@linux.intel.com>
parent d94cb984
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment