| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/gl/init/gl_initializer.h" | 5 #include "ui/gl/init/gl_initializer.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/threading/thread_restrictions.h" | 10 #include "base/threading/thread_restrictions.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 } | 179 } |
| 180 | 180 |
| 181 void InitializeDebugGLBindings() { | 181 void InitializeDebugGLBindings() { |
| 182 InitializeDebugGLBindingsEGL(); | 182 InitializeDebugGLBindingsEGL(); |
| 183 InitializeDebugGLBindingsGL(); | 183 InitializeDebugGLBindingsGL(); |
| 184 InitializeDebugGLBindingsGLX(); | 184 InitializeDebugGLBindingsGLX(); |
| 185 InitializeDebugGLBindingsOSMESA(); | 185 InitializeDebugGLBindingsOSMESA(); |
| 186 } | 186 } |
| 187 | 187 |
| 188 void ShutdownGLPlatform() { | 188 void ShutdownGLPlatform() { |
| 189 GLSurfaceEGL::ShutdownOneOff(); | |
| 190 ClearBindingsEGL(); | 189 ClearBindingsEGL(); |
| 191 ClearBindingsGL(); | 190 ClearBindingsGL(); |
| 192 ClearBindingsGLX(); | 191 ClearBindingsGLX(); |
| 193 ClearBindingsOSMESA(); | 192 ClearBindingsOSMESA(); |
| 194 } | 193 } |
| 195 | 194 |
| 196 } // namespace init | 195 } // namespace init |
| 197 } // namespace gl | 196 } // namespace gl |
| OLD | NEW |