summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2021-02-27 08:38:31 +0000
committerSiarhei Vishniakou <svv@google.com>2021-03-04 03:11:19 +0000
commitdca1946d4cb70f4aef13ed8c81c8ded15ceb02da (patch)
tree468987c97d58929b95e17c3c8edadc61946a3835 /rs/java/android/renderscript/RenderScript.java
parent4a08dabf99d899cf2609fbad35ccedd1318b9f17 (diff)
Use InputEventAssigner to assign input to frame
When a frame is determined to be caused by an input event, it will be labeled with a specific input event id. The newly added entity, InputEventAssigner, is responsible for determining which input event we should use. For regular ACTION_MOVE events, we will take the latest input event as the event that has caused the frame. For the initial gesture (ACTION_DOWN), we will use the first event (the ACTION_DOWN itself) to figure out the down latency. This will allow us to split up 'down' and 'scroll' latencies. Bug: 169866723 Test: looked at the data printed locally to logcat Test: atest InputTests Change-Id: I8513a36960e5d652d07655d1267e758d0c59ced7
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions