diff options
author | Scott Lobdell <slobdell@google.com> | 2021-02-23 11:55:14 -0800 |
---|---|---|
committer | Chris Gross <chrisgross@google.com> | 2021-03-02 22:36:35 +0000 |
commit | ebf6a89a6cc8e50e0aad268cad8387c3b3386c35 (patch) | |
tree | c66aa05c8c800dfedf86ca714fa1fccd787c6cbf /libs/gui/tests/EndToEndNativeInputTest.cpp | |
parent | 42bb72923eea888abc828dd2691049bab0588bc2 (diff) | |
parent | 4f06756d50853e6f13e5d712d127b6b0d94aac5e (diff) |
Merge SP1A.210222.001
Change-Id: I95369f1cb734105745aca9d1bf233f9a9433834b
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 5c9940d822..34c3b16643 100644 --- a/libs/gui/tests/EndToEndNativeInputTest.cpp +++ b/libs/gui/tests/EndToEndNativeInputTest.cpp @@ -41,7 +41,7 @@ #include <input/InputTransport.h> #include <input/InputWindow.h> -#include <ui/DisplayConfig.h> +#include <ui/DisplayMode.h> #include <ui/Rect.h> #include <ui/Region.h> @@ -276,13 +276,13 @@ public: const auto display = mComposerClient->getInternalDisplayToken(); ASSERT_NE(display, nullptr); - DisplayConfig config; - ASSERT_EQ(NO_ERROR, mComposerClient->getActiveDisplayConfig(display, &config)); + ui::DisplayMode mode; + ASSERT_EQ(NO_ERROR, mComposerClient->getActiveDisplayMode(display, &mode)); // 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 = static_cast<int32_t>(1e6 / config.refreshRate) * 3; + mBufferPostDelay = static_cast<int32_t>(1e6 / mode.refreshRate) * 3; } void TearDown() { |