Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Unified Diff: ash/utility/transformer_util.h

Issue 2790583004: Add second copy request after screen rotation to flatten the layers in animation. (Closed)
Patch Set: Separate the two test sets for slow/smooth animation. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/rotator/test/screen_rotation_animator_test_api.cc ('k') | ash/utility/transformer_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/utility/transformer_util.h
diff --git a/ash/utility/transformer_util.h b/ash/utility/transformer_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..d75c5faf719288897ac2836080cbd65d57c78f5d
--- /dev/null
+++ b/ash/utility/transformer_util.h
@@ -0,0 +1,26 @@
+// Copyright 2017 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.
+
+#ifndef ASH_TRANSFORMER_UTIL_H_
+#define ASH_TRANSFORMER_UTIL_H_
+
+#include "ash/ash_export.h"
+#include "ui/display/display.h"
+
+namespace gfx {
+class Transform;
+}
+
+namespace ash {
+
+// Creates rotation transform from |old_rotation| to |new_rotation| based on the
+// |display| info.
+ASH_EXPORT gfx::Transform CreateRotationTransform(
+ display::Display::Rotation old_rotation,
+ display::Display::Rotation new_rotation,
+ const display::Display& display);
+
+} // namespace ash
+
+#endif // ASH_TRANSFORMER_UTIL_H_
« no previous file with comments | « ash/rotator/test/screen_rotation_animator_test_api.cc ('k') | ash/utility/transformer_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698