wayland_display_util.h 690 B

12345678910111213141516171819202122
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_EXO_WAYLAND_WAYLAND_DISPLAY_UTIL_H_
  5. #define COMPONENTS_EXO_WAYLAND_WAYLAND_DISPLAY_UTIL_H_
  6. #include <wayland-server-protocol-core.h>
  7. #include "ui/display/display.h"
  8. namespace exo {
  9. namespace wayland {
  10. // Returns the transform that a compositor will apply to a surface to
  11. // compensate for the rotation of an output device.
  12. wl_output_transform OutputTransform(display::Display::Rotation rotation);
  13. } // namespace wayland
  14. } // namespace exo
  15. #endif // COMPONENTS_EXO_WAYLAND_WAYLAND_DISPLAY_UTIL_H_