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/logging.h" | 7 #include "base/logging.h" |
8 #include "ui/gl/gl_bindings.h" | 8 #include "ui/gl/gl_bindings.h" |
9 #include "ui/gl/gl_egl_api_implementation.h" | 9 #include "ui/gl/gl_egl_api_implementation.h" |
10 #include "ui/gl/gl_gl_api_implementation.h" | 10 #include "ui/gl/gl_gl_api_implementation.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 GetGLOzone()->InitializeDebugGLBindings(); | 85 GetGLOzone()->InitializeDebugGLBindings(); |
86 return; | 86 return; |
87 } | 87 } |
88 | 88 |
89 InitializeDebugGLBindingsEGL(); | 89 InitializeDebugGLBindingsEGL(); |
90 InitializeDebugGLBindingsGL(); | 90 InitializeDebugGLBindingsGL(); |
91 InitializeDebugGLBindingsOSMESA(); | 91 InitializeDebugGLBindingsOSMESA(); |
92 } | 92 } |
93 | 93 |
94 void ShutdownGLPlatform() { | 94 void ShutdownGLPlatform() { |
| 95 GLSurfaceEGL::ShutdownOneOff(); |
95 if (HasGLOzone()) { | 96 if (HasGLOzone()) { |
96 GetGLOzone()->ShutdownGL(); | 97 GetGLOzone()->ShutdownGL(); |
97 return; | 98 return; |
98 } | 99 } |
99 | 100 |
100 ClearBindingsEGL(); | 101 ClearBindingsEGL(); |
101 ClearBindingsGL(); | 102 ClearBindingsGL(); |
102 ClearBindingsOSMESA(); | 103 ClearBindingsOSMESA(); |
103 } | 104 } |
104 | 105 |
105 } // namespace init | 106 } // namespace init |
106 } // namespace gl | 107 } // namespace gl |
OLD | NEW |