weston/include/libweston
Ankit Nautiyal 4b6e73d617 libweston: Add support to set content-protection for a weston_surface
The protection requested for a given surface, must reach through the
weston_surface::pending_state, in the commit-cycle for the
weston_surface, so that it gets updated in the next commit.

As some protection is requested for a given weston_surface, it means
protection must be set for each of the outputs which show the surface.

While setting the protection of a weston_output, care must be taken
so as to avoid, degrading the protection of another surfaces, enjoying
the protection. For this purpose, all the weston_surfaces that are
shown on a weston_output are checked for their desired protection.
The highest of all such desired protections must be set for the
weston_output to avoid degrading of existing protected surfaces.
A surface requesting protection for a lower content-type can still be
provided protection for a higher type but the converse cannot be
allowed.

This patch adds support to set content-protection for a suface, which
inturn sets the content-protection for each of the outputs on which
it is shown, provided, none of the existing surface's protection
request is downgraded.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
2019-07-04 14:18:50 +05:30
..
backend-drm.h Rename plugin-registry.h to libweston/plugin-registry.h 2019-04-18 12:31:46 +03:00
backend-fbdev.h Rename public backend headers 2019-04-18 12:31:46 +03:00
backend-headless.h Rename public backend headers 2019-04-18 12:31:46 +03:00
backend-rdp.h backend-rdp: allow to force compression off 2019-06-20 16:39:13 +02:00
backend-wayland.h Rename public backend headers 2019-04-18 12:31:46 +03:00
backend-x11.h Rename public backend headers 2019-04-18 12:31:46 +03:00
config-parser.h Rename config-parser.h to libweston/config-parser.h 2019-04-18 12:31:46 +03:00
libweston.h libweston: Add support to set content-protection for a weston_surface 2019-07-04 14:18:50 +05:30
matrix.h Rename matrix.h to libweston/matrix.h 2019-04-18 12:31:46 +03:00
meson.build include: Install weston-debug header 2019-05-10 12:02:00 +00:00
plugin-registry.h Rename plugin-registry.h to libweston/plugin-registry.h 2019-04-18 12:31:46 +03:00
timeline-object.h Rename timeline-object.h to libweston/timeline-object.h 2019-04-18 12:31:45 +03:00
version.h.in Rename version.h to libweston/version.h 2019-04-18 12:31:46 +03:00
weston-debug.h libweston: Add weston-debug header to libweston 2019-05-10 12:02:00 +00:00
windowed-output-api.h Rename windowed-output-api.h to libweston/windowed-output-api.h 2019-04-18 12:31:46 +03:00
xwayland-api.h Rename xwayland-api.h to libweston/xwayland-api.h 2019-04-18 12:31:46 +03:00
zalloc.h Rename zalloc.h to libweston/zalloc.h 2019-04-18 12:31:46 +03:00