WebGL: Add a direct uploading path for texImage2D with video frame backed by GPU
Current fast path for webgl uploading video frame is to render YUV planars to a RGBA8 intermediate gl texture and than do gpu to gpu copy to update the dst webgl texture. It is possible to further optimize this progress by drawing the content from YUV planars to dst webgl texture directly. This will save the extra gpu-gpu texture copy which may hurt performance when uploading large resolution video (e.g. 4k/8k video). BUG=1108154 Change-Id: I0abb269944f9eac9fb77e13b01860152a918ad95 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2319543Reviewed-by:Brian Salomon <bsalomon@google.com> Reviewed-by:
Dan Sanders <sandersd@chromium.org> Reviewed-by:
Kenneth Russell <kbr@chromium.org> Commit-Queue: Shaobo Yan <shaobo.yan@intel.com> Cr-Commit-Position: refs/heads/master@{#800811}
Showing
This diff is collapsed.
Please register or sign in to comment