| 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 #ifndef UI_GL_INIT_GL_INITIALIZER_H_ | 5 #ifndef UI_GL_INIT_GL_INITIALIZER_H_ |
| 6 #define UI_GL_INIT_GL_INITIALIZER_H_ | 6 #define UI_GL_INIT_GL_INITIALIZER_H_ |
| 7 | 7 |
| 8 #include "ui/gl/gl_implementation.h" | |
| 9 | |
| 10 namespace gl { | 8 namespace gl { |
| 11 namespace init { | 9 namespace init { |
| 12 | 10 |
| 13 // Performs platform dependent one-off GL initialization, calling into the | 11 // Performs platform dependent one-off GL initialization, calling into the |
| 14 // appropriate GLSurface code to initialize it. To perform one-off GL | 12 // appropriate GLSurface code to initialize it. To perform one-off GL |
| 15 // initialization you should use InitializeGLOneOff() or for tests possibly | 13 // initialization you should use InitializeGLOneOff() or for tests possibly |
| 16 // InitializeGLOneOffImplementation() instead. | 14 // InitializeGLOneOffImplementation() instead of this. |
| 17 bool InitializeGLOneOffPlatform(); | 15 bool InitializeGLOneOffPlatform(); |
| 18 | 16 |
| 19 // Initializes a particular GL implementation. | |
| 20 bool InitializeStaticGLBindings(GLImplementation implementation); | |
| 21 | |
| 22 // Initializes debug logging wrappers for GL bindings. | |
| 23 void InitializeDebugGLBindings(); | |
| 24 | |
| 25 // Clears GL bindings for all implementations supported by platform. | |
| 26 void ClearGLBindingsPlatform(); | |
| 27 | |
| 28 } // namespace init | 17 } // namespace init |
| 29 } // namespace gl | 18 } // namespace gl |
| 30 | 19 |
| 31 #endif // UI_GL_INIT_GL_INITIALIZER_H_ | 20 #endif // UI_GL_INIT_GL_INITIALIZER_H_ |
| OLD | NEW |