1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ash / utility / transformer_util.h [blame]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_UTILITY_TRANSFORMER_UTIL_H_
#define ASH_UTILITY_TRANSFORMER_UTIL_H_
#include "ash/ash_export.h"
#include "ui/display/display.h"
namespace gfx {
class SizeF;
class Transform;
}
namespace ash {
// Creates rotation transform that rotates the |size_to_rotate| from
// |old_rotation| to |new_rotation|.
ASH_EXPORT gfx::Transform CreateRotationTransform(
display::Display::Rotation old_rotation,
display::Display::Rotation new_rotation,
const gfx::SizeF& size_to_rotate);
} // namespace ash
#endif // ASH_UTILITY_TRANSFORMER_UTIL_H_