| 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 << "(" << static_cast<const void*>(dpy) << ", " << screen | 495 << "(" << static_cast<const void*>(dpy) << ", " << screen |
| 496 << ", " << static_cast<const void*>(nelements) << ")"); | 496 << ", " << static_cast<const void*>(nelements) << ")"); |
| 497 GLXFBConfig* result = | 497 GLXFBConfig* result = |
| 498 g_driver_glx.debug_fn.glXGetFBConfigsFn(dpy, screen, nelements); | 498 g_driver_glx.debug_fn.glXGetFBConfigsFn(dpy, screen, nelements); |
| 499 GL_SERVICE_LOG("GL_RESULT: " << result); | 499 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 500 return result; | 500 return result; |
| 501 } | 501 } |
| 502 | 502 |
| 503 static bool GL_BINDING_CALL Debug_glXGetMscRateOML(Display* dpy, | 503 static bool GL_BINDING_CALL Debug_glXGetMscRateOML(Display* dpy, |
| 504 GLXDrawable drawable, | 504 GLXDrawable drawable, |
| 505 int32* numerator, | 505 int32_t* numerator, |
| 506 int32* denominator) { | 506 int32_t* denominator) { |
| 507 GL_SERVICE_LOG("glXGetMscRateOML" | 507 GL_SERVICE_LOG("glXGetMscRateOML" |
| 508 << "(" << static_cast<const void*>(dpy) << ", " << drawable | 508 << "(" << static_cast<const void*>(dpy) << ", " << drawable |
| 509 << ", " << static_cast<const void*>(numerator) << ", " | 509 << ", " << static_cast<const void*>(numerator) << ", " |
| 510 << static_cast<const void*>(denominator) << ")"); | 510 << static_cast<const void*>(denominator) << ")"); |
| 511 bool result = g_driver_glx.debug_fn.glXGetMscRateOMLFn( | 511 bool result = g_driver_glx.debug_fn.glXGetMscRateOMLFn( |
| 512 dpy, drawable, numerator, denominator); | 512 dpy, drawable, numerator, denominator); |
| 513 GL_SERVICE_LOG("GL_RESULT: " << result); | 513 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 514 return result; | 514 return result; |
| 515 } | 515 } |
| 516 | 516 |
| 517 static void GL_BINDING_CALL Debug_glXGetSelectedEvent(Display* dpy, | 517 static void GL_BINDING_CALL Debug_glXGetSelectedEvent(Display* dpy, |
| 518 GLXDrawable drawable, | 518 GLXDrawable drawable, |
| 519 unsigned long* mask) { | 519 unsigned long* mask) { |
| 520 GL_SERVICE_LOG("glXGetSelectedEvent" | 520 GL_SERVICE_LOG("glXGetSelectedEvent" |
| 521 << "(" << static_cast<const void*>(dpy) << ", " << drawable | 521 << "(" << static_cast<const void*>(dpy) << ", " << drawable |
| 522 << ", " << static_cast<const void*>(mask) << ")"); | 522 << ", " << static_cast<const void*>(mask) << ")"); |
| 523 g_driver_glx.debug_fn.glXGetSelectedEventFn(dpy, drawable, mask); | 523 g_driver_glx.debug_fn.glXGetSelectedEventFn(dpy, drawable, mask); |
| 524 } | 524 } |
| 525 | 525 |
| 526 static bool GL_BINDING_CALL Debug_glXGetSyncValuesOML(Display* dpy, | 526 static bool GL_BINDING_CALL Debug_glXGetSyncValuesOML(Display* dpy, |
| 527 GLXDrawable drawable, | 527 GLXDrawable drawable, |
| 528 int64* ust, | 528 int64_t* ust, |
| 529 int64* msc, | 529 int64_t* msc, |
| 530 int64* sbc) { | 530 int64_t* sbc) { |
| 531 GL_SERVICE_LOG("glXGetSyncValuesOML" | 531 GL_SERVICE_LOG("glXGetSyncValuesOML" |
| 532 << "(" << static_cast<const void*>(dpy) << ", " << drawable | 532 << "(" << static_cast<const void*>(dpy) << ", " << drawable |
| 533 << ", " << static_cast<const void*>(ust) << ", " | 533 << ", " << static_cast<const void*>(ust) << ", " |
| 534 << static_cast<const void*>(msc) << ", " | 534 << static_cast<const void*>(msc) << ", " |
| 535 << static_cast<const void*>(sbc) << ")"); | 535 << static_cast<const void*>(sbc) << ")"); |
| 536 bool result = | 536 bool result = |
| 537 g_driver_glx.debug_fn.glXGetSyncValuesOMLFn(dpy, drawable, ust, msc, sbc); | 537 g_driver_glx.debug_fn.glXGetSyncValuesOMLFn(dpy, drawable, ust, msc, sbc); |
| 538 GL_SERVICE_LOG("GL_RESULT: " << result); | 538 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 539 return result; | 539 return result; |
| 540 } | 540 } |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1080 } | 1080 } |
| 1081 | 1081 |
| 1082 GLXFBConfig* GLXApiBase::glXGetFBConfigsFn(Display* dpy, | 1082 GLXFBConfig* GLXApiBase::glXGetFBConfigsFn(Display* dpy, |
| 1083 int screen, | 1083 int screen, |
| 1084 int* nelements) { | 1084 int* nelements) { |
| 1085 return driver_->fn.glXGetFBConfigsFn(dpy, screen, nelements); | 1085 return driver_->fn.glXGetFBConfigsFn(dpy, screen, nelements); |
| 1086 } | 1086 } |
| 1087 | 1087 |
| 1088 bool GLXApiBase::glXGetMscRateOMLFn(Display* dpy, | 1088 bool GLXApiBase::glXGetMscRateOMLFn(Display* dpy, |
| 1089 GLXDrawable drawable, | 1089 GLXDrawable drawable, |
| 1090 int32* numerator, | 1090 int32_t* numerator, |
| 1091 int32* denominator) { | 1091 int32_t* denominator) { |
| 1092 return driver_->fn.glXGetMscRateOMLFn(dpy, drawable, numerator, denominator); | 1092 return driver_->fn.glXGetMscRateOMLFn(dpy, drawable, numerator, denominator); |
| 1093 } | 1093 } |
| 1094 | 1094 |
| 1095 void GLXApiBase::glXGetSelectedEventFn(Display* dpy, | 1095 void GLXApiBase::glXGetSelectedEventFn(Display* dpy, |
| 1096 GLXDrawable drawable, | 1096 GLXDrawable drawable, |
| 1097 unsigned long* mask) { | 1097 unsigned long* mask) { |
| 1098 driver_->fn.glXGetSelectedEventFn(dpy, drawable, mask); | 1098 driver_->fn.glXGetSelectedEventFn(dpy, drawable, mask); |
| 1099 } | 1099 } |
| 1100 | 1100 |
| 1101 bool GLXApiBase::glXGetSyncValuesOMLFn(Display* dpy, | 1101 bool GLXApiBase::glXGetSyncValuesOMLFn(Display* dpy, |
| 1102 GLXDrawable drawable, | 1102 GLXDrawable drawable, |
| 1103 int64* ust, | 1103 int64_t* ust, |
| 1104 int64* msc, | 1104 int64_t* msc, |
| 1105 int64* sbc) { | 1105 int64_t* sbc) { |
| 1106 return driver_->fn.glXGetSyncValuesOMLFn(dpy, drawable, ust, msc, sbc); | 1106 return driver_->fn.glXGetSyncValuesOMLFn(dpy, drawable, ust, msc, sbc); |
| 1107 } | 1107 } |
| 1108 | 1108 |
| 1109 XVisualInfo* GLXApiBase::glXGetVisualFromFBConfigFn(Display* dpy, | 1109 XVisualInfo* GLXApiBase::glXGetVisualFromFBConfigFn(Display* dpy, |
| 1110 GLXFBConfig config) { | 1110 GLXFBConfig config) { |
| 1111 return driver_->fn.glXGetVisualFromFBConfigFn(dpy, config); | 1111 return driver_->fn.glXGetVisualFromFBConfigFn(dpy, config); |
| 1112 } | 1112 } |
| 1113 | 1113 |
| 1114 int GLXApiBase::glXIsDirectFn(Display* dpy, GLXContext ctx) { | 1114 int GLXApiBase::glXIsDirectFn(Display* dpy, GLXContext ctx) { |
| 1115 return driver_->fn.glXIsDirectFn(dpy, ctx); | 1115 return driver_->fn.glXIsDirectFn(dpy, ctx); |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1379 | 1379 |
| 1380 GLXFBConfig* TraceGLXApi::glXGetFBConfigsFn(Display* dpy, | 1380 GLXFBConfig* TraceGLXApi::glXGetFBConfigsFn(Display* dpy, |
| 1381 int screen, | 1381 int screen, |
| 1382 int* nelements) { | 1382 int* nelements) { |
| 1383 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXGetFBConfigs") | 1383 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXGetFBConfigs") |
| 1384 return glx_api_->glXGetFBConfigsFn(dpy, screen, nelements); | 1384 return glx_api_->glXGetFBConfigsFn(dpy, screen, nelements); |
| 1385 } | 1385 } |
| 1386 | 1386 |
| 1387 bool TraceGLXApi::glXGetMscRateOMLFn(Display* dpy, | 1387 bool TraceGLXApi::glXGetMscRateOMLFn(Display* dpy, |
| 1388 GLXDrawable drawable, | 1388 GLXDrawable drawable, |
| 1389 int32* numerator, | 1389 int32_t* numerator, |
| 1390 int32* denominator) { | 1390 int32_t* denominator) { |
| 1391 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXGetMscRateOML") | 1391 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXGetMscRateOML") |
| 1392 return glx_api_->glXGetMscRateOMLFn(dpy, drawable, numerator, denominator); | 1392 return glx_api_->glXGetMscRateOMLFn(dpy, drawable, numerator, denominator); |
| 1393 } | 1393 } |
| 1394 | 1394 |
| 1395 void TraceGLXApi::glXGetSelectedEventFn(Display* dpy, | 1395 void TraceGLXApi::glXGetSelectedEventFn(Display* dpy, |
| 1396 GLXDrawable drawable, | 1396 GLXDrawable drawable, |
| 1397 unsigned long* mask) { | 1397 unsigned long* mask) { |
| 1398 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXGetSelectedEvent") | 1398 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXGetSelectedEvent") |
| 1399 glx_api_->glXGetSelectedEventFn(dpy, drawable, mask); | 1399 glx_api_->glXGetSelectedEventFn(dpy, drawable, mask); |
| 1400 } | 1400 } |
| 1401 | 1401 |
| 1402 bool TraceGLXApi::glXGetSyncValuesOMLFn(Display* dpy, | 1402 bool TraceGLXApi::glXGetSyncValuesOMLFn(Display* dpy, |
| 1403 GLXDrawable drawable, | 1403 GLXDrawable drawable, |
| 1404 int64* ust, | 1404 int64_t* ust, |
| 1405 int64* msc, | 1405 int64_t* msc, |
| 1406 int64* sbc) { | 1406 int64_t* sbc) { |
| 1407 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXGetSyncValuesOML") | 1407 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXGetSyncValuesOML") |
| 1408 return glx_api_->glXGetSyncValuesOMLFn(dpy, drawable, ust, msc, sbc); | 1408 return glx_api_->glXGetSyncValuesOMLFn(dpy, drawable, ust, msc, sbc); |
| 1409 } | 1409 } |
| 1410 | 1410 |
| 1411 XVisualInfo* TraceGLXApi::glXGetVisualFromFBConfigFn(Display* dpy, | 1411 XVisualInfo* TraceGLXApi::glXGetVisualFromFBConfigFn(Display* dpy, |
| 1412 GLXFBConfig config) { | 1412 GLXFBConfig config) { |
| 1413 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXGetVisualFromFBConfig") | 1413 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXGetVisualFromFBConfig") |
| 1414 return glx_api_->glXGetVisualFromFBConfigFn(dpy, config); | 1414 return glx_api_->glXGetVisualFromFBConfigFn(dpy, config); |
| 1415 } | 1415 } |
| 1416 | 1416 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1519 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitVideoSyncSGI") | 1519 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitVideoSyncSGI") |
| 1520 return glx_api_->glXWaitVideoSyncSGIFn(divisor, remainder, count); | 1520 return glx_api_->glXWaitVideoSyncSGIFn(divisor, remainder, count); |
| 1521 } | 1521 } |
| 1522 | 1522 |
| 1523 void TraceGLXApi::glXWaitXFn(void) { | 1523 void TraceGLXApi::glXWaitXFn(void) { |
| 1524 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitX") | 1524 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitX") |
| 1525 glx_api_->glXWaitXFn(); | 1525 glx_api_->glXWaitXFn(); |
| 1526 } | 1526 } |
| 1527 | 1527 |
| 1528 } // namespace gfx | 1528 } // namespace gfx |
| OLD | NEW |