Lines Matching refs:fDisplay
36 , fDisplay(NULL) in SkNativeGLContext()
46 if (fDisplay) { in destroyGLContext()
47 glXMakeCurrent(fDisplay, 0, 0); in destroyGLContext()
50 glXDestroyContext(fDisplay, fContext); in destroyGLContext()
55 glXDestroyGLXPixmap(fDisplay, fGlxPixmap); in destroyGLContext()
60 XFreePixmap(fDisplay, fPixmap); in destroyGLContext()
64 XCloseDisplay(fDisplay); in destroyGLContext()
65 fDisplay = NULL; in destroyGLContext()
70 fDisplay = XOpenDisplay(0); in createGLContext()
72 if (!fDisplay) { in createGLContext()
88 GLXFBConfig *fbc = glXChooseFBConfig(fDisplay, DefaultScreen(fDisplay), in createGLContext()
103 XVisualInfo *vi = glXGetVisualFromFBConfig(fDisplay, fbc[i]); in createGLContext()
106 glXGetFBConfigAttrib(fDisplay, fbc[i], GLX_SAMPLE_BUFFERS, &samp_buf); in createGLContext()
107 glXGetFBConfigAttrib(fDisplay, fbc[i], GLX_SAMPLES, &samples); in createGLContext()
125 XVisualInfo *vi = glXGetVisualFromFBConfig(fDisplay, bestFbc); in createGLContext()
131 visReturn = XGetVisualInfo(fDisplay, VisualNoMask, &visTemplate, &numVisuals); in createGLContext()
145 glXGetConfig(fDisplay, &visReturn[i], GLX_SAMPLE_BUFFERS, &samp_buf); in createGLContext()
146 glXGetConfig(fDisplay, &visReturn[i], GLX_SAMPLES, &samples); in createGLContext()
158 fPixmap = XCreatePixmap(fDisplay, RootWindow(fDisplay, vi->screen), 10, 10, vi->depth); in createGLContext()
166 fGlxPixmap = glXCreateGLXPixmap(fDisplay, vi, fPixmap); in createGLContext()
188 fDisplay, DefaultScreen(fDisplay) in createGLContext()
199 fContext = glXCreateNewContext(fDisplay, bestFbc, GLX_RGBA_TYPE, 0, True); in createGLContext()
201 fContext = glXCreateContext(fDisplay, vi, 0, True); in createGLContext()
218 fDisplay, bestFbc, 0, True, context_attribs in createGLContext()
222 XSync(fDisplay, False); in createGLContext()
242 fDisplay, bestFbc, 0, True, context_attribs in createGLContext()
249 XSync(fDisplay, False); in createGLContext()
261 if (!glXIsDirect(fDisplay, fContext)) { in createGLContext()
268 if (!glXMakeCurrent(fDisplay, fGlxPixmap, fContext)) { in createGLContext()
284 if (!glXMakeCurrent(fDisplay, fGlxPixmap, fContext)) { in makeCurrent()
290 glXSwapBuffers(fDisplay, fGlxPixmap); in swapBuffers()