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_FACTORY_H_ | 5 #ifndef UI_GL_INIT_GL_FACTORY_H_ |
6 #define UI_GL_INIT_GL_FACTORY_H_ | 6 #define UI_GL_INIT_GL_FACTORY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 GL_INIT_EXPORT bool InitializeGLOneOff(); | 31 GL_INIT_EXPORT bool InitializeGLOneOff(); |
32 | 32 |
33 // Initializes GL bindings using the provided parameters. This might be required | 33 // Initializes GL bindings using the provided parameters. This might be required |
34 // for use in tests, otherwise use InitializeGLOneOff() instead. | 34 // for use in tests, otherwise use InitializeGLOneOff() instead. |
35 GL_INIT_EXPORT bool InitializeGLOneOffImplementation(GLImplementation impl, | 35 GL_INIT_EXPORT bool InitializeGLOneOffImplementation(GLImplementation impl, |
36 bool fallback_to_osmesa, | 36 bool fallback_to_osmesa, |
37 bool gpu_service_logging, | 37 bool gpu_service_logging, |
38 bool disable_gl_drawing); | 38 bool disable_gl_drawing); |
39 | 39 |
40 // Clears GL bindings and resets GL implementation. | 40 // Clears GL bindings and resets GL implementation. |
41 GL_INIT_EXPORT void ClearGLBindings(); | 41 GL_INIT_EXPORT void ShutdownGL(); |
42 | 42 |
43 // Return information about the GL window system binding implementation (e.g., | 43 // Return information about the GL window system binding implementation (e.g., |
44 // EGL, GLX, WGL). Returns true if the information was retrieved successfully. | 44 // EGL, GLX, WGL). Returns true if the information was retrieved successfully. |
45 GL_INIT_EXPORT bool GetGLWindowSystemBindingInfo( | 45 GL_INIT_EXPORT bool GetGLWindowSystemBindingInfo( |
46 GLWindowSystemBindingInfo* info); | 46 GLWindowSystemBindingInfo* info); |
47 | 47 |
48 // Creates a GL context that is compatible with the given surface. | 48 // Creates a GL context that is compatible with the given surface. |
49 // |share_group|, if non-null, is a group of contexts which the internally | 49 // |share_group|, if non-null, is a group of contexts which the internally |
50 // created OpenGL context shares textures and other resources. | 50 // created OpenGL context shares textures and other resources. |
51 GL_INIT_EXPORT scoped_refptr<GLContext> CreateGLContext( | 51 GL_INIT_EXPORT scoped_refptr<GLContext> CreateGLContext( |
(...skipping 15 matching lines...) Expand all Loading... |
67 #endif // defined(USE_OZONE) | 67 #endif // defined(USE_OZONE) |
68 | 68 |
69 // Creates a GL surface used for offscreen rendering. | 69 // Creates a GL surface used for offscreen rendering. |
70 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurface( | 70 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurface( |
71 const gfx::Size& size); | 71 const gfx::Size& size); |
72 | 72 |
73 } // namespace init | 73 } // namespace init |
74 } // namespace gl | 74 } // namespace gl |
75 | 75 |
76 #endif // UI_GL_INIT_GL_FACTORY_H_ | 76 #endif // UI_GL_INIT_GL_FACTORY_H_ |
OLD | NEW |