| 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 <dwmapi.h> | 7 #include <dwmapi.h> |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
| 10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 return false; | 312 return false; |
| 313 } | 313 } |
| 314 | 314 |
| 315 void InitializeDebugGLBindings() { | 315 void InitializeDebugGLBindings() { |
| 316 InitializeDebugGLBindingsEGL(); | 316 InitializeDebugGLBindingsEGL(); |
| 317 InitializeDebugGLBindingsGL(); | 317 InitializeDebugGLBindingsGL(); |
| 318 InitializeDebugGLBindingsOSMESA(); | 318 InitializeDebugGLBindingsOSMESA(); |
| 319 InitializeDebugGLBindingsWGL(); | 319 InitializeDebugGLBindingsWGL(); |
| 320 } | 320 } |
| 321 | 321 |
| 322 void ClearGLBindingsPlatform() { | 322 void ShutdownGLPlatform() { |
| 323 // TODO(jmadill): Apply to all platforms eventually | 323 // TODO(jmadill): Apply to all platforms eventually |
| 324 if (g_angle_platform_shutdown) { | 324 if (g_angle_platform_shutdown) { |
| 325 g_angle_platform_shutdown(); | 325 g_angle_platform_shutdown(); |
| 326 } | 326 } |
| 327 | 327 |
| 328 ClearGLBindingsEGL(); | 328 ClearBindingsEGL(); |
| 329 ClearGLBindingsGL(); | 329 ClearBindingsGL(); |
| 330 ClearGLBindingsOSMESA(); | 330 ClearBindingsOSMESA(); |
| 331 ClearGLBindingsWGL(); | 331 ClearBindingsWGL(); |
| 332 } | 332 } |
| 333 | 333 |
| 334 } // namespace init | 334 } // namespace init |
| 335 } // namespace gl | 335 } // namespace gl |
| OLD | NEW |