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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 #if defined(USE_OZONE) | 61 #if defined(USE_OZONE) |
62 // Creates a GL surface that renders directly into a window with surfaceless | 62 // Creates a GL surface that renders directly into a window with surfaceless |
63 // semantics - there is no default framebuffer and the primary surface must | 63 // semantics - there is no default framebuffer and the primary surface must |
64 // be presented as an overlay. If surfaceless mode is not supported or | 64 // be presented as an overlay. If surfaceless mode is not supported or |
65 // enabled it will return a null pointer. | 65 // enabled it will return a null pointer. |
66 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateSurfacelessViewGLSurface( | 66 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateSurfacelessViewGLSurface( |
67 gfx::AcceleratedWidget window); | 67 gfx::AcceleratedWidget window); |
68 #endif // defined(USE_OZONE) | 68 #endif // defined(USE_OZONE) |
69 | 69 |
70 // Creates a GL surface used for offscreen rendering. | 70 // Creates a GL surface used for offscreen rendering. |
| 71 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateUninitializedOffscreenGLSurface( |
| 72 const gfx::Size& size); |
71 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurface( | 73 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurface( |
72 const gfx::Size& size); | 74 const gfx::Size& size); |
73 | 75 |
74 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurfaceWithFormat( | 76 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurfaceWithFormat( |
75 const gfx::Size& size, GLSurfaceFormat format); | 77 const gfx::Size& size, GLSurfaceFormat format); |
76 | 78 |
77 } // namespace init | 79 } // namespace init |
78 } // namespace gl | 80 } // namespace gl |
79 | 81 |
80 #endif // UI_GL_INIT_GL_FACTORY_H_ | 82 #endif // UI_GL_INIT_GL_FACTORY_H_ |
OLD | NEW |