Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(622)

Side by Side Diff: ui/ozone/common/gl_ozone_osmesa.h

Issue 2731733002: Convert Ozone GL OSMesa implementation. (Closed)
Patch Set: Fix rebase. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/common/BUILD.gn ('k') | ui/ozone/common/gl_ozone_osmesa.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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;
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_
OLDNEW
« no previous file with comments | « ui/ozone/common/BUILD.gn ('k') | ui/ozone/common/gl_ozone_osmesa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698