Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GL_SHARED_IMAGE_ACCESS_MODE_OVERLAY_CHROMIUM
The SharedImageBackingFactoryGLTexture is responsible for ensuring that whenever a GLImage-backed SharedImageBacking has GL access requested, the GL texture be updated to reflect the GLImage. On macOS, for YUV 420 video (basically all video), this requires copying the biplanar video into an RGB texture, because there is no mechanism for sampling from biplanar IOSurfaces exposed on macOS. Note that this copy can usually skipped because those IOSurfaces can be used as overlays directly. The GLRenderer takes a GL read lock when scheduling overlays. This should trigger this copy unnecessarily, but, fortunately for us all, SharedImageBackingFactoryGLTexture is a bugfarm and skips updating GL textures in many different and interesting ways. Unfortunately, SharedImageBackingFactoryGLTexture can't stay a bugfarm forever. This adds GL_SHARED_IMAGE_ACCESS_MODE_OVERLAY_CHROMIUM, which will act like a GL lock, but will skip doing any GL texture copying or binding. With this in place, we can make SharedImageBackingFactoryGLTexture do the appropriate copies that it should be doing, without causing any regressions. R=zmo TBR=raymes (ppapi autogen) Bug: 1092155 Change-Id: Ia16360cdb3fd616a8f92a4f56cb4f130b4b02b3d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2255674 Commit-Queue: ccameron <ccameron@chromium.org> Reviewed-by: Zhenyao Mo <zmo@chromium.org> Cr-Commit-Position: refs/heads/master@{#780857}
- Loading branch information
1 parent
2e7f807
commit 84aa4da
Showing
12 changed files
with
37 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters