summaryrefslogtreecommitdiff
path: root/libs/binder/Status.cpp
diff options
context:
space:
mode:
author Yiwei Zhang <zzyiwei@google.com> 2019-04-16 11:03:01 -0700
committer Yiwei Zhang <zzyiwei@google.com> 2019-04-16 18:27:56 +0000
commita5da6fe761fc65a8cfac87ae1bee0cd6ed380da9 (patch)
tree9996e79f9463ddeeebded1ca9b1fa1149821bc9f /libs/binder/Status.cpp
parent94c1d740cfe001e5faf62d3c447c4e1e9f4aa325 (diff)
TimeStats: fix a racing case
setPostTime is plumbed without BufferQueue lock, and it's called at the end of queueBuffer. If the addAndGetFrameTimestamps is delayed by queueBuffer back pressure (this could happen on special SF/BQ configs), setAcquireFence will be called with a out-of-bound index internally. So this change will tweak the order of the back Pressure logic to make the post time correct when queueBuffer back pressure happens as well as guarding the TimeStats more strictly. Bug: 130515827 Test: all SurfaceFlinger tests Change-Id: I2eace6d8693cc647284de0f33e7b58a6bf79eaaf Merged-In: I2eace6d8693cc647284de0f33e7b58a6bf79eaaf
Diffstat (limited to 'libs/binder/Status.cpp')
0 files changed, 0 insertions, 0 deletions