Only call gles2::Terminate when all Display objects are deleted
Implementation in command buffer EGL calls gles2::Terminate and gles2::Initialize incorrectly. If there are multiple Display objects each will call Initialize and Terminate and creates and frees the TLS allocated context key twice. It should only be created once and freed once all the Displays are deleted.
BUG=skia:2992
Review URL: https://codereview.chromium.org/1674223002
Cr-Commit-Position: refs/heads/master@{#376439}
2 files changed