Home
last modified time | relevance | path

Searched refs:g_xlib_display (Results 1 – 4 of 4) sorted by relevance

/external/autotest/client/deps/glbench/src/
Dxlib_window.cc15 Display *g_xlib_display = NULL; variable
28 g_xlib_display = XOpenDisplay(0); in XlibInit()
29 if (!g_xlib_display) { in XlibInit()
35 int screen = DefaultScreen(g_xlib_display); in XlibInit()
36 Window root_window = RootWindow(g_xlib_display, screen); in XlibInit()
39 XGetWindowAttributes(g_xlib_display, root_window, &attributes); in XlibInit()
50 attr.colormap = XCreateColormap(g_xlib_display, root_window, in XlibInit()
54 g_xlib_window = XCreateWindow(g_xlib_display, root_window, in XlibInit()
59 XMapWindow(g_xlib_display, g_xlib_window); in XlibInit()
60 XSync(g_xlib_display, True); in XlibInit()
[all …]
Dglx_stuff.cc42 if (!glXMakeCurrent(g_xlib_display, g_xlib_window, context_)) { in Init()
43 glXDestroyContext(g_xlib_display, context_); in Init()
64 glXMakeCurrent(g_xlib_display, 0, NULL); in Cleanup()
70 int screen = DefaultScreen(g_xlib_display); in GetXVisual()
82 GLXFBConfig *fb_configs = glXChooseFBConfig(g_xlib_display, screen, in GetXVisual()
89 return glXGetVisualFromFBConfig(g_xlib_display, fb_config_); in GetXVisual()
93 return glXMakeCurrent(g_xlib_display, g_xlib_window, context); in MakeCurrent()
97 CHECK(g_xlib_display); in CreateContext()
99 return glXCreateNewContext(g_xlib_display, fb_config_, GLX_RGBA_TYPE, 0, in CreateContext()
104 glXDestroyContext(g_xlib_display, context); in DeleteContext()
[all …]
Degl_stuff.cc58 static_cast<EGLNativeDisplayType>(g_xlib_display); in GetXVisual()
86 g_xlib_display, DefaultScreen(g_xlib_display))); in GetXVisual()
90 XVisualInfo* ret = XGetVisualInfo(g_xlib_display, VisualIDMask, in GetXVisual()
Dxlib_window.h10 extern Display *g_xlib_display;