diff options
author | Steven Laver <lavers@google.com> | 2020-02-04 22:57:37 -0800 |
---|---|---|
committer | Steven Laver <lavers@google.com> | 2020-02-04 22:57:37 -0800 |
commit | c4ea1569cb424488584a055e7a2ff072b6737c46 (patch) | |
tree | 9b3c53f411f9bac3c62e6add63d911efb58e5f20 /libs/gui/tests/EndToEndNativeInputTest.cpp | |
parent | 6ce90f5a0e36af865468ecf17706d7dd660dd6ee (diff) | |
parent | 0400f2c9e273f5682df3bf05ebc41f36a9a84ad3 (diff) |
Merge RP1A.200204.001
Change-Id: I9c8cb894e80a8606d10979a7c43602b0c46e36cd
Diffstat (limited to 'libs/gui/tests/EndToEndNativeInputTest.cpp')
-rw-r--r-- | libs/gui/tests/EndToEndNativeInputTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/gui/tests/EndToEndNativeInputTest.cpp b/libs/gui/tests/EndToEndNativeInputTest.cpp index d8f44761f8..d9227c37b1 100644 --- a/libs/gui/tests/EndToEndNativeInputTest.cpp +++ b/libs/gui/tests/EndToEndNativeInputTest.cpp @@ -41,7 +41,7 @@ #include <input/InputTransport.h> #include <input/Input.h> -#include <ui/DisplayInfo.h> +#include <ui/DisplayConfig.h> #include <ui/Rect.h> #include <ui/Region.h> @@ -227,13 +227,13 @@ public: const auto display = mComposerClient->getInternalDisplayToken(); ASSERT_NE(display, nullptr); - DisplayInfo info; - ASSERT_EQ(NO_ERROR, mComposerClient->getDisplayInfo(display, &info)); + DisplayConfig config; + ASSERT_EQ(NO_ERROR, mComposerClient->getActiveDisplayConfig(display, &config)); // After a new buffer is queued, SurfaceFlinger is notified and will // latch the new buffer on next vsync. Let's heuristically wait for 3 // vsyncs. - mBufferPostDelay = int32_t(1e6 / info.fps) * 3; + mBufferPostDelay = static_cast<int32_t>(1e6 / config.refreshRate) * 3; } void TearDown() { |