summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorLloyd Pique <lpique@google.com>2017-12-14 17:18:17 -0800
committerLloyd Pique <lpique@google.com>2018-01-11 12:44:55 -0800
commit2ae2b3bd5bfbacc3b52f222441bfbbeb9bd54dc7 (patch)
tree141d9aca0dda54a3172139b0ac6e3a888c9e780e /opengl/tests/gl_basic/gl_basic.cpp
parent715a2c13e6a010143761c1822ce7c4975921aa0b (diff)
Allow a primary display disconnect
This patch forwards the primary display disconnect event to the Framework, and otherwise ensures that SurfaceFlinger does not crash while there is no primary display. Note that the Framework does not yet accept this change. In particular the ActivityManager ActivityStackSupervisor code promptly asserts that one cannot remove the primary display. With this assertion disabled, the framework does not crash (surprisingly). And if the Framework subsequently receives a primary display connect event, it does not seem to do anything useful -- the display remains in a default off state, and no layer stack/viewport/etc is set on it. Bug: 38464421 Test: Works (with workarounds as noted) on a Chromebook Test: Added Unit test passes on Pixel 1 XL Change-Id: Ia11439030efdc53bc17474b71a0ffb3d3085bb49
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions