exo: add a memfd path to wayland base client
This CL incorporates new behavior into the wayland base client for testing udmabuf_create on the server side. If memfd_create succeeds, the client allocates a memory region using memfd_create instead of the chrome SharedMemoryRegion class. The returned buffer is page aligned, and sealed with F_SEAL_SHRINK due to the requirements of udmabuf_create on the server side. TEST=autoninja -C out_atlas/Release/ wayland_simple_client then scp the client to an atlas chromebook. To run add --use-dmabuf flag. BUG=None Change-Id: I27f6f04c1d577e172bbb68bd09718e6f0d6d65f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2003267Reviewed-by:Daniele Castagna <dcastagna@chromium.org> Reviewed-by:
Andres Calderon Jaramillo <andrescj@chromium.org> Commit-Queue: Paulo Warren <pwarren@chromium.org> Cr-Commit-Position: refs/heads/master@{#738575}
Showing
Please register or sign in to comment