blob: e835562625d6adc67a8841ad36ba8add02485ac2 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/display/display.h"
#include "ui/display/display_export.h"
#include "ui/gfx/overlay_transform.h"
namespace gfx {
class SizeF;
class Transform;
} // namespace gfx
namespace display {
// Creates an exact gfx::Transform for a rotation.
DISPLAY_EXPORT gfx::Transform CreateRotationTransform(
display::Display::Rotation rotation,
const gfx::SizeF& size_to_rotate);
// Maps display::Display::Rotation to gfx::OverlayTransform.
DISPLAY_EXPORT gfx::OverlayTransform DisplayRotationToOverlayTransform(
display::Display::Rotation rotation);
} // namespace display