summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2024-02-10 02:09:01 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2024-02-23 19:47:07 +0000
commitbb7a0208548bc06b908fccc7c1a24bd54b1a230b (patch)
treedbb6652b4ec4d1e6bb9021d50d0747d80042f7ee /services/surfaceflinger/RegionSamplingThread.cpp
parentc8693d4c61b99c0622202f55841f65336cff4cc0 (diff)
InputTracer: Separate the threading logic into a wrapper backend
InputTracer writes to the tracing backend interface. However, since perfetto expects events to be written from a single thread, InputTracer would write the events from a separate thread. To simplify the logic inside InputTracer, remove the threading logic. Instead, we introduce the ThreadingBackend class, which wraps around an abitrary backend and forwards events to the inner backend from a new thread. Another benefit of this is that we no longer have to use the threaded backend for tests, which makes the tracing part of InputDispatcher_test deterministic. Bug: 210460522 Test: atest inputflinger_tests Change-Id: If7bbc912c05bc975ec9585f0a0ebce68683925bb
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions