DescriptionRe-land: Enable GpuMemoryBuffers video frames on MacOS.
This patch enables UYVY GpuMemoryBuffers backed VideoFrames on MacOSX
for software decoded videos.
This change allows VideoLayers to be promoted to overlays when possible.
Power measurements showed a significant reduction in Watts consumed
during video playback: in the tests ran by ccameron@ it went from 3.15
Watts to 2.13 Watts.
Additionally this change avoids one copy of the VideoFrame in the GPU
process and moves away another copy from the Compositor thread to
media.
Unfortunately, for videos where the decoding time is close to the frame
time, the additional copy might slow down the decoding past the limit,
causing more dropped frames in these cases.
More benchmark results can be found here:
https://x20web.corp.google.com/~dcastagna/results_all.html
The first run is with GMB video frames disabled, the second one, enabled.
BUG=485859, 510252
Committed: https://crrev.com/96463459619f441a721f96c51c357208604b7475
Cr-Commit-Position: refs/heads/master@{#345418}
Committed: https://crrev.com/b65e607913fe32132494e877bc1b70108e4d0e20
Cr-Commit-Position: refs/heads/master@{#347566}
Patch Set 1 #
Messages
Total messages: 22 (6 generated)
|