• Christopher Cameron's avatar
    viz/mac: Add an explicit GLSurface clean-up call · 78ad7b11
    Christopher Cameron authored
    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: default avatarZhenyao Mo <zmo@chromium.org>
    Commit-Queue: ccameron <ccameron@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#557250}
    78ad7b11
gl_surface.h 15 KB