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.cc40 if (!glXMakeCurrent(g_xlib_display, g_xlib_window, context_)) { in Init()
41 glXDestroyContext(g_xlib_display, context_); in Init()
62 glXMakeCurrent(g_xlib_display, 0, NULL); in Cleanup()
68 int screen = DefaultScreen(g_xlib_display); in GetXVisual()
80 GLXFBConfig *fb_configs = glXChooseFBConfig(g_xlib_display, screen, in GetXVisual()
87 return glXGetVisualFromFBConfig(g_xlib_display, fb_config_); in GetXVisual()
91 return glXMakeCurrent(g_xlib_display, g_xlib_window, context); in MakeCurrent()
95 CHECK(g_xlib_display); in CreateContext()
97 return glXCreateNewContext(g_xlib_display, fb_config_, GLX_RGBA_TYPE, 0, in CreateContext()
102 glXDestroyContext(g_xlib_display, context); in DeleteContext()
[all …]
Degl_stuff.cc55 static_cast<EGLNativeDisplayType>(g_xlib_display); in GetXVisual()
83 g_xlib_display, DefaultScreen(g_xlib_display))); in GetXVisual()
87 XVisualInfo* ret = XGetVisualInfo(g_xlib_display, VisualIDMask, in GetXVisual()
Dxlib_window.h10 extern Display *g_xlib_display;