Commit 3d6cedb1 by Yuly Novikov Committed by Commit Bot

Leave Android devices in portrait orientation after test

EGLPreRotationSurfaceTest.ChangeRotationWithDraw alternates between landscape and portrait orientations. The last one needs to be portrait, since this is the default state that other tests expect. Since changing orientation takes 1 second, it's more efficient to do it in this one place instead of before every test. Bug: angleproject:5781 Change-Id: I63c2eeb77663ea7de6679385c9deb089b16e74f3 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2785433Reviewed-by: 's avatarIan Elliott <ianelliott@google.com> Reviewed-by: 's avatarYuly Novikov <ynovikov@chromium.org> Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
parent 9a79ee78
...@@ -575,7 +575,8 @@ TEST_P(EGLPreRotationSurfaceTest, ChangeRotationWithDraw) ...@@ -575,7 +575,8 @@ TEST_P(EGLPreRotationSurfaceTest, ChangeRotationWithDraw)
// Change the rotation back and forth between landscape and portrait, and make sure that the // Change the rotation back and forth between landscape and portrait, and make sure that the
// drawing and reading happen consistently with the desired rotation. // drawing and reading happen consistently with the desired rotation.
for (int i = 0; i < 3; i++) // Last rotation needs to be portrait, since other tests expect it to be the default.
for (int i = 0; i < 4; i++)
{ {
bool landscape; bool landscape;
EGLint actualWidth = 0; EGLint actualWidth = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment