| Index: ui/gl/gl_surface_egl.cc
|
| diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
|
| index 5a0538e0adda45cc8264c9fc78aea58e4b2e00ee..28b96ae04ecbe47a3c9ba0f730c7fc92c3f69eb0 100644
|
| --- a/ui/gl/gl_surface_egl.cc
|
| +++ b/ui/gl/gl_surface_egl.cc
|
| @@ -98,7 +98,14 @@ bool GLSurfaceEGL::InitializeOneOff() {
|
| return true;
|
|
|
| g_native_display = GetPlatformDefaultEGLNativeDisplay();
|
| +
|
| +#if defined(OS_WIN)
|
| + const EGLenum platform = GetPlatformDefaultEGLNativePlatform();
|
| + const EGLint* attributes = GetPlatformDefaultEGLNativeDisplayAttributes();
|
| + g_display = eglGetPlatformDisplayEXT(platform, g_native_display, attributes);
|
| +#else
|
| g_display = eglGetDisplay(g_native_display);
|
| +#endif
|
| if (!g_display) {
|
| LOG(ERROR) << "eglGetDisplay failed with error " << GetLastEGLErrorString();
|
| return false;
|
|
|