• Simon La Macchia's avatar
    Reset GLManager so it can be reused with ES2 context · 725e8cde
    Simon La Macchia authored
    Problem: When the GLVirtualContextsTest tests are run on a device with
    Open GL ES 2.0, the tests fail during initialization because it tries
    to re-initialize a GLManager (gl_real_) after failing to initialize as
    content type ES 3.0. The problem being theat the gl_real_ is now in
    an inconsistent state and cannot be initialized again.
    
    Solution: Reset the GLManager (gl_real_) after failing to be
    initialized as ES3, so that it can be re-tried as ES2.
    
    Bug: None
    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;master.tryserver.chromium.win:win_optional_gpu_tests_rel
    Change-Id: Idb0a6947baa80c3135418504e77458171eebe1fa
    Reviewed-on: https://chromium-review.googlesource.com/999268Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
    Commit-Queue: Antoine Labour <piman@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#548838}
    725e8cde
gl_manager.h 7.14 KB