Scale up the display and rotate by 90 degrees
Test: Launch calculator app
Bug: None
Change-Id: Iac2b6b682a94449ba76e689c11357f2247c8e63a
diff --git a/services/vr/vr_window_manager/shell_view.cpp b/services/vr/vr_window_manager/shell_view.cpp
index 8075bf9..5290199 100644
--- a/services/vr/vr_window_manager/shell_view.cpp
+++ b/services/vr/vr_window_manager/shell_view.cpp
@@ -15,6 +15,8 @@
namespace {
+constexpr float kLayerScaleFactor = 4.0f;
+
constexpr unsigned int kVRAppLayerCount = 2;
constexpr unsigned int kMaximumPendingFrames = 8;
@@ -105,6 +107,9 @@
else
xscale = ar;
+ xscale *= kLayerScaleFactor;
+ yscale *= kLayerScaleFactor;
+
return mat4(Eigen::Scaling<float>(xscale, yscale, 1.0));
}
@@ -126,7 +131,7 @@
m(3, 0) = 0.0f; m(3, 1) = 0.0f; m(3, 2) = 0.0f; m(3, 3) = 1.0f;
// clang-format on
- return m;
+ return m * Eigen::AngleAxisf(M_PI * 0.5f, vec3::UnitZ());
}
// Helper function that applies the crop transform to the texture layer and