summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayEventReceiver.cpp
diff options
context:
space:
mode:
author JihCheng Chiu <jih-cheng.chiu@mediatek.com> 2019-04-02 20:50:58 +0800
committer Denis Hsu <denis.hsu@mediatek.com> 2019-12-13 09:31:53 +0000
commit544c52279b9348760314ebbd705ffa94e13ae28b (patch)
treea7995ecd5805b8c77fbb0084962ca48b8387d10a /libs/gui/DisplayEventReceiver.cpp
parent5d4883d82c3983ce4b2d820b1bb32a320c4a3442 (diff)
Change the position of addAndGetFrameTimestamps when queueBuffer
BufferQueueProducer's addAndGetFrameTimestamps() call Layer to add a new time record. When SurfaceFlinger latch buffer, it will fill related information into the new record. Nevertheless, queueBuffer call onFrameAvailable() before addAndGetFrameTimestamps(). SurfaceFlinger main thread may latch buffer before this thread add a new time record. Then it cause that main thread can not fill related information into the record. Therefore addAndGetFrameTimestamps() should be called before call onFrameAvailable(). Bug: 146193345 Test: run cts-on-gsi -m CtsDeqpTestCases -t dEQP-EGL.functional.get_frame_timestamps#rgba8888_depth_stencil Change-Id: Ie54480b7f8626d4cfa7f9a131f3e4fdcf211915d
Diffstat (limited to 'libs/gui/DisplayEventReceiver.cpp')
0 files changed, 0 insertions, 0 deletions