Right now it's a buildtime option, USE(OPENGL) and USE(OPENGL_ES) are mutually exclusive. Since OpenGL is the default, we sometimes break OPENGL_ES build by mistake, or even rendering since it's untested. Making it possible to decide the API at runtime allows to easily test both cases without having to recompile.
Pull request: https://github.com/WebKit/WebKit/pull/14627
While working on making the OpenGL API a runtime decision I realized that we don't really need to keep supporting OpenGL API in the web process. We are the only port still supporting it, so we can remove another code path, some code and conditional compilation.
Pull request: https://github.com/WebKit/WebKit/pull/14692
Committed 265017@main (cfe917fec45b): <https://commits.webkit.org/265017@main> Reviewed commits have been landed. Closing PR #14692 and removing active labels.