Chromium Code Reviews| 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); |
|
Geoff Lang
2014/08/27 21:05:04
You should check for the existence of the extensio
luken
2014/08/27 21:38:17
Don't you need the display object returned by eglG
Geoff Lang
2014/08/28 13:45:54
Yea, you're able to use eglQueryString(EGL_NO_DISP
luken
2014/08/28 23:50:33
Cool, will do, thanks.
|
| +#else |
| g_display = eglGetDisplay(g_native_display); |
| +#endif |
| if (!g_display) { |
| LOG(ERROR) << "eglGetDisplay failed with error " << GetLastEGLErrorString(); |
| return false; |