summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorGarfield Tan <xutan@google.com>2018-03-16 13:03:52 -0700
committerGarfield Tan <xutan@google.com>2018-03-19 14:50:10 -0700
commitf4ac3072460095c567580b83ae5a6800a7e540fc (patch)
tree121b29e088f264c86366b8b417526d3aab5ccf2c /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentd65f5ed038a4d1b0d76923851e7d9d681d8bebcb (diff)
Add a null check in case the display is missing.
This is guarding null at last minute to avoid framework crash on a race condition. If orientation sensor updates proposed rotation and primary display is disconnected right after that, it's possible that framework is handling display rotation before it knows primary display is gone, and surface flinger returns null handle for BUILT_IN_DISPLAY_ID_MAIN. Bug: 75273516 Test: go/wm-smoke on walleye, with necessary modifications to adapt to new Pixel Launcher. Change-Id: I98173a74548f81a23cd1b8e7ad52bd45ee9ef9fb
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions