Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(914)

Unified Diff: ui/gl/gl_surface_egl.cc

Issue 702713003: Add casts for EGLNativeDisplayType to XDisplay to use X functions with OZONE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use ::Display Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_bindings.h ('k') | ui/gl/gl_surface_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_egl.cc
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
index c34ca0e70e7a25396a82cd9310a90c2ef0630cd6..43d0fe5f2c25616b848db23f643d539c75ad00db 100644
--- a/ui/gl/gl_surface_egl.cc
+++ b/ui/gl/gl_surface_egl.cc
@@ -376,7 +376,8 @@ EGLConfig NativeViewGLSurfaceEGL::GetConfig() {
// Get a config compatible with the window
DCHECK(window_);
XWindowAttributes win_attribs;
- if (!XGetWindowAttributes(GetNativeDisplay(), window_, &win_attribs)) {
+ if (!XGetWindowAttributes(EGLNativeDisplayToXDisplay(GetNativeDisplay()),
+ window_, &win_attribs)) {
return NULL;
}
« no previous file with comments | « ui/gl/gl_bindings.h ('k') | ui/gl/gl_surface_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698