| 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" | 8 #include "ui/gl/gl_implementation.h" |
| 9 | 9 |
| 10 namespace gl { | 10 namespace gl { |
| 11 namespace init { | 11 namespace init { |
| 12 | 12 |
| 13 // Performs platform dependent one-off GL initialization, calling into the | 13 // Performs platform dependent one-off GL initialization, calling into the |
| 14 // appropriate GLSurface code to initialize it. To perform one-off GL | 14 // appropriate GLSurface code to initialize it. To perform one-off GL |
| 15 // initialization you should use InitializeGLOneOff() or for tests possibly | 15 // initialization you should use InitializeGLOneOff() or for tests possibly |
| 16 // InitializeGLOneOffImplementation() instead. | 16 // InitializeGLOneOffImplementation() instead. |
| 17 bool InitializeGLOneOffPlatform(); | 17 bool InitializeGLOneOffPlatform(); |
| 18 | 18 |
| 19 // Initializes a particular GL implementation. | 19 // Initializes a particular GL implementation. |
| 20 bool InitializeStaticGLBindings(GLImplementation implementation); | 20 bool InitializeStaticGLBindings(GLImplementation implementation); |
| 21 | 21 |
| 22 // Initializes debug logging wrappers for GL bindings. | 22 // Initializes debug logging wrappers for GL bindings. |
| 23 void InitializeDebugGLBindings(); | 23 void InitializeDebugGLBindings(); |
| 24 | 24 |
| 25 // Clears GL bindings for all implementations supported by platform. | 25 // Clears GL bindings for all implementations supported by platform. |
| 26 void ClearGLBindingsPlatform(); | 26 void ClearGLBindingsPlatform(); |
| 27 | 27 |
| 28 #if !defined(OS_MACOSX) |
| 29 // Return the shared library names that are required by platform for the given |
| 30 // GLImplementation. |
| 31 bool GetNativeLibraryNamesFromGLImplementationPlatform( |
| 32 GLImplementation impl, |
| 33 std::vector<std::string>* required_libraries); |
| 34 #endif |
| 35 |
| 28 } // namespace init | 36 } // namespace init |
| 29 } // namespace gl | 37 } // namespace gl |
| 30 | 38 |
| 31 #endif // UI_GL_INIT_GL_INITIALIZER_H_ | 39 #endif // UI_GL_INIT_GL_INITIALIZER_H_ |
| OLD | NEW |