
This change restricts the GLDataType(), GLDataFormat(),
GLInternalFormat() and TextureStorageFormat() methods within
SharedImageFormatRestrictedUtilsAccessor so that they are called only
from the ToGLFormatDesc() method. This helps have a single GLFormat
source within shared image format utils.
It also makes sure that clients that need external sampler call the
equivalent ToGLFormatDescExternalSampler() making it explicit.
Bug: 1378708
Change-Id: Ia563d4e0297fcf70608bca8b5cfec5f6da739dcb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4762088
Commit-Queue: Saifuddin Hitawala <hitawala@chromium.org>
Reviewed-by: Peng Huang <penghuang@chromium.org>
Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1181627}