• Sadrul Habib Chowdhury's avatar
    viz: Throttle begin-frames when gpu is busy. · 5c2e137d
    Sadrul Habib Chowdhury authored
    Throttle begin-frames to clients until gpu is done processing the
    earlier swaps. This helps with reducing work when the gpu has a high
    load, by not sending begin-frames to clients.
    
    The clients always keep receiving the compositor-frame-ack messages
    when a surface becomes activated (or replaces an older pending frame),
    even if the gpu is busy doing work from earlier frames. So this change
    introduces the back pressure by way of withholding begin-frames so
    clients have to do less work.
    
    BUG=877906
    
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
    Change-Id: If34eb5c5af03961e17932c8f57caf352d0362bab
    Reviewed-on: https://chromium-review.googlesource.com/c/1282219Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
    Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#601383}
    5c2e137d
begin_frame_source.cc 14.4 KB