There are still some code paths to support having offscreen WebGL contexts using their own surface with custom context attributes such as depth buffer.
The activation for this ended up being reverted since it's incompatible with virtualized contexts which are required for Qualcomm GPUs (see issue 691102), and the proposed AHardwareBuffer support is intended to replace it ( issue 761432 ).
Remove the leftover code for this once the new drawing path is ready.
See for example WebGLRenderingContextBase::SupportOwnOffscreenSurface, Platform::ContextAttributes, and the !surface_format.IsCompatible(default_surface->GetFormat()) check in GpuCommandBufferStub.
+Artem FYI in case you're still using this for your branch.
Comment 1 by bugdroid1@chromium.org
, Dec 4 2017