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 #include "ui/gl/gl_implementation.h" | 5 #include "ui/gl/gl_implementation.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 } | 64 } |
65 | 65 |
66 GLApi* g_current_gl_context; | 66 GLApi* g_current_gl_context; |
67 OSMESAApi* g_current_osmesa_context; | 67 OSMESAApi* g_current_osmesa_context; |
68 | 68 |
69 #if defined(OS_WIN) | 69 #if defined(OS_WIN) |
70 | 70 |
71 EGLApi* g_current_egl_context; | 71 EGLApi* g_current_egl_context; |
72 WGLApi* g_current_wgl_context; | 72 WGLApi* g_current_wgl_context; |
73 | 73 |
| 74 #elif defined(USE_WAYLAND) |
| 75 |
| 76 EGLApi* g_current_egl_context; |
| 77 |
74 #elif defined(USE_X11) | 78 #elif defined(USE_X11) |
75 | 79 |
76 EGLApi* g_current_egl_context; | 80 EGLApi* g_current_egl_context; |
77 GLXApi* g_current_glx_context; | 81 GLXApi* g_current_glx_context; |
78 | 82 |
79 #elif defined(USE_OZONE) | 83 #elif defined(USE_OZONE) |
80 | 84 |
81 EGLApi* g_current_egl_context; | 85 EGLApi* g_current_egl_context; |
82 | 86 |
83 #elif defined(OS_ANDROID) | 87 #elif defined(OS_ANDROID) |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 if (!proc && g_get_proc_address) { | 170 if (!proc && g_get_proc_address) { |
167 proc = g_get_proc_address(name); | 171 proc = g_get_proc_address(name); |
168 if (proc) | 172 if (proc) |
169 return proc; | 173 return proc; |
170 } | 174 } |
171 | 175 |
172 return proc; | 176 return proc; |
173 } | 177 } |
174 | 178 |
175 } // namespace gfx | 179 } // namespace gfx |
OLD | NEW |