Move VideoFrame creation to VideoFrameFactoryImpl.
In preparation for adding a pool of SharedImages, this CL moves most parts of VideoFrame creation to the MCVD thread. There aren't supposed to be any functional changes. The only thing that might differ slightly is that a scoped refptr to |texture_owner| is now being sent MCVD => GPU => MCVD thread, while before it was going MCVD => GPU only. While TextureOwner is DeleteOnSequence, so it's okay to drop it on any thread, the small change in lifetime might do something because threads are weird. Otherwise, almost everything is identical, just refactored. Change-Id: Ia0f5ecf393a886e8bc1a0572cbe494f26a9a236b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1612600 Commit-Queue: Frank Liberato <liberato@chromium.org> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Reviewed-by:
vikas soni <vikassoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#660617}
Showing
This diff is collapsed.
Please register or sign in to comment