| 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" |
| 11 #include "ui/gfx/geometry/size.h" | 11 #include "ui/gfx/geometry/size.h" |
| 12 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 13 #include "ui/gl/gl_implementation.h" | 13 #include "ui/gl/gl_implementation.h" |
| 14 #include "ui/gl/gl_surface_format.h" |
| 14 #include "ui/gl/gpu_preference.h" | 15 #include "ui/gl/gpu_preference.h" |
| 15 #include "ui/gl/init/gl_init_export.h" | 16 #include "ui/gl/init/gl_init_export.h" |
| 16 | 17 |
| 17 namespace gl { | 18 namespace gl { |
| 18 | 19 |
| 19 class GLContext; | 20 class GLContext; |
| 20 struct GLContextAttribs; | 21 struct GLContextAttribs; |
| 21 class GLShareGroup; | 22 class GLShareGroup; |
| 22 class GLSurface; | 23 class GLSurface; |
| 23 | 24 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // 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 |
| 64 // enabled it will return a null pointer. | 65 // enabled it will return a null pointer. |
| 65 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateSurfacelessViewGLSurface( | 66 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateSurfacelessViewGLSurface( |
| 66 gfx::AcceleratedWidget window); | 67 gfx::AcceleratedWidget window); |
| 67 #endif // defined(USE_OZONE) | 68 #endif // defined(USE_OZONE) |
| 68 | 69 |
| 69 // Creates a GL surface used for offscreen rendering. | 70 // Creates a GL surface used for offscreen rendering. |
| 70 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurface( | 71 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurface( |
| 71 const gfx::Size& size); | 72 const gfx::Size& size); |
| 72 | 73 |
| 74 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurfaceWithFormat( |
| 75 const gfx::Size& size, GLSurfaceFormat format); |
| 76 |
| 73 } // namespace init | 77 } // namespace init |
| 74 } // namespace gl | 78 } // namespace gl |
| 75 | 79 |
| 76 #endif // UI_GL_INIT_GL_FACTORY_H_ | 80 #endif // UI_GL_INIT_GL_FACTORY_H_ |
| OLD | NEW |