Lines Matching refs:fGLContext
46 GLXContext fGLContext; member in __anon57e81e4a0111::GLWindowContext_xlib
57 , fGLContext() { in GLWindowContext_xlib()
67 SkASSERT(!fGLContext); in onInitializeContext()
81 for (int minor = 2; minor >= 0 && !fGLContext; --minor) { in onInitializeContext()
91 fGLContext = createContextAttribs(fDisplay, *fFBConfig, nullptr, True, attribs); in onInitializeContext()
97 if (fGLContext && profile == GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB && in onInitializeContext()
98 glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext()
106 glXDestroyContext(fDisplay, fGLContext); in onInitializeContext()
108 fGLContext = nullptr; in onInitializeContext()
111 if (fGLContext) { in onInitializeContext()
119 if (!fGLContext) { in onInitializeContext()
120 fGLContext = glXCreateContext(fDisplay, fVisualInfo, nullptr, GL_TRUE); in onInitializeContext()
122 if (!fGLContext) { in onInitializeContext()
126 if (!current && !glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext()
164 if (!fDisplay || !fGLContext) { in onDestroyContext()
168 glXDestroyContext(fDisplay, fGLContext); in onDestroyContext()
169 fGLContext = nullptr; in onDestroyContext()
173 if (fDisplay && fGLContext) { in onSwapBuffers()