#include "remoting/host/desktop_resizer_x11.h"
#include <optional>
#include "base/ranges/algorithm.h"
#include "remoting/host/base/screen_resolution.h"
#include "remoting/host/desktop_geometry.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/vector2d.h"
namespace remoting {
namespace {
ScreenResolution DesktopResolutionToScreenResolution(
const DesktopResolution& resolution) { … }
DesktopResolution ScreenResolutionToDesktopResolution(
const ScreenResolution& resolution) { … }
}
DesktopResizerX11::DesktopResizerX11() = default;
DesktopResizerX11::~DesktopResizerX11() = default;
ScreenResolution DesktopResizerX11::GetCurrentResolution(
webrtc::ScreenId screen_id) { … }
std::list<ScreenResolution> DesktopResizerX11::GetSupportedResolutions(
const ScreenResolution& preferred,
webrtc::ScreenId screen_id) { … }
void DesktopResizerX11::SetResolution(const ScreenResolution& resolution,
webrtc::ScreenId screen_id) { … }
void DesktopResizerX11::RestoreResolution(const ScreenResolution& original,
webrtc::ScreenId screen_id) { … }
void DesktopResizerX11::SetVideoLayout(const protocol::VideoLayout& layout) { … }
}