// 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_
