[EFL][Qt][WebGL] Share the common code between GraphicsSurfaceGLX and X11WindowResources.