summaryrefslogtreecommitdiff
path: root/core/java/android/view/ViewRootImpl.java
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2021-03-02 21:10:28 +0000
committerSiarhei Vishniakou <svv@google.com>2021-03-24 12:36:46 +0000
commitf4d7318b17fbee00ddf290d17659525c418fe1d2 (patch)
treed02cb0ecee86d1a631a9cf3e0527b97b14fbe346 /core/java/android/view/ViewRootImpl.java
parentf57e4c9bcec5b60bf4af93c91eeeb7017dd2149f (diff)
Send input timeline from app to InputDispatcher
InputDispatcher will receive the timing information from the app. This timing information will contain: 1) inputEventId : the input event id that corresponds to the current set of times 2) gpuCompletedTime : the time at which gpu has finished processing the frame and the buffer is getting sent from the app to surfaceflinger 3) presentTime : time time at which the frame was displayed Bug: 169866723 Test: tested by printing the data that was passed Test: atest InputEventSenderAndReceiverTest Change-Id: I9bf38473d07c7bd4df3de6bc77b0173faa257f06
Diffstat (limited to 'core/java/android/view/ViewRootImpl.java')
-rw-r--r--core/java/android/view/ViewRootImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java
index dbccf10822cd..982918d52f4b 100644
--- a/core/java/android/view/ViewRootImpl.java
+++ b/core/java/android/view/ViewRootImpl.java
@@ -8601,7 +8601,7 @@ public final class ViewRootImpl implements ViewParent,
return;
}
final long gpuCompletedTime = data[FrameMetrics.Index.GPU_COMPLETED];
- mReceiver.reportLatencyInfo(inputEventId, gpuCompletedTime, presentTime);
+ mReceiver.reportTimeline(inputEventId, gpuCompletedTime, presentTime);
}
}
HardwareRendererObserver mHardwareRendererObserver;