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_OZONE_PLATFORM_X11_GL_OZONE_GLX_H_ | 5 #ifndef UI_OZONE_PLATFORM_X11_GL_OZONE_GLX_H_ |
6 #define UI_OZONE_PLATFORM_X11_GL_OZONE_GLX_H_ | 6 #define UI_OZONE_PLATFORM_X11_GL_OZONE_GLX_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/gl/gl_implementation.h" | 9 #include "ui/gl/gl_implementation.h" |
10 #include "ui/ozone/public/gl_ozone.h" | 10 #include "ui/ozone/public/gl_ozone.h" |
11 | 11 |
12 namespace ui { | 12 namespace ui { |
13 | 13 |
14 class GLOzoneGLX : public GLOzone { | 14 class GLOzoneGLX : public GLOzone { |
15 public: | 15 public: |
16 GLOzoneGLX() {} | 16 GLOzoneGLX() {} |
17 ~GLOzoneGLX() override {} | 17 ~GLOzoneGLX() override {} |
18 | 18 |
19 bool InitializeGLOneOffPlatform() override; | 19 bool InitializeGLOneOffPlatform() override; |
20 bool InitializeStaticGLBindings(gl::GLImplementation implementation) override; | 20 bool InitializeStaticGLBindings(gl::GLImplementation implementation) override; |
21 void InitializeDebugGLBindings() override; | 21 void InitializeDebugGLBindings() override; |
22 void ClearGLBindings() override; | 22 void ClearGLBindings() override; |
23 bool GetGLWindowSystemBindingInfo( | 23 bool GetGLWindowSystemBindingInfo( |
24 gl::GLWindowSystemBindingInfo* info) override; | 24 gl::GLWindowSystemBindingInfo* info) override; |
25 scoped_refptr<gl::GLContext> CreateGLContext( | 25 scoped_refptr<gl::GLContext> CreateGLContext( |
26 gl::GLShareGroup* share_group, | 26 gl::GLShareGroup* share_group, |
27 gl::GLSurface* compatible_surface, | 27 gl::GLSurface* compatible_surface, |
28 gl::GpuPreference gpu_preference) override; | 28 const gl::GLContextAttribs& attribs) override; |
29 scoped_refptr<gl::GLSurface> CreateViewGLSurface( | 29 scoped_refptr<gl::GLSurface> CreateViewGLSurface( |
30 gfx::AcceleratedWidget window) override; | 30 gfx::AcceleratedWidget window) override; |
31 scoped_refptr<gl::GLSurface> CreateSurfacelessViewGLSurface( | 31 scoped_refptr<gl::GLSurface> CreateSurfacelessViewGLSurface( |
32 gfx::AcceleratedWidget window) override; | 32 gfx::AcceleratedWidget window) override; |
33 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface( | 33 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface( |
34 const gfx::Size& size) override; | 34 const gfx::Size& size) override; |
35 | 35 |
36 private: | 36 private: |
37 DISALLOW_COPY_AND_ASSIGN(GLOzoneGLX); | 37 DISALLOW_COPY_AND_ASSIGN(GLOzoneGLX); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace ui | 40 } // namespace ui |
41 | 41 |
42 #endif // UI_OZONE_PLATFORM_X11_GL_OZONE_GLX_H_ | 42 #endif // UI_OZONE_PLATFORM_X11_GL_OZONE_GLX_H_ |
OLD | NEW |