Avoid creating unnecessary GLContext on DrDC thread

On Android, the GLContext is never used on DrDC thread (no WebGL/Video).

Update shared code, mainly in SharedContextState and shared image to
allow null GLContext and associated classes like gles2::FeatureInfo.

Added SharedContextState::GetMaxArrayTextureLayers (next to existing
GetMaxTextureSize)

Update webview and drdc init code to not create GLContext when not using
GL, behind a feature.

Change-Id: I3991f3c97d8c62c0584d4156cc0b751e991485d3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8543272
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Reviewed-by: vikas soni <vikassoni@chromium.org>
Commit-Queue: Bo Liu <boliu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1720804}
NOKEYCHECK=True
GitOrigin-RevId: 90f7ea34ece3edc178307e25b4ef4202eaa04023
6 files changed