Mac zero copy capture: Update SCANOUT_VEA_READ_CAMERA_AND_CPU_READ_WRITE
This constant is used for buffers used by video capture. On macOS, these buffers are only evern written to in the capture process, directly as IOSurfaces. Once they are sent to other processes, no CPU writes are performed. To that end, use the flag kIOSurfaceLockReadOnly to prevent unnecessary synchronization between CPU access (e.g, for software encode) and GPU access (e.g, for compositing). Bug: 1130101, 1125879 Change-Id: I108f15e5cf4aa0dc92bf24fffce907accdeb57de Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2419715Reviewed-by:Robert Sesek <rsesek@chromium.org> Reviewed-by:
Daniele Castagna <dcastagna@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#809054}
Showing
Please register or sign in to comment