• Alexandros Frantzis's avatar
    ozone/drm: Implement support for plane overlay fences · 6b82d425
    Alexandros Frantzis authored
    Add support for using the plane overlay fences provided by the
    GbmSurfaceless::ScheduleOverlayPlane() method to synchronize display of
    overlays in Ozone-DRM. This also involves implementing the
    GbmSurfaceless::SetUsePlaneGpuFences() method to control whether the
    provided fences are used instead of the internally constructed
    EGLSyncKHR object.
    
    Since the PendingFrame in GbmSurfaceless owns (through GLSurfaceOverlay)
    the fences used for that frame, some refactorings where required in the
    frame submission code to keep the PendingFrame alive until the frame is
    complete.
    
    Bug: 828393
    Test: ozone_demo --use-gpu-fences on Ozone-DRM
    Change-Id: Id48485c55d7a31b01858ed5dbbf45815ac54c621
    Reviewed-on: https://chromium-review.googlesource.com/1021514
    Commit-Queue: Daniele Castagna <dcastagna@chromium.org>
    Reviewed-by: default avatarDaniele Castagna <dcastagna@chromium.org>
    Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#559515}
    6b82d425
overlay_plane.cc 1.83 KB