• Vasiliy Telezhnikov's avatar
    Fix ordering of GetFrameInfo requests · 7e7f86b3
    Vasiliy Telezhnikov authored
    This CL adds requests queue to FrameInfoHelperImpl to make sure all
    requests are ordered to keep VideoFrameFactoryImpl pipeline ordered.
    
    Before this change VFFI would cache FrameInfo to avoid thread hops to
    GPU thread and it was possible that some CreateVideoFrame requests will
    be completed out-of-order.
    
    After this change VFFI doesn't cache FrameInfo and always call
    FrameInfoHelper. FrameInfoHelper does all necessary caching to avoid
    unnecessary hops to GPU thread and guarantees that callbacks with
    FrameInfo will come in order.
    
    Change-Id: Iacb63cf3746991c911f1f0d5e3667db3dbd56c68
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2304092
    Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org>
    Reviewed-by: default avatarFrank Liberato <liberato@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#790127}
    7e7f86b3
frame_info_helper.cc 7.33 KB