1. 04 Sep, 2019 1 commit
  2. 03 Sep, 2019 8 commits
  3. 30 Aug, 2019 1 commit
  4. 26 Aug, 2019 6 commits
    • Ankit Nautiyal's avatar
      man: Declare drm-backend support for HDCP · fbfcc304
      Ankit Nautiyal authored
      Modify weston.ini man page to update that drm-backend supports HDCP.
      Signed-off-by: Ankit Nautiyal's avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
    • Ankit Nautiyal's avatar
      libweston: Notify the client, when output recording is started/stopped · 4fd38138
      Ankit Nautiyal authored
      In case of enforced protection mode, the renderer takes care of
      censoring the protected content when the output recording is going on.
      But in case of relaxed protection mode, the client must be notified to
      avoid showing the protected content, if the output recording is on.
      This patch handles the case, where the content-protection is enabled
      with relaxed protection mode, and notifies the client, whenever the
      recording is started or stopped.
      Signed-off-by: Ankit Nautiyal's avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
    • Harish Krupo's avatar
      gl-renderer: Censor protected views when output is recorded · 57d7883d
      Harish Krupo authored
      Contents on an ouput are captured when screenshooter/recorder/screen
      sharing is enabled. In such cases the protected content must
      be censored to ensure that it is not recorded along with unprotected
      content. This is a required only when the surface protection is in
      enforced mode.
      Signed-off-by: Harish Krupo's avatarHarish Krupo <harishkrupo@gmail.com>
      Signed-off-by: Ankit Nautiyal's avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
    • Ankit Nautiyal's avatar
      libweston: Add function to schedule idle task for updating surface protection · faa5ab4e
      Ankit Nautiyal authored
      Currently, the idle task for updating surface protection is scheduled
      in case of change in the output mask of a surface or in case of change
      in protection status of an output.
      This patch adds a function for reusing the code to schedule the
      idle-tasks, that can be called whenever there is a chance of a change
      in the protection status of a surface.
      Signed-off-by: Ankit Nautiyal's avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
    • Ankit Nautiyal's avatar
      libweston: Add functions to modify disable_planes counter for an output · 93dde245
      Ankit Nautiyal authored
      The member disable_planes of weston_output signifies the recording
      status of the output, and is incremented and decremented from various
      places. This patch provides helper functions to increment and decrement
      the counter. These functions can then be used to do processing, before
      and after the recording has started or stopped.
      Signed-off-by: Ankit Nautiyal's avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
    • Ankit Nautiyal's avatar
      backend-drm: Add support for content-protection · a344fe32
      Ankit Nautiyal authored
      Currently drm-layer supports HDCP1.4 using connector property:
      Content Protection. This property if available for a platform, can be
      read and set for requesting content-protection.
      Also, the patch series [1] adds HDCP2.2 support in drm, and patch [2]
      adds support to send udev events for change in connector properties,
      made by the kernel.
      This patch adds these HDCP connector properties in weston, and exposes
      the content-protection support to the client for drm-backend.
      It adds the enums to represent 'Content Protection' and 'Content Type'
      connector properties exposed by drm layer. It adds a member
      'protection' in drm_output_state, to store the desired protection
      from the weston_output in the drm-backend output-repaint cycle. This
      is then used to write the HDCP connector properties for the drm_heads
      attached to the drm_output.
      The kernel sends uevents to the user-space for any change made by it
      in the "Content Protection" connector property. No event is sent in
      case of change in the property made by the user-space.
      It means, when there is a change of the property value from "DESIRED"
      to "ENABLE" i.e. successful authentication by the kernel, a uevent
      will be generated, but in case of userspace requesting for disabling
      the protection by writing "UNDESIRED" into the property, no uevent
      will be generated.
      This patch also adds support for handling new udev events for HDCP
      connector property changes. Any such change, triggers change in the
      weston_head's current_protection.
      [1] https://patchwork.freedesktop.org/series/57233/#rev7
      [2] https://patchwork.freedesktop.org/patch/303903/?series=57233&rev=7
      Signed-off-by: Ankit Nautiyal's avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
  5. 23 Aug, 2019 5 commits
  6. 19 Aug, 2019 2 commits
  7. 16 Aug, 2019 5 commits
  8. 15 Aug, 2019 1 commit
  9. 12 Aug, 2019 2 commits
  10. 06 Aug, 2019 2 commits
  11. 02 Aug, 2019 4 commits
  12. 01 Aug, 2019 1 commit
    • Stefan Agner's avatar
      pixman: avoid unnecessary y-flip for screen capture · da2e574c
      Stefan Agner authored
      Commit 4fc5dd00
       ("compositor: add capability CAPTURE_YFLIP")
      introduced a capability flag which indicates whether y-flipping is
      necessary. As already indicated in that commit message, it seems
      that pixman flipps the y-axis only due to historic reasons.
      Drop y-flipping and use the WESTON_CAP_CAPTURE_YFLIP flag to
      indicate that y-flipping is not necessary. This simplifies code
      and improves screen share performance (on my test by about 3% down
      to 18% CPU load on the sharing instance of Weston).
      Signed-off-by: Stefan Agner's avatarStefan Agner <stefan@agner.ch>
  13. 31 Jul, 2019 1 commit
  14. 26 Jul, 2019 1 commit
    • Stefan Agner's avatar
      shared/platform: avoid build warning when building without gl-renderer · db905f46
      Stefan Agner authored
      When building without GL renderer the compiler prints the following
        ../clients/subsurfaces.c: In function ‘egl_state_create’:
        ../clients/subsurfaces.c:225:35: warning: passing argument 1 of
        ‘weston_platform_get_egl_display’ makes pointer from integer without a
        cast [-Wint-conversion]
          225 |   weston_platform_get_egl_display(EGL_PLATFORM_WAYLAND_KHR,
              |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
              |                                   |
              |                                   int
      Define the fallback implementation of weston_platform_get_egl_display
      to take an integer which is the underlaying datatype of EGLenum.
      Signed-off-by: Stefan Agner's avatarStefan Agner <stefan@agner.ch>