• Vikas Soni's avatar
    Implement a shareable egl fence. · 65afcfa0
    Vikas Soni authored
    This class is an optimized way to share an egl fence
    among multiple consumers. Once the shared egl fence
    has been waited upon by any of the consumer, all the
    future waits to the same fence becomes no-op since we
    don't need to wait again on the same fence any more.
    This saves un-neccesary gl calls issued to do wait by
    each consumer.
    
    Change-Id: I5bf0c0f9a36d2d1a2709100343a141ec8b841dae
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1989025
    Commit-Queue: vikas soni <vikassoni@chromium.org>
    Reviewed-by: default avatarEric Karl <ericrk@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#731779}
    65afcfa0
shared_gl_fence_egl.cc 1.12 KB