• Maksim Sisov's avatar
    [ozone/wayland] Add presentation feedback support. · 4dc2dd06
    Maksim Sisov authored
    Instead of blindly using a fake presentation feedback result,
    use the wayland provided one if available. If not, pretend there is
    a feedback, but provide a faked one.
    
    In order to provide feedback, the callback, which comes from
    the GPU, is stored in the Buffer instance. Although,
    both frame and presentation feedback are setup, the frame callback
    always comes first. Thus, we store the result and once the
    feedback comes, we use the previous swap result and the presentation
    feedback to let the GPU know the status of the request.
    
    Bug: 859012
    Change-Id: I4f4628be6101149daa30b6c74f3490254ace0fad
    Reviewed-on: https://chromium-review.googlesource.com/1193883
    Commit-Queue: Maksim Sisov <msisov@igalia.com>
    Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
    Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#589467}
    4dc2dd06
wayland_connection.h 8.69 KB