From 991714fc7f92aea3d07c7225247a821e3461027e Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Tue, 15 Sep 2020 18:12:24 +0300 Subject: screenshooter: Add agl-screenshooter protocol Just like weston, we add a private protocol. Underneath we make use of the weston renderer to get a hold of the pixels and transfer them to a user-supplied buffer. This only brings up the server side implementation of the protocol. Bug-AGL: SPEC-3580 Signed-off-by: Marius Vlad Change-Id: I02a07ad5eb492ef2ecad74efb34d1453ebcbedc0 --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 9dd9673..4299d58 100644 --- a/meson.build +++ b/meson.build @@ -65,11 +65,13 @@ endforeach agl_shell_xml = files('protocol/agl-shell.xml') agl_shell_desktop_xml = files('protocol/agl-shell-desktop.xml') +agl_screenshooter = files('protocol/agl-screenshooter.xml') xdg_shell_xml = join_paths(dir_wp_base, 'stable', 'xdg-shell', 'xdg-shell.xml') protocols = [ { 'name': 'agl-shell', 'source': 'internal' }, { 'name': 'agl-shell-desktop', 'source': 'internal' }, + { 'name': 'agl-screenshooter', 'source': 'internal' }, { 'name': 'xdg-shell', 'source': 'wp-stable' }, ] @@ -140,12 +142,15 @@ srcs_agl_compositor = [ 'src/layout.c', 'src/policy.c', 'src/shell.c', + 'src/screenshooter.c', 'shared/option-parser.c', 'shared/os-compatibility.c', agl_shell_server_protocol_h, agl_shell_desktop_server_protocol_h, + agl_screenshooter_server_protocol_h, agl_shell_protocol_c, agl_shell_desktop_protocol_c, + agl_screenshooter_protocol_c, xdg_shell_protocol_c, ] -- cgit 1.2.3-korg