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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // be presented as an overlay. If surfaceless mode is not supported or | 62 // be presented as an overlay. If surfaceless mode is not supported or |
63 // enabled it will return a null pointer. | 63 // enabled it will return a null pointer. |
64 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateSurfacelessViewGLSurface( | 64 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateSurfacelessViewGLSurface( |
65 gfx::AcceleratedWidget window); | 65 gfx::AcceleratedWidget window); |
66 #endif // defined(USE_OZONE) | 66 #endif // defined(USE_OZONE) |
67 | 67 |
68 // Creates a GL surface used for offscreen rendering. | 68 // Creates a GL surface used for offscreen rendering. |
69 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurface( | 69 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurface( |
70 const gfx::Size& size); | 70 const gfx::Size& size); |
71 | 71 |
| 72 #if !defined(OS_MACOSX) |
| 73 // Return the shared library names for the given GLImplementation. |
| 74 GL_INIT_EXPORT bool GetNativeLibraryNamesFromGLImplementation( |
| 75 GLImplementation impl, |
| 76 std::vector<std::string>* required_libraries); |
| 77 #endif |
| 78 |
72 } // namespace init | 79 } // namespace init |
73 } // namespace gl | 80 } // namespace gl |
74 | 81 |
75 #endif // UI_GL_INIT_GL_FACTORY_H_ | 82 #endif // UI_GL_INIT_GL_FACTORY_H_ |
OLD | NEW |