Lines Matching refs:gLibrary
89 static void* gLibrary = nullptr; variable
93 if (!gLibrary) { in load_command_buffer_functions()
95 gLibrary = DynamicLoadLibrary("command_buffer_gles2.dll"); in load_command_buffer_functions()
97 gLibrary = DynamicLoadLibrary("libcommand_buffer_gles2.dylib"); in load_command_buffer_functions()
99 gLibrary = DynamicLoadLibrary("libcommand_buffer_gles2.so"); in load_command_buffer_functions()
101 if (gLibrary) { in load_command_buffer_functions()
102 gfGetDisplay = (GetDisplayProc)GetProcedureAddress(gLibrary, "eglGetDisplay"); in load_command_buffer_functions()
103 gfInitialize = (InitializeProc)GetProcedureAddress(gLibrary, "eglInitialize"); in load_command_buffer_functions()
104 gfTerminate = (TerminateProc)GetProcedureAddress(gLibrary, "eglTerminate"); in load_command_buffer_functions()
105 gfChooseConfig = (ChooseConfigProc)GetProcedureAddress(gLibrary, "eglChooseConfig"); in load_command_buffer_functions()
106 … gfGetConfigAttrib = (GetConfigAttrib)GetProcedureAddress(gLibrary, "eglGetConfigAttrib"); in load_command_buffer_functions()
107 …gfCreateWindowSurface = (CreateWindowSurfaceProc)GetProcedureAddress(gLibrary, "eglCreateWindowSur… in load_command_buffer_functions()
108 …gfCreatePbufferSurface = (CreatePbufferSurfaceProc)GetProcedureAddress(gLibrary, "eglCreatePbuffer… in load_command_buffer_functions()
109 … gfDestroySurface = (DestroySurfaceProc)GetProcedureAddress(gLibrary, "eglDestroySurface"); in load_command_buffer_functions()
110 gfCreateContext = (CreateContextProc)GetProcedureAddress(gLibrary, "eglCreateContext"); in load_command_buffer_functions()
111 … gfDestroyContext = (DestroyContextProc)GetProcedureAddress(gLibrary, "eglDestroyContext"); in load_command_buffer_functions()
112 gfMakeCurrent = (MakeCurrentProc)GetProcedureAddress(gLibrary, "eglMakeCurrent"); in load_command_buffer_functions()
113 gfSwapBuffers = (SwapBuffersProc)GetProcedureAddress(gLibrary, "eglSwapBuffers"); in load_command_buffer_functions()
114 … gfGetProcAddress = (GetProcAddressProc)GetProcedureAddress(gLibrary, "eglGetProcAddress"); in load_command_buffer_functions()
143 return GrGLAssembleGLESInterface(gLibrary, command_buffer_get_gl_proc); in GrGLCreateCommandBufferInterface()