blob: 727ae634c33ad4d0eb2fab27cd99f10f39440a9b [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_HOST_LINUX_X11_DISPLAY_UTIL_H_
#define REMOTING_HOST_LINUX_X11_DISPLAY_UTIL_H_
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/x/randr.h"
#include "ui/gfx/x/randr_output_manager.h"
namespace remoting {
// Calculates DPI from an X11 monitor object.
gfx::Vector2d GetMonitorDpi(const x11::RandR::MonitorInfo& monitor);
// Converts an X11 monitor object to RandRMonitorConfig.
x11::RandRMonitorConfig ToVideoTrackLayout(
const x11::RandR::MonitorInfo& monitor);
} // namespace remoting
#endif // REMOTING_HOST_LINUX_X11_DISPLAY_UTIL_H_