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_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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 #include "gl_bindings_autogen_egl.h" | 220 #include "gl_bindings_autogen_egl.h" |
221 #elif defined(OS_ANDROID) | 221 #elif defined(OS_ANDROID) |
222 #include "gl_bindings_autogen_egl.h" | 222 #include "gl_bindings_autogen_egl.h" |
223 #endif | 223 #endif |
224 | 224 |
225 namespace gfx { | 225 namespace gfx { |
226 | 226 |
227 struct GL_EXPORT DriverGL { | 227 struct GL_EXPORT DriverGL { |
228 void Initialize(); | 228 void Initialize(); |
229 void InitializeExtensions(GLContext* context); | 229 void InitializeExtensions(GLContext* context); |
230 void InitializeDebugBindings(); | |
231 void ClearBindings(); | 230 void ClearBindings(); |
232 void UpdateDebugExtensionBindings(); | 231 void UpdateDebugExtensionBindings(); |
233 | 232 |
234 ProcsGL fn; | 233 ProcsGL fn; |
235 ProcsGL orig_fn; | 234 ProcsGL orig_fn; |
236 ProcsGL debug_fn; | 235 ProcsGL debug_fn; |
237 ExtensionsGL ext; | 236 ExtensionsGL ext; |
238 | 237 |
239 private: | 238 private: |
240 void InitializeBindings(); | 239 void InitializeBindings(); |
241 void InitializeExtensionBindings(GLContext* context); | 240 void InitializeExtensionBindings(GLContext* context); |
242 }; | 241 }; |
243 | 242 |
244 struct GL_EXPORT DriverOSMESA { | 243 struct GL_EXPORT DriverOSMESA { |
245 void InitializeBindings(); | 244 void InitializeBindings(); |
246 void InitializeExtensionBindings(GLContext* context); | 245 void InitializeExtensionBindings(GLContext* context); |
247 void InitializeDebugBindings(); | |
248 void ClearBindings(); | 246 void ClearBindings(); |
249 void UpdateDebugExtensionBindings(); | 247 void UpdateDebugExtensionBindings(); |
250 | 248 |
251 ProcsOSMESA fn; | 249 ProcsOSMESA fn; |
252 ProcsOSMESA debug_fn; | 250 ProcsOSMESA debug_fn; |
253 ExtensionsOSMESA ext; | 251 ExtensionsOSMESA ext; |
254 }; | 252 }; |
255 | 253 |
256 #if defined(OS_WIN) | 254 #if defined(OS_WIN) |
257 struct GL_EXPORT DriverWGL { | 255 struct GL_EXPORT DriverWGL { |
258 void InitializeBindings(); | 256 void InitializeBindings(); |
259 void InitializeExtensionBindings(GLContext* context); | 257 void InitializeExtensionBindings(GLContext* context); |
260 void InitializeDebugBindings(); | |
261 void ClearBindings(); | 258 void ClearBindings(); |
262 void UpdateDebugExtensionBindings(); | 259 void UpdateDebugExtensionBindings(); |
263 | 260 |
264 ProcsWGL fn; | 261 ProcsWGL fn; |
265 ProcsWGL debug_fn; | 262 ProcsWGL debug_fn; |
266 ExtensionsWGL ext; | 263 ExtensionsWGL ext; |
267 }; | 264 }; |
268 #endif | 265 #endif |
269 | 266 |
270 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZ
ONE) | 267 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZ
ONE) |
271 struct GL_EXPORT DriverEGL { | 268 struct GL_EXPORT DriverEGL { |
272 void InitializeBindings(); | 269 void InitializeBindings(); |
273 void InitializeExtensionBindings(GLContext* context); | 270 void InitializeExtensionBindings(GLContext* context); |
274 void InitializeDebugBindings(); | |
275 void ClearBindings(); | 271 void ClearBindings(); |
276 void UpdateDebugExtensionBindings(); | 272 void UpdateDebugExtensionBindings(); |
277 | 273 |
278 ProcsEGL fn; | 274 ProcsEGL fn; |
279 ProcsEGL debug_fn; | 275 ProcsEGL debug_fn; |
280 ExtensionsEGL ext; | 276 ExtensionsEGL ext; |
281 }; | 277 }; |
282 #endif | 278 #endif |
283 | 279 |
284 #if defined(USE_X11) | 280 #if defined(USE_X11) |
285 struct GL_EXPORT DriverGLX { | 281 struct GL_EXPORT DriverGLX { |
286 void InitializeBindings(); | 282 void InitializeBindings(); |
287 void InitializeExtensionBindings(GLContext* context); | 283 void InitializeExtensionBindings(GLContext* context); |
288 void InitializeDebugBindings(); | |
289 void ClearBindings(); | 284 void ClearBindings(); |
290 void UpdateDebugExtensionBindings(); | 285 void UpdateDebugExtensionBindings(); |
291 | 286 |
292 ProcsGLX fn; | 287 ProcsGLX fn; |
293 ProcsGLX debug_fn; | 288 ProcsGLX debug_fn; |
294 ExtensionsGLX ext; | 289 ExtensionsGLX ext; |
295 }; | 290 }; |
296 #endif | 291 #endif |
297 | 292 |
298 // This #define is here to support autogenerated code. | 293 // This #define is here to support autogenerated code. |
(...skipping 29 matching lines...) Expand all Loading... |
328 GL_EXPORT extern DriverEGL g_driver_egl; | 323 GL_EXPORT extern DriverEGL g_driver_egl; |
329 | 324 |
330 #endif | 325 #endif |
331 | 326 |
332 // Find an entry point to the mock GL implementation. | 327 // Find an entry point to the mock GL implementation. |
333 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); | 328 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); |
334 | 329 |
335 } // namespace gfx | 330 } // namespace gfx |
336 | 331 |
337 #endif // UI_GL_GL_BINDINGS_H_ | 332 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |