| 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 |
| 8 namespace gl { | 10 namespace gl { |
| 9 namespace init { | 11 namespace init { |
| 10 | 12 |
| 11 // Performs platform dependent one-off GL initialization, calling into the | 13 // Performs platform dependent one-off GL initialization, calling into the |
| 12 // appropriate GLSurface code to initialize it. To perform one-off GL | 14 // appropriate GLSurface code to initialize it. To perform one-off GL |
| 13 // initialization you should use InitializeGLOneOff() or for tests possibly | 15 // initialization you should use InitializeGLOneOff() or for tests possibly |
| 14 // InitializeGLOneOffImplementation() instead of this. | 16 // InitializeGLOneOffImplementation() instead. |
| 15 bool InitializeGLOneOffPlatform(); | 17 bool InitializeGLOneOffPlatform(); |
| 16 | 18 |
| 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 |
| 17 } // namespace init | 28 } // namespace init |
| 18 } // namespace gl | 29 } // namespace gl |
| 19 | 30 |
| 20 #endif // UI_GL_INIT_GL_INITIALIZER_H_ | 31 #endif // UI_GL_INIT_GL_INITIALIZER_H_ |
| OLD | NEW |