summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayEventDispatcher.cpp
diff options
context:
space:
mode:
author Xin Li <delphij@google.com> 2023-10-05 15:40:38 -0700
committer Xin Li <delphij@google.com> 2023-10-05 15:40:38 -0700
commit1961b2f7b191744f3fc6bb4d32f0da0ce3ee0567 (patch)
treeb9785db180fb54b3a776f645cbb2a7ef480e0cb9 /libs/gui/DisplayEventDispatcher.cpp
parente4b64ebecf894e3047e46894a83ab8d37feabd3e (diff)
parent313d1596d818bc94fbab3d42b8c50306871f74a5 (diff)
Merge Android 14
Bug: 298295554 Merged-In: I114a4cf83978f152959a6ec244d322603ff5257b Change-Id: Ia35ae6e11052fcc3b2bdaabd6dc57d0d223de269
Diffstat (limited to 'libs/gui/DisplayEventDispatcher.cpp')
-rw-r--r--libs/gui/DisplayEventDispatcher.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/libs/gui/DisplayEventDispatcher.cpp b/libs/gui/DisplayEventDispatcher.cpp
index dfdce20438..8a883770d8 100644
--- a/libs/gui/DisplayEventDispatcher.cpp
+++ b/libs/gui/DisplayEventDispatcher.cpp
@@ -35,11 +35,15 @@ static const size_t EVENT_BUFFER_SIZE = 100;
static constexpr nsecs_t WAITING_FOR_VSYNC_TIMEOUT = ms2ns(300);
-DisplayEventDispatcher::DisplayEventDispatcher(
- const sp<Looper>& looper, ISurfaceComposer::VsyncSource vsyncSource,
- ISurfaceComposer::EventRegistrationFlags eventRegistration)
- : mLooper(looper), mReceiver(vsyncSource, eventRegistration), mWaitingForVsync(false),
- mLastVsyncCount(0), mLastScheduleVsyncTime(0) {
+DisplayEventDispatcher::DisplayEventDispatcher(const sp<Looper>& looper,
+ gui::ISurfaceComposer::VsyncSource vsyncSource,
+ EventRegistrationFlags eventRegistration,
+ const sp<IBinder>& layerHandle)
+ : mLooper(looper),
+ mReceiver(vsyncSource, eventRegistration, layerHandle),
+ mWaitingForVsync(false),
+ mLastVsyncCount(0),
+ mLastScheduleVsyncTime(0) {
ALOGV("dispatcher %p ~ Initializing display event dispatcher.", this);
}