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

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

Issue 194303002: Blacklist GLX indirect rendering (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/gl/gl_glx_api_implementation.cc ('k') | ui/gl/gl_implementation.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_IMPLEMENTATION_H_ 5 #ifndef UI_GL_GL_IMPLEMENTATION_H_
6 #define UI_GL_GL_IMPLEMENTATION_H_ 6 #define UI_GL_GL_IMPLEMENTATION_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/native_library.h" 11 #include "base/native_library.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "ui/gl/gl_export.h" 13 #include "ui/gl/gl_export.h"
14 #include "ui/gl/gl_switches.h" 14 #include "ui/gl/gl_switches.h"
15 15
16 namespace gfx { 16 namespace gfx {
17 17
18 class GLContext; 18 class GLContext;
19 19
20 // The GL implementation currently in use. 20 // The GL implementation currently in use.
21 enum GLImplementation { 21 enum GLImplementation {
22 kGLImplementationNone, 22 kGLImplementationNone,
23 kGLImplementationDesktopGL, 23 kGLImplementationDesktopGL,
24 kGLImplementationOSMesaGL, 24 kGLImplementationOSMesaGL,
25 kGLImplementationAppleGL, 25 kGLImplementationAppleGL,
26 kGLImplementationEGLGLES2, 26 kGLImplementationEGLGLES2,
27 kGLImplementationMockGL 27 kGLImplementationMockGL
28 }; 28 };
29 29
30 struct GLWindowSystemBindingInfo { 30 struct GL_EXPORT GLWindowSystemBindingInfo {
31 GLWindowSystemBindingInfo();
31 std::string vendor; 32 std::string vendor;
32 std::string version; 33 std::string version;
33 std::string extensions; 34 std::string extensions;
35 bool direct_rendering;
34 }; 36 };
35 37
36 void GetAllowedGLImplementations(std::vector<GLImplementation>* impls); 38 void GetAllowedGLImplementations(std::vector<GLImplementation>* impls);
37 39
38 #if defined(OS_WIN) 40 #if defined(OS_WIN)
39 typedef void* (WINAPI *GLGetProcAddressProc)(const char* name); 41 typedef void* (WINAPI *GLGetProcAddressProc)(const char* name);
40 #else 42 #else
41 typedef void* (*GLGetProcAddressProc)(const char* name); 43 typedef void* (*GLGetProcAddressProc)(const char* name);
42 #endif 44 #endif
43 45
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // unsupported. 109 // unsupported.
108 void* GetGLProcAddress(const char* name); 110 void* GetGLProcAddress(const char* name);
109 111
110 // Return information about the GL window system binding implementation (e.g., 112 // Return information about the GL window system binding implementation (e.g.,
111 // EGL, GLX, WGL). Returns true if the information was retrieved successfully. 113 // EGL, GLX, WGL). Returns true if the information was retrieved successfully.
112 GL_EXPORT bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info); 114 GL_EXPORT bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info);
113 115
114 } // namespace gfx 116 } // namespace gfx
115 117
116 #endif // UI_GL_GL_IMPLEMENTATION_H_ 118 #endif // UI_GL_GL_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_glx_api_implementation.cc ('k') | ui/gl/gl_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698