OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GL_SURFACE_GLX_H_ | 5 #ifndef UI_GL_GL_SURFACE_GLX_H_ |
6 #define UI_GL_GL_SURFACE_GLX_H_ | 6 #define UI_GL_GL_SURFACE_GLX_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "ui/events/platform/platform_event_dispatcher.h" | 11 #include "ui/events/platform/platform_event_dispatcher.h" |
12 #include "ui/gfx/geometry/size.h" | 12 #include "ui/gfx/geometry/size.h" |
13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
14 #include "ui/gfx/vsync_provider.h" | 14 #include "ui/gfx/vsync_provider.h" |
15 #include "ui/gfx/x/x11_types.h" | 15 #include "ui/gfx/x/x11_types.h" |
16 #include "ui/gl/gl_export.h" | 16 #include "ui/gl/gl_export.h" |
17 #include "ui/gl/gl_surface.h" | 17 #include "ui/gl/gl_surface.h" |
18 | 18 |
19 namespace gfx { | 19 namespace gfx { |
20 | 20 |
21 // Base class for GLX surfaces. | 21 // Base class for GLX surfaces. |
22 class GL_EXPORT GLSurfaceGLX : public GLSurface { | 22 class GL_EXPORT GLSurfaceGLX : public GLSurface { |
23 public: | 23 public: |
24 GLSurfaceGLX(); | 24 GLSurfaceGLX(SurfaceConfiguration requested_configuration); |
viettrungluu
2015/06/09 00:48:15
explicit
iansf
2015/06/09 01:52:05
Done.
| |
25 | 25 |
26 static bool InitializeOneOff(); | 26 static bool InitializeOneOff(); |
27 | 27 |
28 // These aren't particularly tied to surfaces, but since we already | 28 // These aren't particularly tied to surfaces, but since we already |
29 // have the static InitializeOneOff here, it's easiest to reuse its | 29 // have the static InitializeOneOff here, it's easiest to reuse its |
30 // initialization guards. | 30 // initialization guards. |
31 static const char* GetGLXExtensions(); | 31 static const char* GetGLXExtensions(); |
32 static bool HasGLXExtension(const char* name); | 32 static bool HasGLXExtension(const char* name); |
33 static bool IsCreateContextSupported(); | 33 static bool IsCreateContextSupported(); |
34 static bool IsCreateContextRobustnessSupported(); | 34 static bool IsCreateContextRobustnessSupported(); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 gfx::Size size_; | 113 gfx::Size size_; |
114 void* config_; | 114 void* config_; |
115 XID pbuffer_; | 115 XID pbuffer_; |
116 | 116 |
117 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); | 117 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); |
118 }; | 118 }; |
119 | 119 |
120 } // namespace gfx | 120 } // namespace gfx |
121 | 121 |
122 #endif // UI_GL_GL_SURFACE_GLX_H_ | 122 #endif // UI_GL_GL_SURFACE_GLX_H_ |
OLD | NEW |