[video-raf] Fix never run callbacks.
The WebRTC's |total_frame_count_| tracks how many frames have been enqueued, and not how many frames have been presented. This means that |total_frame_count_| could have the same value for different presented frames, which can give the appearance of stale frames and cause video.rAF callbacks to never fire. This CL fixes the issue by keeping track of the number of presented frames separately from the total frames. The CL also passes along rendering interval and average frame duration from the compositor, to help with performance when dealing with high frame rate videos. Bug: 1012063 Change-Id: I222887ed3554dbb71830f904f24526895bda5947 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2088636 Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Reviewed-by:Guido Urdaneta <guidou@chromium.org> Reviewed-by:
Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#747813}
Showing
Please register or sign in to comment