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

Side by Side Diff: ui/gl/gl_surface_glx.h

Issue 2139673002: GLContextGLX: try all GL versions from the highest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/gl/gl_context_glx.cc ('k') | ui/gl/gl_surface_glx.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 28
29 static bool InitializeOneOff(); 29 static bool InitializeOneOff();
30 30
31 // These aren't particularly tied to surfaces, but since we already 31 // These aren't particularly tied to surfaces, but since we already
32 // have the static InitializeOneOff here, it's easiest to reuse its 32 // have the static InitializeOneOff here, it's easiest to reuse its
33 // initialization guards. 33 // initialization guards.
34 static const char* GetGLXExtensions(); 34 static const char* GetGLXExtensions();
35 static bool HasGLXExtension(const char* name); 35 static bool HasGLXExtension(const char* name);
36 static bool IsCreateContextSupported(); 36 static bool IsCreateContextSupported();
37 static bool IsCreateContextRobustnessSupported(); 37 static bool IsCreateContextRobustnessSupported();
38 static bool IsCreateContextProfileSupported();
39 static bool IsCreateContextES2ProfileSupported();
38 static bool IsTextureFromPixmapSupported(); 40 static bool IsTextureFromPixmapSupported();
39 static bool IsOMLSyncControlSupported(); 41 static bool IsOMLSyncControlSupported();
40 42
41 void* GetDisplay() override; 43 void* GetDisplay() override;
42 44
43 // Get the FB config that the surface was created with or NULL if it is not 45 // Get the FB config that the surface was created with or NULL if it is not
44 // a GLX drawable. 46 // a GLX drawable.
45 void* GetConfig() override = 0; 47 void* GetConfig() override = 0;
46 48
47 protected: 49 protected:
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 127
126 // GLXDrawable for the window. 128 // GLXDrawable for the window.
127 GLXWindow glx_window_; 129 GLXWindow glx_window_;
128 130
129 DISALLOW_COPY_AND_ASSIGN(UnmappedNativeViewGLSurfaceGLX); 131 DISALLOW_COPY_AND_ASSIGN(UnmappedNativeViewGLSurfaceGLX);
130 }; 132 };
131 133
132 } // namespace gl 134 } // namespace gl
133 135
134 #endif // UI_GL_GL_SURFACE_GLX_H_ 136 #endif // UI_GL_GL_SURFACE_GLX_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_context_glx.cc ('k') | ui/gl/gl_surface_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698