| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file is auto-generated from | 5 // This file is auto-generated from |
| 6 // ui/gl/generate_bindings.py | 6 // ui/gl/generate_bindings.py |
| 7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
| 8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
| 9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
| 10 | 10 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 extern "C" { | 205 extern "C" { |
| 206 | 206 |
| 207 static void GL_BINDING_CALL Debug_glXBindTexImageEXT(Display* dpy, | 207 static void GL_BINDING_CALL Debug_glXBindTexImageEXT(Display* dpy, |
| 208 GLXDrawable drawable, | 208 GLXDrawable drawable, |
| 209 int buffer, | 209 int buffer, |
| 210 int* attribList) { | 210 int* attribList) { |
| 211 GL_SERVICE_LOG("glXBindTexImageEXT" | 211 GL_SERVICE_LOG("glXBindTexImageEXT" |
| 212 << "(" << static_cast<const void*>(dpy) << ", " << drawable | 212 << "(" << static_cast<const void*>(dpy) << ", " << drawable |
| 213 << ", " << buffer << ", " | 213 << ", " << buffer << ", " |
| 214 << static_cast<const void*>(attribList) << ")"); | 214 << static_cast<const void*>(attribList) << ")"); |
| 215 DCHECK(g_driver_glx.debug_fn.glXBindTexImageEXTFn != nullptr); |
| 215 g_driver_glx.debug_fn.glXBindTexImageEXTFn(dpy, drawable, buffer, attribList); | 216 g_driver_glx.debug_fn.glXBindTexImageEXTFn(dpy, drawable, buffer, attribList); |
| 216 } | 217 } |
| 217 | 218 |
| 218 static GLXFBConfig* GL_BINDING_CALL | 219 static GLXFBConfig* GL_BINDING_CALL |
| 219 Debug_glXChooseFBConfig(Display* dpy, | 220 Debug_glXChooseFBConfig(Display* dpy, |
| 220 int screen, | 221 int screen, |
| 221 const int* attribList, | 222 const int* attribList, |
| 222 int* nitems) { | 223 int* nitems) { |
| 223 GL_SERVICE_LOG("glXChooseFBConfig" | 224 GL_SERVICE_LOG("glXChooseFBConfig" |
| 224 << "(" << static_cast<const void*>(dpy) << ", " << screen | 225 << "(" << static_cast<const void*>(dpy) << ", " << screen |
| 225 << ", " << static_cast<const void*>(attribList) << ", " | 226 << ", " << static_cast<const void*>(attribList) << ", " |
| 226 << static_cast<const void*>(nitems) << ")"); | 227 << static_cast<const void*>(nitems) << ")"); |
| 228 DCHECK(g_driver_glx.debug_fn.glXChooseFBConfigFn != nullptr); |
| 227 GLXFBConfig* result = g_driver_glx.debug_fn.glXChooseFBConfigFn( | 229 GLXFBConfig* result = g_driver_glx.debug_fn.glXChooseFBConfigFn( |
| 228 dpy, screen, attribList, nitems); | 230 dpy, screen, attribList, nitems); |
| 229 GL_SERVICE_LOG("GL_RESULT: " << result); | 231 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 230 return result; | 232 return result; |
| 231 } | 233 } |
| 232 | 234 |
| 233 static XVisualInfo* GL_BINDING_CALL Debug_glXChooseVisual(Display* dpy, | 235 static XVisualInfo* GL_BINDING_CALL Debug_glXChooseVisual(Display* dpy, |
| 234 int screen, | 236 int screen, |
| 235 int* attribList) { | 237 int* attribList) { |
| 236 GL_SERVICE_LOG("glXChooseVisual" | 238 GL_SERVICE_LOG("glXChooseVisual" |
| 237 << "(" << static_cast<const void*>(dpy) << ", " << screen | 239 << "(" << static_cast<const void*>(dpy) << ", " << screen |
| 238 << ", " << static_cast<const void*>(attribList) << ")"); | 240 << ", " << static_cast<const void*>(attribList) << ")"); |
| 241 DCHECK(g_driver_glx.debug_fn.glXChooseVisualFn != nullptr); |
| 239 XVisualInfo* result = | 242 XVisualInfo* result = |
| 240 g_driver_glx.debug_fn.glXChooseVisualFn(dpy, screen, attribList); | 243 g_driver_glx.debug_fn.glXChooseVisualFn(dpy, screen, attribList); |
| 241 GL_SERVICE_LOG("GL_RESULT: " << result); | 244 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 242 return result; | 245 return result; |
| 243 } | 246 } |
| 244 | 247 |
| 245 static void GL_BINDING_CALL Debug_glXCopyContext(Display* dpy, | 248 static void GL_BINDING_CALL Debug_glXCopyContext(Display* dpy, |
| 246 GLXContext src, | 249 GLXContext src, |
| 247 GLXContext dst, | 250 GLXContext dst, |
| 248 unsigned long mask) { | 251 unsigned long mask) { |
| 249 GL_SERVICE_LOG("glXCopyContext" | 252 GL_SERVICE_LOG("glXCopyContext" |
| 250 << "(" << static_cast<const void*>(dpy) << ", " << src << ", " | 253 << "(" << static_cast<const void*>(dpy) << ", " << src << ", " |
| 251 << dst << ", " << mask << ")"); | 254 << dst << ", " << mask << ")"); |
| 255 DCHECK(g_driver_glx.debug_fn.glXCopyContextFn != nullptr); |
| 252 g_driver_glx.debug_fn.glXCopyContextFn(dpy, src, dst, mask); | 256 g_driver_glx.debug_fn.glXCopyContextFn(dpy, src, dst, mask); |
| 253 } | 257 } |
| 254 | 258 |
| 255 static void GL_BINDING_CALL Debug_glXCopySubBufferMESA(Display* dpy, | 259 static void GL_BINDING_CALL Debug_glXCopySubBufferMESA(Display* dpy, |
| 256 GLXDrawable drawable, | 260 GLXDrawable drawable, |
| 257 int x, | 261 int x, |
| 258 int y, | 262 int y, |
| 259 int width, | 263 int width, |
| 260 int height) { | 264 int height) { |
| 261 GL_SERVICE_LOG("glXCopySubBufferMESA" | 265 GL_SERVICE_LOG("glXCopySubBufferMESA" |
| 262 << "(" << static_cast<const void*>(dpy) << ", " << drawable | 266 << "(" << static_cast<const void*>(dpy) << ", " << drawable |
| 263 << ", " << x << ", " << y << ", " << width << ", " << height | 267 << ", " << x << ", " << y << ", " << width << ", " << height |
| 264 << ")"); | 268 << ")"); |
| 269 DCHECK(g_driver_glx.debug_fn.glXCopySubBufferMESAFn != nullptr); |
| 265 g_driver_glx.debug_fn.glXCopySubBufferMESAFn(dpy, drawable, x, y, width, | 270 g_driver_glx.debug_fn.glXCopySubBufferMESAFn(dpy, drawable, x, y, width, |
| 266 height); | 271 height); |
| 267 } | 272 } |
| 268 | 273 |
| 269 static GLXContext GL_BINDING_CALL Debug_glXCreateContext(Display* dpy, | 274 static GLXContext GL_BINDING_CALL Debug_glXCreateContext(Display* dpy, |
| 270 XVisualInfo* vis, | 275 XVisualInfo* vis, |
| 271 GLXContext shareList, | 276 GLXContext shareList, |
| 272 int direct) { | 277 int direct) { |
| 273 GL_SERVICE_LOG("glXCreateContext" | 278 GL_SERVICE_LOG("glXCreateContext" |
| 274 << "(" << static_cast<const void*>(dpy) << ", " | 279 << "(" << static_cast<const void*>(dpy) << ", " |
| 275 << static_cast<const void*>(vis) << ", " << shareList << ", " | 280 << static_cast<const void*>(vis) << ", " << shareList << ", " |
| 276 << direct << ")"); | 281 << direct << ")"); |
| 282 DCHECK(g_driver_glx.debug_fn.glXCreateContextFn != nullptr); |
| 277 GLXContext result = | 283 GLXContext result = |
| 278 g_driver_glx.debug_fn.glXCreateContextFn(dpy, vis, shareList, direct); | 284 g_driver_glx.debug_fn.glXCreateContextFn(dpy, vis, shareList, direct); |
| 279 GL_SERVICE_LOG("GL_RESULT: " << result); | 285 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 280 return result; | 286 return result; |
| 281 } | 287 } |
| 282 | 288 |
| 283 static GLXContext GL_BINDING_CALL | 289 static GLXContext GL_BINDING_CALL |
| 284 Debug_glXCreateContextAttribsARB(Display* dpy, | 290 Debug_glXCreateContextAttribsARB(Display* dpy, |
| 285 GLXFBConfig config, | 291 GLXFBConfig config, |
| 286 GLXContext share_context, | 292 GLXContext share_context, |
| 287 int direct, | 293 int direct, |
| 288 const int* attrib_list) { | 294 const int* attrib_list) { |
| 289 GL_SERVICE_LOG("glXCreateContextAttribsARB" | 295 GL_SERVICE_LOG("glXCreateContextAttribsARB" |
| 290 << "(" << static_cast<const void*>(dpy) << ", " << config | 296 << "(" << static_cast<const void*>(dpy) << ", " << config |
| 291 << ", " << share_context << ", " << direct << ", " | 297 << ", " << share_context << ", " << direct << ", " |
| 292 << static_cast<const void*>(attrib_list) << ")"); | 298 << static_cast<const void*>(attrib_list) << ")"); |
| 299 DCHECK(g_driver_glx.debug_fn.glXCreateContextAttribsARBFn != nullptr); |
| 293 GLXContext result = g_driver_glx.debug_fn.glXCreateContextAttribsARBFn( | 300 GLXContext result = g_driver_glx.debug_fn.glXCreateContextAttribsARBFn( |
| 294 dpy, config, share_context, direct, attrib_list); | 301 dpy, config, share_context, direct, attrib_list); |
| 295 GL_SERVICE_LOG("GL_RESULT: " << result); | 302 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 296 return result; | 303 return result; |
| 297 } | 304 } |
| 298 | 305 |
| 299 static GLXPixmap GL_BINDING_CALL Debug_glXCreateGLXPixmap(Display* dpy, | 306 static GLXPixmap GL_BINDING_CALL Debug_glXCreateGLXPixmap(Display* dpy, |
| 300 XVisualInfo* visual, | 307 XVisualInfo* visual, |
| 301 Pixmap pixmap) { | 308 Pixmap pixmap) { |
| 302 GL_SERVICE_LOG("glXCreateGLXPixmap" | 309 GL_SERVICE_LOG("glXCreateGLXPixmap" |
| 303 << "(" << static_cast<const void*>(dpy) << ", " | 310 << "(" << static_cast<const void*>(dpy) << ", " |
| 304 << static_cast<const void*>(visual) << ", " << pixmap << ")"); | 311 << static_cast<const void*>(visual) << ", " << pixmap << ")"); |
| 312 DCHECK(g_driver_glx.debug_fn.glXCreateGLXPixmapFn != nullptr); |
| 305 GLXPixmap result = | 313 GLXPixmap result = |
| 306 g_driver_glx.debug_fn.glXCreateGLXPixmapFn(dpy, visual, pixmap); | 314 g_driver_glx.debug_fn.glXCreateGLXPixmapFn(dpy, visual, pixmap); |
| 307 GL_SERVICE_LOG("GL_RESULT: " << result); | 315 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 308 return result; | 316 return result; |
| 309 } | 317 } |
| 310 | 318 |
| 311 static GLXContext GL_BINDING_CALL | 319 static GLXContext GL_BINDING_CALL |
| 312 Debug_glXCreateNewContext(Display* dpy, | 320 Debug_glXCreateNewContext(Display* dpy, |
| 313 GLXFBConfig config, | 321 GLXFBConfig config, |
| 314 int renderType, | 322 int renderType, |
| 315 GLXContext shareList, | 323 GLXContext shareList, |
| 316 int direct) { | 324 int direct) { |
| 317 GL_SERVICE_LOG("glXCreateNewContext" | 325 GL_SERVICE_LOG("glXCreateNewContext" |
| 318 << "(" << static_cast<const void*>(dpy) << ", " << config | 326 << "(" << static_cast<const void*>(dpy) << ", " << config |
| 319 << ", " << renderType << ", " << shareList << ", " << direct | 327 << ", " << renderType << ", " << shareList << ", " << direct |
| 320 << ")"); | 328 << ")"); |
| 329 DCHECK(g_driver_glx.debug_fn.glXCreateNewContextFn != nullptr); |
| 321 GLXContext result = g_driver_glx.debug_fn.glXCreateNewContextFn( | 330 GLXContext result = g_driver_glx.debug_fn.glXCreateNewContextFn( |
| 322 dpy, config, renderType, shareList, direct); | 331 dpy, config, renderType, shareList, direct); |
| 323 GL_SERVICE_LOG("GL_RESULT: " << result); | 332 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 324 return result; | 333 return result; |
| 325 } | 334 } |
| 326 | 335 |
| 327 static GLXPbuffer GL_BINDING_CALL | 336 static GLXPbuffer GL_BINDING_CALL |
| 328 Debug_glXCreatePbuffer(Display* dpy, | 337 Debug_glXCreatePbuffer(Display* dpy, |
| 329 GLXFBConfig config, | 338 GLXFBConfig config, |
| 330 const int* attribList) { | 339 const int* attribList) { |
| 331 GL_SERVICE_LOG("glXCreatePbuffer" | 340 GL_SERVICE_LOG("glXCreatePbuffer" |
| 332 << "(" << static_cast<const void*>(dpy) << ", " << config | 341 << "(" << static_cast<const void*>(dpy) << ", " << config |
| 333 << ", " << static_cast<const void*>(attribList) << ")"); | 342 << ", " << static_cast<const void*>(attribList) << ")"); |
| 343 DCHECK(g_driver_glx.debug_fn.glXCreatePbufferFn != nullptr); |
| 334 GLXPbuffer result = | 344 GLXPbuffer result = |
| 335 g_driver_glx.debug_fn.glXCreatePbufferFn(dpy, config, attribList); | 345 g_driver_glx.debug_fn.glXCreatePbufferFn(dpy, config, attribList); |
| 336 GL_SERVICE_LOG("GL_RESULT: " << result); | 346 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 337 return result; | 347 return result; |
| 338 } | 348 } |
| 339 | 349 |
| 340 static GLXPixmap GL_BINDING_CALL Debug_glXCreatePixmap(Display* dpy, | 350 static GLXPixmap GL_BINDING_CALL Debug_glXCreatePixmap(Display* dpy, |
| 341 GLXFBConfig config, | 351 GLXFBConfig config, |
| 342 Pixmap pixmap, | 352 Pixmap pixmap, |
| 343 const int* attribList) { | 353 const int* attribList) { |
| 344 GL_SERVICE_LOG("glXCreatePixmap" | 354 GL_SERVICE_LOG("glXCreatePixmap" |
| 345 << "(" << static_cast<const void*>(dpy) << ", " << config | 355 << "(" << static_cast<const void*>(dpy) << ", " << config |
| 346 << ", " << pixmap << ", " | 356 << ", " << pixmap << ", " |
| 347 << static_cast<const void*>(attribList) << ")"); | 357 << static_cast<const void*>(attribList) << ")"); |
| 358 DCHECK(g_driver_glx.debug_fn.glXCreatePixmapFn != nullptr); |
| 348 GLXPixmap result = | 359 GLXPixmap result = |
| 349 g_driver_glx.debug_fn.glXCreatePixmapFn(dpy, config, pixmap, attribList); | 360 g_driver_glx.debug_fn.glXCreatePixmapFn(dpy, config, pixmap, attribList); |
| 350 GL_SERVICE_LOG("GL_RESULT: " << result); | 361 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 351 return result; | 362 return result; |
| 352 } | 363 } |
| 353 | 364 |
| 354 static GLXWindow GL_BINDING_CALL Debug_glXCreateWindow(Display* dpy, | 365 static GLXWindow GL_BINDING_CALL Debug_glXCreateWindow(Display* dpy, |
| 355 GLXFBConfig config, | 366 GLXFBConfig config, |
| 356 Window win, | 367 Window win, |
| 357 const int* attribList) { | 368 const int* attribList) { |
| 358 GL_SERVICE_LOG("glXCreateWindow" | 369 GL_SERVICE_LOG("glXCreateWindow" |
| 359 << "(" << static_cast<const void*>(dpy) << ", " << config | 370 << "(" << static_cast<const void*>(dpy) << ", " << config |
| 360 << ", " << win << ", " << static_cast<const void*>(attribList) | 371 << ", " << win << ", " << static_cast<const void*>(attribList) |
| 361 << ")"); | 372 << ")"); |
| 373 DCHECK(g_driver_glx.debug_fn.glXCreateWindowFn != nullptr); |
| 362 GLXWindow result = | 374 GLXWindow result = |
| 363 g_driver_glx.debug_fn.glXCreateWindowFn(dpy, config, win, attribList); | 375 g_driver_glx.debug_fn.glXCreateWindowFn(dpy, config, win, attribList); |
| 364 GL_SERVICE_LOG("GL_RESULT: " << result); | 376 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 365 return result; | 377 return result; |
| 366 } | 378 } |
| 367 | 379 |
| 368 static void GL_BINDING_CALL Debug_glXDestroyContext(Display* dpy, | 380 static void GL_BINDING_CALL Debug_glXDestroyContext(Display* dpy, |
| 369 GLXContext ctx) { | 381 GLXContext ctx) { |
| 370 GL_SERVICE_LOG("glXDestroyContext" | 382 GL_SERVICE_LOG("glXDestroyContext" |
| 371 << "(" << static_cast<const void*>(dpy) << ", " << ctx << ")"); | 383 << "(" << static_cast<const void*>(dpy) << ", " << ctx << ")"); |
| 384 DCHECK(g_driver_glx.debug_fn.glXDestroyContextFn != nullptr); |
| 372 g_driver_glx.debug_fn.glXDestroyContextFn(dpy, ctx); | 385 g_driver_glx.debug_fn.glXDestroyContextFn(dpy, ctx); |
| 373 } | 386 } |
| 374 | 387 |
| 375 static void GL_BINDING_CALL Debug_glXDestroyGLXPixmap(Display* dpy, | 388 static void GL_BINDING_CALL Debug_glXDestroyGLXPixmap(Display* dpy, |
| 376 GLXPixmap pixmap) { | 389 GLXPixmap pixmap) { |
| 377 GL_SERVICE_LOG("glXDestroyGLXPixmap" | 390 GL_SERVICE_LOG("glXDestroyGLXPixmap" |
| 378 << "(" << static_cast<const void*>(dpy) << ", " << pixmap | 391 << "(" << static_cast<const void*>(dpy) << ", " << pixmap |
| 379 << ")"); | 392 << ")"); |
| 393 DCHECK(g_driver_glx.debug_fn.glXDestroyGLXPixmapFn != nullptr); |
| 380 g_driver_glx.debug_fn.glXDestroyGLXPixmapFn(dpy, pixmap); | 394 g_driver_glx.debug_fn.glXDestroyGLXPixmapFn(dpy, pixmap); |
| 381 } | 395 } |
| 382 | 396 |
| 383 static void GL_BINDING_CALL Debug_glXDestroyPbuffer(Display* dpy, | 397 static void GL_BINDING_CALL Debug_glXDestroyPbuffer(Display* dpy, |
| 384 GLXPbuffer pbuf) { | 398 GLXPbuffer pbuf) { |
| 385 GL_SERVICE_LOG("glXDestroyPbuffer" | 399 GL_SERVICE_LOG("glXDestroyPbuffer" |
| 386 << "(" << static_cast<const void*>(dpy) << ", " << pbuf | 400 << "(" << static_cast<const void*>(dpy) << ", " << pbuf |
| 387 << ")"); | 401 << ")"); |
| 402 DCHECK(g_driver_glx.debug_fn.glXDestroyPbufferFn != nullptr); |
| 388 g_driver_glx.debug_fn.glXDestroyPbufferFn(dpy, pbuf); | 403 g_driver_glx.debug_fn.glXDestroyPbufferFn(dpy, pbuf); |
| 389 } | 404 } |
| 390 | 405 |
| 391 static void GL_BINDING_CALL Debug_glXDestroyPixmap(Display* dpy, | 406 static void GL_BINDING_CALL Debug_glXDestroyPixmap(Display* dpy, |
| 392 GLXPixmap pixmap) { | 407 GLXPixmap pixmap) { |
| 393 GL_SERVICE_LOG("glXDestroyPixmap" | 408 GL_SERVICE_LOG("glXDestroyPixmap" |
| 394 << "(" << static_cast<const void*>(dpy) << ", " << pixmap | 409 << "(" << static_cast<const void*>(dpy) << ", " << pixmap |
| 395 << ")"); | 410 << ")"); |
| 411 DCHECK(g_driver_glx.debug_fn.glXDestroyPixmapFn != nullptr); |
| 396 g_driver_glx.debug_fn.glXDestroyPixmapFn(dpy, pixmap); | 412 g_driver_glx.debug_fn.glXDestroyPixmapFn(dpy, pixmap); |
| 397 } | 413 } |
| 398 | 414 |
| 399 static void GL_BINDING_CALL Debug_glXDestroyWindow(Display* dpy, | 415 static void GL_BINDING_CALL Debug_glXDestroyWindow(Display* dpy, |
| 400 GLXWindow window) { | 416 GLXWindow window) { |
| 401 GL_SERVICE_LOG("glXDestroyWindow" | 417 GL_SERVICE_LOG("glXDestroyWindow" |
| 402 << "(" << static_cast<const void*>(dpy) << ", " << window | 418 << "(" << static_cast<const void*>(dpy) << ", " << window |
| 403 << ")"); | 419 << ")"); |
| 420 DCHECK(g_driver_glx.debug_fn.glXDestroyWindowFn != nullptr); |
| 404 g_driver_glx.debug_fn.glXDestroyWindowFn(dpy, window); | 421 g_driver_glx.debug_fn.glXDestroyWindowFn(dpy, window); |
| 405 } | 422 } |
| 406 | 423 |
| 407 static const char* GL_BINDING_CALL Debug_glXGetClientString(Display* dpy, | 424 static const char* GL_BINDING_CALL Debug_glXGetClientString(Display* dpy, |
| 408 int name) { | 425 int name) { |
| 409 GL_SERVICE_LOG("glXGetClientString" | 426 GL_SERVICE_LOG("glXGetClientString" |
| 410 << "(" << static_cast<const void*>(dpy) << ", " << name | 427 << "(" << static_cast<const void*>(dpy) << ", " << name |
| 411 << ")"); | 428 << ")"); |
| 429 DCHECK(g_driver_glx.debug_fn.glXGetClientStringFn != nullptr); |
| 412 const char* result = g_driver_glx.debug_fn.glXGetClientStringFn(dpy, name); | 430 const char* result = g_driver_glx.debug_fn.glXGetClientStringFn(dpy, name); |
| 413 GL_SERVICE_LOG("GL_RESULT: " << result); | 431 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 414 return result; | 432 return result; |
| 415 } | 433 } |
| 416 | 434 |
| 417 static int GL_BINDING_CALL Debug_glXGetConfig(Display* dpy, | 435 static int GL_BINDING_CALL Debug_glXGetConfig(Display* dpy, |
| 418 XVisualInfo* visual, | 436 XVisualInfo* visual, |
| 419 int attrib, | 437 int attrib, |
| 420 int* value) { | 438 int* value) { |
| 421 GL_SERVICE_LOG("glXGetConfig" | 439 GL_SERVICE_LOG("glXGetConfig" |
| 422 << "(" << static_cast<const void*>(dpy) << ", " | 440 << "(" << static_cast<const void*>(dpy) << ", " |
| 423 << static_cast<const void*>(visual) << ", " << attrib << ", " | 441 << static_cast<const void*>(visual) << ", " << attrib << ", " |
| 424 << static_cast<const void*>(value) << ")"); | 442 << static_cast<const void*>(value) << ")"); |
| 443 DCHECK(g_driver_glx.debug_fn.glXGetConfigFn != nullptr); |
| 425 int result = g_driver_glx.debug_fn.glXGetConfigFn(dpy, visual, attrib, value); | 444 int result = g_driver_glx.debug_fn.glXGetConfigFn(dpy, visual, attrib, value); |
| 426 GL_SERVICE_LOG("GL_RESULT: " << result); | 445 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 427 return result; | 446 return result; |
| 428 } | 447 } |
| 429 | 448 |
| 430 static GLXContext GL_BINDING_CALL Debug_glXGetCurrentContext(void) { | 449 static GLXContext GL_BINDING_CALL Debug_glXGetCurrentContext(void) { |
| 431 GL_SERVICE_LOG("glXGetCurrentContext" | 450 GL_SERVICE_LOG("glXGetCurrentContext" |
| 432 << "(" | 451 << "(" |
| 433 << ")"); | 452 << ")"); |
| 453 DCHECK(g_driver_glx.debug_fn.glXGetCurrentContextFn != nullptr); |
| 434 GLXContext result = g_driver_glx.debug_fn.glXGetCurrentContextFn(); | 454 GLXContext result = g_driver_glx.debug_fn.glXGetCurrentContextFn(); |
| 435 GL_SERVICE_LOG("GL_RESULT: " << result); | 455 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 436 return result; | 456 return result; |
| 437 } | 457 } |
| 438 | 458 |
| 439 static Display* GL_BINDING_CALL Debug_glXGetCurrentDisplay(void) { | 459 static Display* GL_BINDING_CALL Debug_glXGetCurrentDisplay(void) { |
| 440 GL_SERVICE_LOG("glXGetCurrentDisplay" | 460 GL_SERVICE_LOG("glXGetCurrentDisplay" |
| 441 << "(" | 461 << "(" |
| 442 << ")"); | 462 << ")"); |
| 463 DCHECK(g_driver_glx.debug_fn.glXGetCurrentDisplayFn != nullptr); |
| 443 Display* result = g_driver_glx.debug_fn.glXGetCurrentDisplayFn(); | 464 Display* result = g_driver_glx.debug_fn.glXGetCurrentDisplayFn(); |
| 444 GL_SERVICE_LOG("GL_RESULT: " << result); | 465 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 445 return result; | 466 return result; |
| 446 } | 467 } |
| 447 | 468 |
| 448 static GLXDrawable GL_BINDING_CALL Debug_glXGetCurrentDrawable(void) { | 469 static GLXDrawable GL_BINDING_CALL Debug_glXGetCurrentDrawable(void) { |
| 449 GL_SERVICE_LOG("glXGetCurrentDrawable" | 470 GL_SERVICE_LOG("glXGetCurrentDrawable" |
| 450 << "(" | 471 << "(" |
| 451 << ")"); | 472 << ")"); |
| 473 DCHECK(g_driver_glx.debug_fn.glXGetCurrentDrawableFn != nullptr); |
| 452 GLXDrawable result = g_driver_glx.debug_fn.glXGetCurrentDrawableFn(); | 474 GLXDrawable result = g_driver_glx.debug_fn.glXGetCurrentDrawableFn(); |
| 453 GL_SERVICE_LOG("GL_RESULT: " << result); | 475 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 454 return result; | 476 return result; |
| 455 } | 477 } |
| 456 | 478 |
| 457 static GLXDrawable GL_BINDING_CALL Debug_glXGetCurrentReadDrawable(void) { | 479 static GLXDrawable GL_BINDING_CALL Debug_glXGetCurrentReadDrawable(void) { |
| 458 GL_SERVICE_LOG("glXGetCurrentReadDrawable" | 480 GL_SERVICE_LOG("glXGetCurrentReadDrawable" |
| 459 << "(" | 481 << "(" |
| 460 << ")"); | 482 << ")"); |
| 483 DCHECK(g_driver_glx.debug_fn.glXGetCurrentReadDrawableFn != nullptr); |
| 461 GLXDrawable result = g_driver_glx.debug_fn.glXGetCurrentReadDrawableFn(); | 484 GLXDrawable result = g_driver_glx.debug_fn.glXGetCurrentReadDrawableFn(); |
| 462 GL_SERVICE_LOG("GL_RESULT: " << result); | 485 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 463 return result; | 486 return result; |
| 464 } | 487 } |
| 465 | 488 |
| 466 static int GL_BINDING_CALL Debug_glXGetFBConfigAttrib(Display* dpy, | 489 static int GL_BINDING_CALL Debug_glXGetFBConfigAttrib(Display* dpy, |
| 467 GLXFBConfig config, | 490 GLXFBConfig config, |
| 468 int attribute, | 491 int attribute, |
| 469 int* value) { | 492 int* value) { |
| 470 GL_SERVICE_LOG("glXGetFBConfigAttrib" | 493 GL_SERVICE_LOG("glXGetFBConfigAttrib" |
| 471 << "(" << static_cast<const void*>(dpy) << ", " << config | 494 << "(" << static_cast<const void*>(dpy) << ", " << config |
| 472 << ", " << attribute << ", " << static_cast<const void*>(value) | 495 << ", " << attribute << ", " << static_cast<const void*>(value) |
| 473 << ")"); | 496 << ")"); |
| 497 DCHECK(g_driver_glx.debug_fn.glXGetFBConfigAttribFn != nullptr); |
| 474 int result = g_driver_glx.debug_fn.glXGetFBConfigAttribFn(dpy, config, | 498 int result = g_driver_glx.debug_fn.glXGetFBConfigAttribFn(dpy, config, |
| 475 attribute, value); | 499 attribute, value); |
| 476 GL_SERVICE_LOG("GL_RESULT: " << result); | 500 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 477 return result; | 501 return result; |
| 478 } | 502 } |
| 479 | 503 |
| 480 static GLXFBConfig GL_BINDING_CALL | 504 static GLXFBConfig GL_BINDING_CALL |
| 481 Debug_glXGetFBConfigFromVisualSGIX(Display* dpy, XVisualInfo* visualInfo) { | 505 Debug_glXGetFBConfigFromVisualSGIX(Display* dpy, XVisualInfo* visualInfo) { |
| 482 GL_SERVICE_LOG("glXGetFBConfigFromVisualSGIX" | 506 GL_SERVICE_LOG("glXGetFBConfigFromVisualSGIX" |
| 483 << "(" << static_cast<const void*>(dpy) << ", " | 507 << "(" << static_cast<const void*>(dpy) << ", " |
| 484 << static_cast<const void*>(visualInfo) << ")"); | 508 << static_cast<const void*>(visualInfo) << ")"); |
| 509 DCHECK(g_driver_glx.debug_fn.glXGetFBConfigFromVisualSGIXFn != nullptr); |
| 485 GLXFBConfig result = | 510 GLXFBConfig result = |
| 486 g_driver_glx.debug_fn.glXGetFBConfigFromVisualSGIXFn(dpy, visualInfo); | 511 g_driver_glx.debug_fn.glXGetFBConfigFromVisualSGIXFn(dpy, visualInfo); |
| 487 GL_SERVICE_LOG("GL_RESULT: " << result); | 512 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 488 return result; | 513 return result; |
| 489 } | 514 } |
| 490 | 515 |
| 491 static GLXFBConfig* GL_BINDING_CALL Debug_glXGetFBConfigs(Display* dpy, | 516 static GLXFBConfig* GL_BINDING_CALL Debug_glXGetFBConfigs(Display* dpy, |
| 492 int screen, | 517 int screen, |
| 493 int* nelements) { | 518 int* nelements) { |
| 494 GL_SERVICE_LOG("glXGetFBConfigs" | 519 GL_SERVICE_LOG("glXGetFBConfigs" |
| 495 << "(" << static_cast<const void*>(dpy) << ", " << screen | 520 << "(" << static_cast<const void*>(dpy) << ", " << screen |
| 496 << ", " << static_cast<const void*>(nelements) << ")"); | 521 << ", " << static_cast<const void*>(nelements) << ")"); |
| 522 DCHECK(g_driver_glx.debug_fn.glXGetFBConfigsFn != nullptr); |
| 497 GLXFBConfig* result = | 523 GLXFBConfig* result = |
| 498 g_driver_glx.debug_fn.glXGetFBConfigsFn(dpy, screen, nelements); | 524 g_driver_glx.debug_fn.glXGetFBConfigsFn(dpy, screen, nelements); |
| 499 GL_SERVICE_LOG("GL_RESULT: " << result); | 525 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 500 return result; | 526 return result; |
| 501 } | 527 } |
| 502 | 528 |
| 503 static bool GL_BINDING_CALL Debug_glXGetMscRateOML(Display* dpy, | 529 static bool GL_BINDING_CALL Debug_glXGetMscRateOML(Display* dpy, |
| 504 GLXDrawable drawable, | 530 GLXDrawable drawable, |
| 505 int32_t* numerator, | 531 int32_t* numerator, |
| 506 int32_t* denominator) { | 532 int32_t* denominator) { |
| 507 GL_SERVICE_LOG("glXGetMscRateOML" | 533 GL_SERVICE_LOG("glXGetMscRateOML" |
| 508 << "(" << static_cast<const void*>(dpy) << ", " << drawable | 534 << "(" << static_cast<const void*>(dpy) << ", " << drawable |
| 509 << ", " << static_cast<const void*>(numerator) << ", " | 535 << ", " << static_cast<const void*>(numerator) << ", " |
| 510 << static_cast<const void*>(denominator) << ")"); | 536 << static_cast<const void*>(denominator) << ")"); |
| 537 DCHECK(g_driver_glx.debug_fn.glXGetMscRateOMLFn != nullptr); |
| 511 bool result = g_driver_glx.debug_fn.glXGetMscRateOMLFn( | 538 bool result = g_driver_glx.debug_fn.glXGetMscRateOMLFn( |
| 512 dpy, drawable, numerator, denominator); | 539 dpy, drawable, numerator, denominator); |
| 513 GL_SERVICE_LOG("GL_RESULT: " << result); | 540 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 514 return result; | 541 return result; |
| 515 } | 542 } |
| 516 | 543 |
| 517 static void GL_BINDING_CALL Debug_glXGetSelectedEvent(Display* dpy, | 544 static void GL_BINDING_CALL Debug_glXGetSelectedEvent(Display* dpy, |
| 518 GLXDrawable drawable, | 545 GLXDrawable drawable, |
| 519 unsigned long* mask) { | 546 unsigned long* mask) { |
| 520 GL_SERVICE_LOG("glXGetSelectedEvent" | 547 GL_SERVICE_LOG("glXGetSelectedEvent" |
| 521 << "(" << static_cast<const void*>(dpy) << ", " << drawable | 548 << "(" << static_cast<const void*>(dpy) << ", " << drawable |
| 522 << ", " << static_cast<const void*>(mask) << ")"); | 549 << ", " << static_cast<const void*>(mask) << ")"); |
| 550 DCHECK(g_driver_glx.debug_fn.glXGetSelectedEventFn != nullptr); |
| 523 g_driver_glx.debug_fn.glXGetSelectedEventFn(dpy, drawable, mask); | 551 g_driver_glx.debug_fn.glXGetSelectedEventFn(dpy, drawable, mask); |
| 524 } | 552 } |
| 525 | 553 |
| 526 static bool GL_BINDING_CALL Debug_glXGetSyncValuesOML(Display* dpy, | 554 static bool GL_BINDING_CALL Debug_glXGetSyncValuesOML(Display* dpy, |
| 527 GLXDrawable drawable, | 555 GLXDrawable drawable, |
| 528 int64_t* ust, | 556 int64_t* ust, |
| 529 int64_t* msc, | 557 int64_t* msc, |
| 530 int64_t* sbc) { | 558 int64_t* sbc) { |
| 531 GL_SERVICE_LOG("glXGetSyncValuesOML" | 559 GL_SERVICE_LOG("glXGetSyncValuesOML" |
| 532 << "(" << static_cast<const void*>(dpy) << ", " << drawable | 560 << "(" << static_cast<const void*>(dpy) << ", " << drawable |
| 533 << ", " << static_cast<const void*>(ust) << ", " | 561 << ", " << static_cast<const void*>(ust) << ", " |
| 534 << static_cast<const void*>(msc) << ", " | 562 << static_cast<const void*>(msc) << ", " |
| 535 << static_cast<const void*>(sbc) << ")"); | 563 << static_cast<const void*>(sbc) << ")"); |
| 564 DCHECK(g_driver_glx.debug_fn.glXGetSyncValuesOMLFn != nullptr); |
| 536 bool result = | 565 bool result = |
| 537 g_driver_glx.debug_fn.glXGetSyncValuesOMLFn(dpy, drawable, ust, msc, sbc); | 566 g_driver_glx.debug_fn.glXGetSyncValuesOMLFn(dpy, drawable, ust, msc, sbc); |
| 538 GL_SERVICE_LOG("GL_RESULT: " << result); | 567 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 539 return result; | 568 return result; |
| 540 } | 569 } |
| 541 | 570 |
| 542 static XVisualInfo* GL_BINDING_CALL | 571 static XVisualInfo* GL_BINDING_CALL |
| 543 Debug_glXGetVisualFromFBConfig(Display* dpy, GLXFBConfig config) { | 572 Debug_glXGetVisualFromFBConfig(Display* dpy, GLXFBConfig config) { |
| 544 GL_SERVICE_LOG("glXGetVisualFromFBConfig" | 573 GL_SERVICE_LOG("glXGetVisualFromFBConfig" |
| 545 << "(" << static_cast<const void*>(dpy) << ", " << config | 574 << "(" << static_cast<const void*>(dpy) << ", " << config |
| 546 << ")"); | 575 << ")"); |
| 576 DCHECK(g_driver_glx.debug_fn.glXGetVisualFromFBConfigFn != nullptr); |
| 547 XVisualInfo* result = | 577 XVisualInfo* result = |
| 548 g_driver_glx.debug_fn.glXGetVisualFromFBConfigFn(dpy, config); | 578 g_driver_glx.debug_fn.glXGetVisualFromFBConfigFn(dpy, config); |
| 549 GL_SERVICE_LOG("GL_RESULT: " << result); | 579 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 550 return result; | 580 return result; |
| 551 } | 581 } |
| 552 | 582 |
| 553 static int GL_BINDING_CALL Debug_glXIsDirect(Display* dpy, GLXContext ctx) { | 583 static int GL_BINDING_CALL Debug_glXIsDirect(Display* dpy, GLXContext ctx) { |
| 554 GL_SERVICE_LOG("glXIsDirect" | 584 GL_SERVICE_LOG("glXIsDirect" |
| 555 << "(" << static_cast<const void*>(dpy) << ", " << ctx << ")"); | 585 << "(" << static_cast<const void*>(dpy) << ", " << ctx << ")"); |
| 586 DCHECK(g_driver_glx.debug_fn.glXIsDirectFn != nullptr); |
| 556 int result = g_driver_glx.debug_fn.glXIsDirectFn(dpy, ctx); | 587 int result = g_driver_glx.debug_fn.glXIsDirectFn(dpy, ctx); |
| 557 GL_SERVICE_LOG("GL_RESULT: " << result); | 588 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 558 return result; | 589 return result; |
| 559 } | 590 } |
| 560 | 591 |
| 561 static int GL_BINDING_CALL Debug_glXMakeContextCurrent(Display* dpy, | 592 static int GL_BINDING_CALL Debug_glXMakeContextCurrent(Display* dpy, |
| 562 GLXDrawable draw, | 593 GLXDrawable draw, |
| 563 GLXDrawable read, | 594 GLXDrawable read, |
| 564 GLXContext ctx) { | 595 GLXContext ctx) { |
| 565 GL_SERVICE_LOG("glXMakeContextCurrent" | 596 GL_SERVICE_LOG("glXMakeContextCurrent" |
| 566 << "(" << static_cast<const void*>(dpy) << ", " << draw << ", " | 597 << "(" << static_cast<const void*>(dpy) << ", " << draw << ", " |
| 567 << read << ", " << ctx << ")"); | 598 << read << ", " << ctx << ")"); |
| 599 DCHECK(g_driver_glx.debug_fn.glXMakeContextCurrentFn != nullptr); |
| 568 int result = | 600 int result = |
| 569 g_driver_glx.debug_fn.glXMakeContextCurrentFn(dpy, draw, read, ctx); | 601 g_driver_glx.debug_fn.glXMakeContextCurrentFn(dpy, draw, read, ctx); |
| 570 GL_SERVICE_LOG("GL_RESULT: " << result); | 602 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 571 return result; | 603 return result; |
| 572 } | 604 } |
| 573 | 605 |
| 574 static int GL_BINDING_CALL Debug_glXMakeCurrent(Display* dpy, | 606 static int GL_BINDING_CALL Debug_glXMakeCurrent(Display* dpy, |
| 575 GLXDrawable drawable, | 607 GLXDrawable drawable, |
| 576 GLXContext ctx) { | 608 GLXContext ctx) { |
| 577 GL_SERVICE_LOG("glXMakeCurrent" | 609 GL_SERVICE_LOG("glXMakeCurrent" |
| 578 << "(" << static_cast<const void*>(dpy) << ", " << drawable | 610 << "(" << static_cast<const void*>(dpy) << ", " << drawable |
| 579 << ", " << ctx << ")"); | 611 << ", " << ctx << ")"); |
| 612 DCHECK(g_driver_glx.debug_fn.glXMakeCurrentFn != nullptr); |
| 580 int result = g_driver_glx.debug_fn.glXMakeCurrentFn(dpy, drawable, ctx); | 613 int result = g_driver_glx.debug_fn.glXMakeCurrentFn(dpy, drawable, ctx); |
| 581 GL_SERVICE_LOG("GL_RESULT: " << result); | 614 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 582 return result; | 615 return result; |
| 583 } | 616 } |
| 584 | 617 |
| 585 static int GL_BINDING_CALL Debug_glXQueryContext(Display* dpy, | 618 static int GL_BINDING_CALL Debug_glXQueryContext(Display* dpy, |
| 586 GLXContext ctx, | 619 GLXContext ctx, |
| 587 int attribute, | 620 int attribute, |
| 588 int* value) { | 621 int* value) { |
| 589 GL_SERVICE_LOG("glXQueryContext" | 622 GL_SERVICE_LOG("glXQueryContext" |
| 590 << "(" << static_cast<const void*>(dpy) << ", " << ctx << ", " | 623 << "(" << static_cast<const void*>(dpy) << ", " << ctx << ", " |
| 591 << attribute << ", " << static_cast<const void*>(value) | 624 << attribute << ", " << static_cast<const void*>(value) |
| 592 << ")"); | 625 << ")"); |
| 626 DCHECK(g_driver_glx.debug_fn.glXQueryContextFn != nullptr); |
| 593 int result = | 627 int result = |
| 594 g_driver_glx.debug_fn.glXQueryContextFn(dpy, ctx, attribute, value); | 628 g_driver_glx.debug_fn.glXQueryContextFn(dpy, ctx, attribute, value); |
| 595 GL_SERVICE_LOG("GL_RESULT: " << result); | 629 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 596 return result; | 630 return result; |
| 597 } | 631 } |
| 598 | 632 |
| 599 static void GL_BINDING_CALL Debug_glXQueryDrawable(Display* dpy, | 633 static void GL_BINDING_CALL Debug_glXQueryDrawable(Display* dpy, |
| 600 GLXDrawable draw, | 634 GLXDrawable draw, |
| 601 int attribute, | 635 int attribute, |
| 602 unsigned int* value) { | 636 unsigned int* value) { |
| 603 GL_SERVICE_LOG("glXQueryDrawable" | 637 GL_SERVICE_LOG("glXQueryDrawable" |
| 604 << "(" << static_cast<const void*>(dpy) << ", " << draw << ", " | 638 << "(" << static_cast<const void*>(dpy) << ", " << draw << ", " |
| 605 << attribute << ", " << static_cast<const void*>(value) | 639 << attribute << ", " << static_cast<const void*>(value) |
| 606 << ")"); | 640 << ")"); |
| 641 DCHECK(g_driver_glx.debug_fn.glXQueryDrawableFn != nullptr); |
| 607 g_driver_glx.debug_fn.glXQueryDrawableFn(dpy, draw, attribute, value); | 642 g_driver_glx.debug_fn.glXQueryDrawableFn(dpy, draw, attribute, value); |
| 608 } | 643 } |
| 609 | 644 |
| 610 static int GL_BINDING_CALL Debug_glXQueryExtension(Display* dpy, | 645 static int GL_BINDING_CALL Debug_glXQueryExtension(Display* dpy, |
| 611 int* errorb, | 646 int* errorb, |
| 612 int* event) { | 647 int* event) { |
| 613 GL_SERVICE_LOG("glXQueryExtension" | 648 GL_SERVICE_LOG("glXQueryExtension" |
| 614 << "(" << static_cast<const void*>(dpy) << ", " | 649 << "(" << static_cast<const void*>(dpy) << ", " |
| 615 << static_cast<const void*>(errorb) << ", " | 650 << static_cast<const void*>(errorb) << ", " |
| 616 << static_cast<const void*>(event) << ")"); | 651 << static_cast<const void*>(event) << ")"); |
| 652 DCHECK(g_driver_glx.debug_fn.glXQueryExtensionFn != nullptr); |
| 617 int result = g_driver_glx.debug_fn.glXQueryExtensionFn(dpy, errorb, event); | 653 int result = g_driver_glx.debug_fn.glXQueryExtensionFn(dpy, errorb, event); |
| 618 GL_SERVICE_LOG("GL_RESULT: " << result); | 654 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 619 return result; | 655 return result; |
| 620 } | 656 } |
| 621 | 657 |
| 622 static const char* GL_BINDING_CALL Debug_glXQueryExtensionsString(Display* dpy, | 658 static const char* GL_BINDING_CALL Debug_glXQueryExtensionsString(Display* dpy, |
| 623 int screen) { | 659 int screen) { |
| 624 GL_SERVICE_LOG("glXQueryExtensionsString" | 660 GL_SERVICE_LOG("glXQueryExtensionsString" |
| 625 << "(" << static_cast<const void*>(dpy) << ", " << screen | 661 << "(" << static_cast<const void*>(dpy) << ", " << screen |
| 626 << ")"); | 662 << ")"); |
| 663 DCHECK(g_driver_glx.debug_fn.glXQueryExtensionsStringFn != nullptr); |
| 627 const char* result = | 664 const char* result = |
| 628 g_driver_glx.debug_fn.glXQueryExtensionsStringFn(dpy, screen); | 665 g_driver_glx.debug_fn.glXQueryExtensionsStringFn(dpy, screen); |
| 629 GL_SERVICE_LOG("GL_RESULT: " << result); | 666 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 630 return result; | 667 return result; |
| 631 } | 668 } |
| 632 | 669 |
| 633 static const char* GL_BINDING_CALL Debug_glXQueryServerString(Display* dpy, | 670 static const char* GL_BINDING_CALL Debug_glXQueryServerString(Display* dpy, |
| 634 int screen, | 671 int screen, |
| 635 int name) { | 672 int name) { |
| 636 GL_SERVICE_LOG("glXQueryServerString" | 673 GL_SERVICE_LOG("glXQueryServerString" |
| 637 << "(" << static_cast<const void*>(dpy) << ", " << screen | 674 << "(" << static_cast<const void*>(dpy) << ", " << screen |
| 638 << ", " << name << ")"); | 675 << ", " << name << ")"); |
| 676 DCHECK(g_driver_glx.debug_fn.glXQueryServerStringFn != nullptr); |
| 639 const char* result = | 677 const char* result = |
| 640 g_driver_glx.debug_fn.glXQueryServerStringFn(dpy, screen, name); | 678 g_driver_glx.debug_fn.glXQueryServerStringFn(dpy, screen, name); |
| 641 GL_SERVICE_LOG("GL_RESULT: " << result); | 679 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 642 return result; | 680 return result; |
| 643 } | 681 } |
| 644 | 682 |
| 645 static int GL_BINDING_CALL Debug_glXQueryVersion(Display* dpy, | 683 static int GL_BINDING_CALL Debug_glXQueryVersion(Display* dpy, |
| 646 int* maj, | 684 int* maj, |
| 647 int* min) { | 685 int* min) { |
| 648 GL_SERVICE_LOG("glXQueryVersion" | 686 GL_SERVICE_LOG("glXQueryVersion" |
| 649 << "(" << static_cast<const void*>(dpy) << ", " | 687 << "(" << static_cast<const void*>(dpy) << ", " |
| 650 << static_cast<const void*>(maj) << ", " | 688 << static_cast<const void*>(maj) << ", " |
| 651 << static_cast<const void*>(min) << ")"); | 689 << static_cast<const void*>(min) << ")"); |
| 690 DCHECK(g_driver_glx.debug_fn.glXQueryVersionFn != nullptr); |
| 652 int result = g_driver_glx.debug_fn.glXQueryVersionFn(dpy, maj, min); | 691 int result = g_driver_glx.debug_fn.glXQueryVersionFn(dpy, maj, min); |
| 653 GL_SERVICE_LOG("GL_RESULT: " << result); | 692 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 654 return result; | 693 return result; |
| 655 } | 694 } |
| 656 | 695 |
| 657 static void GL_BINDING_CALL Debug_glXReleaseTexImageEXT(Display* dpy, | 696 static void GL_BINDING_CALL Debug_glXReleaseTexImageEXT(Display* dpy, |
| 658 GLXDrawable drawable, | 697 GLXDrawable drawable, |
| 659 int buffer) { | 698 int buffer) { |
| 660 GL_SERVICE_LOG("glXReleaseTexImageEXT" | 699 GL_SERVICE_LOG("glXReleaseTexImageEXT" |
| 661 << "(" << static_cast<const void*>(dpy) << ", " << drawable | 700 << "(" << static_cast<const void*>(dpy) << ", " << drawable |
| 662 << ", " << buffer << ")"); | 701 << ", " << buffer << ")"); |
| 702 DCHECK(g_driver_glx.debug_fn.glXReleaseTexImageEXTFn != nullptr); |
| 663 g_driver_glx.debug_fn.glXReleaseTexImageEXTFn(dpy, drawable, buffer); | 703 g_driver_glx.debug_fn.glXReleaseTexImageEXTFn(dpy, drawable, buffer); |
| 664 } | 704 } |
| 665 | 705 |
| 666 static void GL_BINDING_CALL Debug_glXSelectEvent(Display* dpy, | 706 static void GL_BINDING_CALL Debug_glXSelectEvent(Display* dpy, |
| 667 GLXDrawable drawable, | 707 GLXDrawable drawable, |
| 668 unsigned long mask) { | 708 unsigned long mask) { |
| 669 GL_SERVICE_LOG("glXSelectEvent" | 709 GL_SERVICE_LOG("glXSelectEvent" |
| 670 << "(" << static_cast<const void*>(dpy) << ", " << drawable | 710 << "(" << static_cast<const void*>(dpy) << ", " << drawable |
| 671 << ", " << mask << ")"); | 711 << ", " << mask << ")"); |
| 712 DCHECK(g_driver_glx.debug_fn.glXSelectEventFn != nullptr); |
| 672 g_driver_glx.debug_fn.glXSelectEventFn(dpy, drawable, mask); | 713 g_driver_glx.debug_fn.glXSelectEventFn(dpy, drawable, mask); |
| 673 } | 714 } |
| 674 | 715 |
| 675 static void GL_BINDING_CALL Debug_glXSwapBuffers(Display* dpy, | 716 static void GL_BINDING_CALL Debug_glXSwapBuffers(Display* dpy, |
| 676 GLXDrawable drawable) { | 717 GLXDrawable drawable) { |
| 677 GL_SERVICE_LOG("glXSwapBuffers" | 718 GL_SERVICE_LOG("glXSwapBuffers" |
| 678 << "(" << static_cast<const void*>(dpy) << ", " << drawable | 719 << "(" << static_cast<const void*>(dpy) << ", " << drawable |
| 679 << ")"); | 720 << ")"); |
| 721 DCHECK(g_driver_glx.debug_fn.glXSwapBuffersFn != nullptr); |
| 680 g_driver_glx.debug_fn.glXSwapBuffersFn(dpy, drawable); | 722 g_driver_glx.debug_fn.glXSwapBuffersFn(dpy, drawable); |
| 681 } | 723 } |
| 682 | 724 |
| 683 static void GL_BINDING_CALL Debug_glXSwapIntervalEXT(Display* dpy, | 725 static void GL_BINDING_CALL Debug_glXSwapIntervalEXT(Display* dpy, |
| 684 GLXDrawable drawable, | 726 GLXDrawable drawable, |
| 685 int interval) { | 727 int interval) { |
| 686 GL_SERVICE_LOG("glXSwapIntervalEXT" | 728 GL_SERVICE_LOG("glXSwapIntervalEXT" |
| 687 << "(" << static_cast<const void*>(dpy) << ", " << drawable | 729 << "(" << static_cast<const void*>(dpy) << ", " << drawable |
| 688 << ", " << interval << ")"); | 730 << ", " << interval << ")"); |
| 731 DCHECK(g_driver_glx.debug_fn.glXSwapIntervalEXTFn != nullptr); |
| 689 g_driver_glx.debug_fn.glXSwapIntervalEXTFn(dpy, drawable, interval); | 732 g_driver_glx.debug_fn.glXSwapIntervalEXTFn(dpy, drawable, interval); |
| 690 } | 733 } |
| 691 | 734 |
| 692 static void GL_BINDING_CALL Debug_glXSwapIntervalMESA(unsigned int interval) { | 735 static void GL_BINDING_CALL Debug_glXSwapIntervalMESA(unsigned int interval) { |
| 693 GL_SERVICE_LOG("glXSwapIntervalMESA" | 736 GL_SERVICE_LOG("glXSwapIntervalMESA" |
| 694 << "(" << interval << ")"); | 737 << "(" << interval << ")"); |
| 738 DCHECK(g_driver_glx.debug_fn.glXSwapIntervalMESAFn != nullptr); |
| 695 g_driver_glx.debug_fn.glXSwapIntervalMESAFn(interval); | 739 g_driver_glx.debug_fn.glXSwapIntervalMESAFn(interval); |
| 696 } | 740 } |
| 697 | 741 |
| 698 static void GL_BINDING_CALL Debug_glXUseXFont(Font font, | 742 static void GL_BINDING_CALL Debug_glXUseXFont(Font font, |
| 699 int first, | 743 int first, |
| 700 int count, | 744 int count, |
| 701 int list) { | 745 int list) { |
| 702 GL_SERVICE_LOG("glXUseXFont" | 746 GL_SERVICE_LOG("glXUseXFont" |
| 703 << "(" << font << ", " << first << ", " << count << ", " | 747 << "(" << font << ", " << first << ", " << count << ", " |
| 704 << list << ")"); | 748 << list << ")"); |
| 749 DCHECK(g_driver_glx.debug_fn.glXUseXFontFn != nullptr); |
| 705 g_driver_glx.debug_fn.glXUseXFontFn(font, first, count, list); | 750 g_driver_glx.debug_fn.glXUseXFontFn(font, first, count, list); |
| 706 } | 751 } |
| 707 | 752 |
| 708 static void GL_BINDING_CALL Debug_glXWaitGL(void) { | 753 static void GL_BINDING_CALL Debug_glXWaitGL(void) { |
| 709 GL_SERVICE_LOG("glXWaitGL" | 754 GL_SERVICE_LOG("glXWaitGL" |
| 710 << "(" | 755 << "(" |
| 711 << ")"); | 756 << ")"); |
| 757 DCHECK(g_driver_glx.debug_fn.glXWaitGLFn != nullptr); |
| 712 g_driver_glx.debug_fn.glXWaitGLFn(); | 758 g_driver_glx.debug_fn.glXWaitGLFn(); |
| 713 } | 759 } |
| 714 | 760 |
| 715 static int GL_BINDING_CALL Debug_glXWaitVideoSyncSGI(int divisor, | 761 static int GL_BINDING_CALL Debug_glXWaitVideoSyncSGI(int divisor, |
| 716 int remainder, | 762 int remainder, |
| 717 unsigned int* count) { | 763 unsigned int* count) { |
| 718 GL_SERVICE_LOG("glXWaitVideoSyncSGI" | 764 GL_SERVICE_LOG("glXWaitVideoSyncSGI" |
| 719 << "(" << divisor << ", " << remainder << ", " | 765 << "(" << divisor << ", " << remainder << ", " |
| 720 << static_cast<const void*>(count) << ")"); | 766 << static_cast<const void*>(count) << ")"); |
| 767 DCHECK(g_driver_glx.debug_fn.glXWaitVideoSyncSGIFn != nullptr); |
| 721 int result = | 768 int result = |
| 722 g_driver_glx.debug_fn.glXWaitVideoSyncSGIFn(divisor, remainder, count); | 769 g_driver_glx.debug_fn.glXWaitVideoSyncSGIFn(divisor, remainder, count); |
| 723 GL_SERVICE_LOG("GL_RESULT: " << result); | 770 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 724 return result; | 771 return result; |
| 725 } | 772 } |
| 726 | 773 |
| 727 static void GL_BINDING_CALL Debug_glXWaitX(void) { | 774 static void GL_BINDING_CALL Debug_glXWaitX(void) { |
| 728 GL_SERVICE_LOG("glXWaitX" | 775 GL_SERVICE_LOG("glXWaitX" |
| 729 << "(" | 776 << "(" |
| 730 << ")"); | 777 << ")"); |
| 778 DCHECK(g_driver_glx.debug_fn.glXWaitXFn != nullptr); |
| 731 g_driver_glx.debug_fn.glXWaitXFn(); | 779 g_driver_glx.debug_fn.glXWaitXFn(); |
| 732 } | 780 } |
| 733 } // extern "C" | 781 } // extern "C" |
| 734 | 782 |
| 735 void DriverGLX::InitializeDebugBindings() { | 783 void DriverGLX::InitializeDebugBindings() { |
| 736 if (!debug_fn.glXBindTexImageEXTFn) { | 784 if (!debug_fn.glXBindTexImageEXTFn) { |
| 737 debug_fn.glXBindTexImageEXTFn = fn.glXBindTexImageEXTFn; | 785 debug_fn.glXBindTexImageEXTFn = fn.glXBindTexImageEXTFn; |
| 738 fn.glXBindTexImageEXTFn = Debug_glXBindTexImageEXT; | 786 fn.glXBindTexImageEXTFn = Debug_glXBindTexImageEXT; |
| 739 } | 787 } |
| 740 if (!debug_fn.glXChooseFBConfigFn) { | 788 if (!debug_fn.glXChooseFBConfigFn) { |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1519 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitVideoSyncSGI") | 1567 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitVideoSyncSGI") |
| 1520 return glx_api_->glXWaitVideoSyncSGIFn(divisor, remainder, count); | 1568 return glx_api_->glXWaitVideoSyncSGIFn(divisor, remainder, count); |
| 1521 } | 1569 } |
| 1522 | 1570 |
| 1523 void TraceGLXApi::glXWaitXFn(void) { | 1571 void TraceGLXApi::glXWaitXFn(void) { |
| 1524 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitX") | 1572 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitX") |
| 1525 glx_api_->glXWaitXFn(); | 1573 glx_api_->glXWaitXFn(); |
| 1526 } | 1574 } |
| 1527 | 1575 |
| 1528 } // namespace gfx | 1576 } // namespace gfx |
| OLD | NEW |