summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Chia-I Wu <olv@google.com> 2018-05-03 11:02:56 -0700
committer Chia-I Wu <olv@google.com> 2018-05-04 11:12:05 -0700
commit28f320b443106f1656f9720224f579136dcf0c61 (patch)
tree8daea552ac68629f4e991653889e2e0c7e88e587 /libs/gui/BufferQueueThreadState.cpp
parenta296b0c232483ff2d80a814a1a39d02397ba559e (diff)
surfaceflinger: fix color tranform matrix races
The color transform matrices may be updated by the binder threads while being used by the main thread. Protect the matrices with mStateLock, compute the effective matrix when the individual matrices are updated, and copy the effective matrix to mDrawingState during commitTransaction. This commit fixes the race and moves the matrix computation out of the hot path. Bug: 79210409 Test: night light, color correction, boosted Change-Id: Ibdb756b7b66345ffcef3c665652e20b050865f6d
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions