summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayEventDispatcher.cpp
diff options
context:
space:
mode:
author Rachel Lee <rnlee@google.com> 2022-03-14 14:38:45 -0700
committer Rachel Lee <rnlee@google.com> 2022-03-21 16:46:57 -0700
commit4cf8bab5f31611c4eb733cf2a51024449541cb80 (patch)
treedc13d0d3a292e2150e28118605702afa88141de5 /libs/gui/DisplayEventDispatcher.cpp
parentf557e7846509b729fa6e72cd3119e273ffc3efa3 (diff)
Add JNI getLatestVsyncEventData.
Bug: 205721584 Test: atest ChoreographerTest Change-Id: I005fbffdf0db47e6cb636b22a0a316d18f5bbb90
Diffstat (limited to 'libs/gui/DisplayEventDispatcher.cpp')
-rw-r--r--libs/gui/DisplayEventDispatcher.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/gui/DisplayEventDispatcher.cpp b/libs/gui/DisplayEventDispatcher.cpp
index 39d380d9e1..dfdce20438 100644
--- a/libs/gui/DisplayEventDispatcher.cpp
+++ b/libs/gui/DisplayEventDispatcher.cpp
@@ -197,4 +197,9 @@ bool DisplayEventDispatcher::processPendingEvents(nsecs_t* outTimestamp,
return gotVsync;
}
+status_t DisplayEventDispatcher::getLatestVsyncEventData(
+ ParcelableVsyncEventData* outVsyncEventData) const {
+ return mReceiver.getLatestVsyncEventData(outVsyncEventData);
+}
+
} // namespace android