#include <memory>
#include "base/notreached.h"
#include "remoting/host/desktop_display_info_loader.h"
#include "remoting/host/desktop_display_info_loader_x11.h"
#include "remoting/host/linux/desktop_display_info_loader_wayland.h"
#include "remoting/host/linux/wayland_utils.h"
namespace remoting {
std::unique_ptr<DesktopDisplayInfoLoader> DesktopDisplayInfoLoader::Create() {
if (IsRunningWayland()) {
return std::make_unique<DesktopDisplayInfoLoaderWayland>();
}
return std::make_unique<DesktopDisplayInfoLoaderX11>();
}
}