commit | e0ff3e4a2679cb505e801db5df4d1546f6caa41a | [log] [tgz] |
---|---|---|
author | Chia-I Wu <olv@google.com> | Mon Jul 24 11:11:01 2017 -0700 |
committer | Chia-I Wu <olv@google.com> | Mon Jul 24 11:21:33 2017 -0700 |
tree | 3fba87a72cc7524c9e5ff07f9758d5d61599048a | |
parent | 6138bbeafbdd231c2fdbf13e689006d11758fb4d [diff] [blame] |
graphics: ignore/reduce spurious vsync in VTS Bug: 62802718 Test: VTS Change-Id: I1ed73e0b2f14414f540865a96e6bd5ac1599fbf3
diff --git a/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerTestUtils.cpp b/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerTestUtils.cpp index 4e65a95..c66cdd0 100644 --- a/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerTestUtils.cpp +++ b/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerTestUtils.cpp
@@ -297,6 +297,11 @@ : IComposerClient::Vsync::DISABLE; Error error = mClient->setVsyncEnabled(display, vsync); ASSERT_EQ(Error::NONE, error) << "failed to set vsync mode"; + + // give the hwbinder thread some time to handle any pending vsync callback + if (!enabled) { + usleep(5 * 1000); + } } void ComposerClient::execute(TestCommandReader* reader,