[Fuchsia] Fix FuchsiaVideoDecoder to request frame synchronization fence
FuchsiaVideoDecoder is supposed to wait for video frames to be rendered before returning the underylying buffer to the decoder to reuse it. The corresponding logic was already implemented, but it wasn't working properly because the decoder wasn't setting READ_LOCK_FENCES_ENABLED flag in the generated frames. As result VideoResourceUpdater wasn't setting read_lock_fences_enabled flag in corresponding TransferableResources and so Viz wasn't returning sync token for these resources. Now the decoder sets READ_LOCK_FENCES_ENABLED flag, so frame reuse is synchronized properly. Bug: b/143308693 Change-Id: I9746c69c4a6cbd1c6ea1c708731f1cf8fc620a94 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1904951 Auto-Submit: Sergey Ulanov <sergeyu@chromium.org> Reviewed-by:Kevin Marshall <kmarshall@chromium.org> Reviewed-by:
David Dorwin <ddorwin@chromium.org> Commit-Queue: David Dorwin <ddorwin@chromium.org> Cr-Commit-Position: refs/heads/master@{#713724}
Showing
Please register or sign in to comment