OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_OZONE_COMMON_GL_OZONE_OSMESA_H_ | |
6 #define UI_OZONE_COMMON_GL_OZONE_OSMESA_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "ui/gl/gl_implementation.h" | |
10 #include "ui/ozone/public/gl_ozone.h" | |
11 | |
12 namespace ui { | |
13 | |
14 // GLOzone implementation that uses OSMesa. | |
15 class GLOzoneOSMesa : public GLOzone { | |
16 public: | |
17 GLOzoneOSMesa() {} | |
18 ~GLOzoneOSMesa() override {} | |
rjkroege
2017/03/03 19:09:45
it use to be that you would have to put this in th
kylechar
2017/03/03 19:13:56
Moved to .cc.
| |
19 | |
20 // GLOzone: | |
21 bool InitializeGLOneOffPlatform() override; | |
22 bool InitializeStaticGLBindings(gl::GLImplementation implementation) override; | |
23 void InitializeDebugGLBindings() override; | |
24 void ShutdownGL() override; | |
25 bool GetGLWindowSystemBindingInfo( | |
26 gl::GLWindowSystemBindingInfo* info) override; | |
27 scoped_refptr<gl::GLContext> CreateGLContext( | |
28 gl::GLShareGroup* share_group, | |
29 gl::GLSurface* compatible_surface, | |
30 const gl::GLContextAttribs& attribs) override; | |
31 scoped_refptr<gl::GLSurface> CreateViewGLSurface( | |
32 gfx::AcceleratedWidget window) override; | |
33 scoped_refptr<gl::GLSurface> CreateSurfacelessViewGLSurface( | |
34 gfx::AcceleratedWidget window) override; | |
35 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface( | |
36 const gfx::Size& size) override; | |
37 | |
38 private: | |
39 DISALLOW_COPY_AND_ASSIGN(GLOzoneOSMesa); | |
40 }; | |
41 | |
42 } // namespace ui | |
43 | |
44 #endif // UI_OZONE_COMMON_GL_OZONE_OSMESA_H_ | |
OLD | NEW |