viz/mac: Add an explicit GLSurface clean-up call
Add an explicit method on GLSurface that is to be called while the GLContext is still current, but before the GLSurface is destroyed. A step in this direction was taken in https://crrev.com/538387, where we made the GLContext current again after its decoder had been destroyed, but that path has proved unstable. In particular, the GLSurface internals on macOS are created while the decoder is active, and so destroying them after the decoder is destroyed is precarious. Bug: 772576, 817830 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: I3ff1c395c4e9d7ac0b0f1ab54400cde28bdbe298 Reviewed-on: https://chromium-review.googlesource.com/1046046Reviewed-by:Zhenyao Mo <zmo@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#557250}
Showing
Please register or sign in to comment