summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorStephen Kiazyk <skiazyk@google.com>2017-04-05 16:46:49 -0700
committerStephen Kiazyk <skiazyk@google.com>2017-04-14 13:00:42 -0700
commit7d3dcb9235ec149af2f5139a8a9c6eac859d92e2 (patch)
treeeb501b420336da9075a29724cfa3937a222c4bed /opengl/tests/gl_basic/gl_basic.cpp
parent11c1acc33a7402153ab0e7308bc59921165819ab (diff)
Avoid a potential race condition on mDisplays
I've now run this on a HWC1 and HWC2 build. Both appear to be running correctly. Original Message: The race could occur when transitioning in/out of VR flinger mode. It is now avoided by ensuring that the primary |DisplayDevice| is always created once |mStateLock| is released, and ensuring that all accesses to the primary |DisplayDevice| are guarded by |mStateLock|. Bug: 36194616 Bug: 37249613 Bug: 37288476 Test: Compiled, installed, and ran with both HWC1 and HWC2 variants. HWC1 was tested on Nexus 6P. Was able to boot, install apps, run apps, turn screen on/off, and reboot phone. HWC2 was tested on sailfish. Was able to boot, install apps, run apps, run VR apps using both N path, and O1 path, turn screen on/off, and reboot phone. Change-Id: I0e80c2553f40cce2116b718bbb0d2566679f794a
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions