diff options
author | 2021-01-07 14:05:08 -0800 | |
---|---|---|
committer | 2021-01-07 14:05:08 -0800 | |
commit | adf632ba3a3298b4e66edfc468cf3888d5f2eac4 (patch) | |
tree | 68771f2b70feaa06419d6f5840e54a12969f3d5b /services/surfaceflinger/BufferStateLayer.cpp | |
parent | 162b5e90f9760392cd881091cdbf9de4ea1eb889 (diff) |
BlastBufferQueue: Pass client dequeue times to SurfaceFlinger
SF keeps track of client dequeue, queue, acquire etc. timestamps to
construct frame rendering timelines for developers. With BBQ, SF no
longer has access to this data, so pass the dequeue time along with
the buffers.
Ideally this data should flow to the perfetto trace directly from the client
but this is a temp solution while some perf issues with client logging
is sorted out.
Bug: 176931912
Test: manual tests
Change-Id: Ic88170c1fb20850662cb99325ac42b7232a02817
Diffstat (limited to 'services/surfaceflinger/BufferStateLayer.cpp')
-rw-r--r-- | services/surfaceflinger/BufferStateLayer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/surfaceflinger/BufferStateLayer.cpp b/services/surfaceflinger/BufferStateLayer.cpp index bca1c69c0f..a431028bde 100644 --- a/services/surfaceflinger/BufferStateLayer.cpp +++ b/services/surfaceflinger/BufferStateLayer.cpp @@ -343,7 +343,8 @@ bool BufferStateLayer::addFrameEvent(const sp<Fence>& acquireFence, nsecs_t post bool BufferStateLayer::setBuffer(const sp<GraphicBuffer>& buffer, const sp<Fence>& acquireFence, nsecs_t postTime, nsecs_t desiredPresentTime, bool isAutoTimestamp, - const client_cache_t& clientCacheId, uint64_t frameNumber) { + const client_cache_t& clientCacheId, uint64_t frameNumber, + std::optional<nsecs_t> /* dequeueTime */) { ATRACE_CALL(); if (mCurrentState.buffer) { |