summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorVishnu Nair <vishnun@google.com>2024-01-17 10:42:29 -0800
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-01-19 21:21:35 +0000
commit954766c39bd2649b1a7137fafa9f1e122458d40e (patch)
tree5eb1ea4f64a74c35763c32717234f2feb67f2ed1 /opengl/tests/gl_basic/gl_basic.cpp
parent592fc6986c0cdcd3885ef5fd0c07c1162b7bf910 (diff)
Fix crash when a layer is destroyed immediately after creation
If a layer handle is destroyed before we commit any transactions, we will not be able to promote the legacy layer object in the main thread. This is a few of the remaining warts with the legacy frontend which we can fixed once we remove the flag. For now, fix this by checking if the layer was destroyed before accessing the legacy layer object. Test: presubmit Fixes: 318347070 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1009dbdbbf28c891d70d9d125b081b3df4c5849d) Merged-In: Ia54feb4b483f0981acd198a0af07745cec183863 Change-Id: Ia54feb4b483f0981acd198a0af07745cec183863
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions