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

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

Issue 17265006: wayland patch for inspection Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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.gyp ('k') | ui/gl/gl_context_wayland.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_BINDINGS_H_ 5 #ifndef UI_GL_GL_BINDINGS_H_
6 #define UI_GL_GL_BINDINGS_H_ 6 #define UI_GL_GL_BINDINGS_H_
7 7
8 // Includes the platform independent and platform dependent GL headers. 8 // Includes the platform independent and platform dependent GL headers.
9 // Only include this in cc files. It pulls in system headers, including 9 // Only include this in cc files. It pulls in system headers, including
10 // the X11 headers on linux, which define all kinds of macros that are 10 // the X11 headers on linux, which define all kinds of macros that are
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 #define EGL_ANDROID_image_native_buffer 1 196 #define EGL_ANDROID_image_native_buffer 1
197 #define EGL_NATIVE_BUFFER_ANDROID 0x3140 197 #define EGL_NATIVE_BUFFER_ANDROID 0x3140
198 #endif 198 #endif
199 199
200 #include "gl_bindings_autogen_gl.h" 200 #include "gl_bindings_autogen_gl.h"
201 #include "gl_bindings_autogen_osmesa.h" 201 #include "gl_bindings_autogen_osmesa.h"
202 202
203 #if defined(OS_WIN) 203 #if defined(OS_WIN)
204 #include "gl_bindings_autogen_egl.h" 204 #include "gl_bindings_autogen_egl.h"
205 #include "gl_bindings_autogen_wgl.h" 205 #include "gl_bindings_autogen_wgl.h"
206 #elif defined(USE_WAYLAND)
207 #include "gl_bindings_autogen_egl.h"
206 #elif defined(USE_X11) 208 #elif defined(USE_X11)
207 #include "gl_bindings_autogen_egl.h" 209 #include "gl_bindings_autogen_egl.h"
208 #include "gl_bindings_autogen_glx.h" 210 #include "gl_bindings_autogen_glx.h"
209 #elif defined(USE_OZONE) 211 #elif defined(USE_OZONE)
210 #include "gl_bindings_autogen_egl.h" 212 #include "gl_bindings_autogen_egl.h"
211 #elif defined(OS_ANDROID) 213 #elif defined(OS_ANDROID)
212 #include "gl_bindings_autogen_egl.h" 214 #include "gl_bindings_autogen_egl.h"
213 #endif 215 #endif
214 216
215 namespace gfx { 217 namespace gfx {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 void InitializeDebugBindings(); 252 void InitializeDebugBindings();
251 void ClearBindings(); 253 void ClearBindings();
252 void UpdateDebugExtensionBindings(); 254 void UpdateDebugExtensionBindings();
253 255
254 ProcsWGL fn; 256 ProcsWGL fn;
255 ProcsWGL debug_fn; 257 ProcsWGL debug_fn;
256 ExtensionsWGL ext; 258 ExtensionsWGL ext;
257 }; 259 };
258 #endif 260 #endif
259 261
260 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZ ONE) 262 #if defined(OS_WIN) || defined(USE_WAYLAND) || defined(USE_X11) || defined(OS_AN DROID) || defined(USE_OZONE)
261 struct GL_EXPORT DriverEGL { 263 struct GL_EXPORT DriverEGL {
262 void InitializeBindings(); 264 void InitializeBindings();
263 void InitializeExtensionBindings(GLContext* context); 265 void InitializeExtensionBindings(GLContext* context);
264 void InitializeDebugBindings(); 266 void InitializeDebugBindings();
265 void ClearBindings(); 267 void ClearBindings();
266 void UpdateDebugExtensionBindings(); 268 void UpdateDebugExtensionBindings();
267 269
268 ProcsEGL fn; 270 ProcsEGL fn;
269 ProcsEGL debug_fn; 271 ProcsEGL debug_fn;
270 ExtensionsEGL ext; 272 ExtensionsEGL ext;
(...skipping 19 matching lines...) Expand all
290 GL_EXPORT extern DriverGL g_driver_gl; 292 GL_EXPORT extern DriverGL g_driver_gl;
291 GL_EXPORT extern DriverOSMESA g_driver_osmesa; 293 GL_EXPORT extern DriverOSMESA g_driver_osmesa;
292 294
293 #if defined(OS_WIN) 295 #if defined(OS_WIN)
294 296
295 GL_EXPORT extern EGLApi* g_current_egl_context; 297 GL_EXPORT extern EGLApi* g_current_egl_context;
296 GL_EXPORT extern WGLApi* g_current_wgl_context; 298 GL_EXPORT extern WGLApi* g_current_wgl_context;
297 GL_EXPORT extern DriverEGL g_driver_egl; 299 GL_EXPORT extern DriverEGL g_driver_egl;
298 GL_EXPORT extern DriverWGL g_driver_wgl; 300 GL_EXPORT extern DriverWGL g_driver_wgl;
299 301
302 #elif defined(USE_WAYLAND)
303
304 GL_EXPORT extern EGLApi* g_current_egl_context;
305 GL_EXPORT extern DriverEGL g_driver_egl;
306
300 #elif defined(USE_X11) 307 #elif defined(USE_X11)
301 308
302 GL_EXPORT extern EGLApi* g_current_egl_context; 309 GL_EXPORT extern EGLApi* g_current_egl_context;
303 GL_EXPORT extern GLXApi* g_current_glx_context; 310 GL_EXPORT extern GLXApi* g_current_glx_context;
304 GL_EXPORT extern DriverEGL g_driver_egl; 311 GL_EXPORT extern DriverEGL g_driver_egl;
305 GL_EXPORT extern DriverGLX g_driver_glx; 312 GL_EXPORT extern DriverGLX g_driver_glx;
306 313
307 #elif defined(USE_OZONE) 314 #elif defined(USE_OZONE)
308 315
309 GL_EXPORT extern EGLApi* g_current_egl_context; 316 GL_EXPORT extern EGLApi* g_current_egl_context;
310 GL_EXPORT extern DriverEGL g_driver_egl; 317 GL_EXPORT extern DriverEGL g_driver_egl;
311 318
312 #elif defined(OS_ANDROID) 319 #elif defined(OS_ANDROID)
313 320
314 GL_EXPORT extern EGLApi* g_current_egl_context; 321 GL_EXPORT extern EGLApi* g_current_egl_context;
315 GL_EXPORT extern DriverEGL g_driver_egl; 322 GL_EXPORT extern DriverEGL g_driver_egl;
316 323
317 #endif 324 #endif
318 325
319 // Find an entry point to the mock GL implementation. 326 // Find an entry point to the mock GL implementation.
320 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); 327 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name);
321 328
322 } // namespace gfx 329 } // namespace gfx
323 330
324 #endif // UI_GL_GL_BINDINGS_H_ 331 #endif // UI_GL_GL_BINDINGS_H_
OLDNEW
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_context_wayland.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698