Remove GetPlatformDefaultEGLNativeDisplay() function.

During EGL initialization GetPlatformDefaultEGLNativeDisplay() gets
called. This function is conditionally compiled for each platform. Under
Ozone the function calls into OzonePlatform to get the EGL
native_display to use. This ordering requires that //ui/gl depends on
//ui/ozone which we want to break.

This CL removes GetPlatformDefaultEGLNativeDisplay() and instead passes
in the EGL native_display to GLSurfaceEGL::InitializeOneOff() or
GLSurfaceEGL::InitializeDisplay(). For tests EGL_DEFAULT_DISPLAY is
always passed in.

The GL initialization and autogen binding code needs to be rearranged to
accomplish this. For EGL generated code split the client extension
bindings and extension bindings into two separate methods. The client
extension bindings need to be initialized before
GLSurfaceEGL::InitializeDisplay() is called while the extension bindings
need to be initialized after. Also fix a problem preventing
generate_bindings.py from running with missing extension information due
to a recent change.

BUG=611142

Review-Url: https://codereview.chromium.org/2136553002
Cr-Commit-Position: refs/heads/master@{#406643}
20 files changed