Use GL_SHARED_IMAGE_ACCESS_MODE_OVERLAY_CHROMIUM in GLRenderer
Introduce a viz::DisplayResourceProvider::ScopedOverlayLockGL structure, which mirrors the ScopedReadLockGL, except it specifies a mode of GL_SHARED_IMAGE_ACCESS_MODE_OVERLAY_CHROMIUM instead of the usual GL_SHARED_IMAGE_ACCESS_MODE_READ_CHROMIUM. This is ignored (and treated the same as READ) by all implementations, but the next patch will use OVERLAY in a way that would break if READ were specified. Bug: 1092155 Change-Id: I4e23d6514b67b1f9960a08d206cde0765928ae2e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2255880Reviewed-by:ccameron <ccameron@chromium.org> Reviewed-by:
Khushal <khushalsagar@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#781427}
Showing
Please register or sign in to comment