| Index: ui/gl/gl_bindings_autogen_wgl.cc
|
| diff --git a/ui/gl/gl_bindings_autogen_wgl.cc b/ui/gl/gl_bindings_autogen_wgl.cc
|
| index c66533f2a222d39b6e73fd58ebb032610a1f94ad..465f13a2986ed7b92789bcc729126848cb866196 100644
|
| --- a/ui/gl/gl_bindings_autogen_wgl.cc
|
| +++ b/ui/gl/gl_bindings_autogen_wgl.cc
|
| @@ -20,7 +20,6 @@
|
|
|
| namespace gl {
|
|
|
| -static bool g_debugBindingsInitialized;
|
| DriverWGL g_driver_wgl;
|
|
|
| void DriverWGL::InitializeStaticBindings() {
|
| @@ -76,350 +75,47 @@ void DriverWGL::InitializeExtensionBindings() {
|
| ext.b_WGL_EXT_swap_control =
|
| extensions.find("WGL_EXT_swap_control ") != std::string::npos;
|
|
|
| - debug_fn.wglChoosePixelFormatARBFn = 0;
|
| if (ext.b_WGL_ARB_pixel_format) {
|
| fn.wglChoosePixelFormatARBFn =
|
| reinterpret_cast<wglChoosePixelFormatARBProc>(
|
| GetGLProcAddress("wglChoosePixelFormatARB"));
|
| }
|
|
|
| - debug_fn.wglCreateContextAttribsARBFn = 0;
|
| if (ext.b_WGL_ARB_create_context) {
|
| fn.wglCreateContextAttribsARBFn =
|
| reinterpret_cast<wglCreateContextAttribsARBProc>(
|
| GetGLProcAddress("wglCreateContextAttribsARB"));
|
| }
|
|
|
| - debug_fn.wglCreatePbufferARBFn = 0;
|
| if (ext.b_WGL_ARB_pbuffer) {
|
| fn.wglCreatePbufferARBFn = reinterpret_cast<wglCreatePbufferARBProc>(
|
| GetGLProcAddress("wglCreatePbufferARB"));
|
| }
|
|
|
| - debug_fn.wglDestroyPbufferARBFn = 0;
|
| if (ext.b_WGL_ARB_pbuffer) {
|
| fn.wglDestroyPbufferARBFn = reinterpret_cast<wglDestroyPbufferARBProc>(
|
| GetGLProcAddress("wglDestroyPbufferARB"));
|
| }
|
|
|
| - debug_fn.wglGetPbufferDCARBFn = 0;
|
| if (ext.b_WGL_ARB_pbuffer) {
|
| fn.wglGetPbufferDCARBFn = reinterpret_cast<wglGetPbufferDCARBProc>(
|
| GetGLProcAddress("wglGetPbufferDCARB"));
|
| }
|
|
|
| - debug_fn.wglQueryPbufferARBFn = 0;
|
| if (ext.b_WGL_ARB_pbuffer) {
|
| fn.wglQueryPbufferARBFn = reinterpret_cast<wglQueryPbufferARBProc>(
|
| GetGLProcAddress("wglQueryPbufferARB"));
|
| }
|
|
|
| - debug_fn.wglReleasePbufferDCARBFn = 0;
|
| if (ext.b_WGL_ARB_pbuffer) {
|
| fn.wglReleasePbufferDCARBFn = reinterpret_cast<wglReleasePbufferDCARBProc>(
|
| GetGLProcAddress("wglReleasePbufferDCARB"));
|
| }
|
|
|
| - debug_fn.wglSwapIntervalEXTFn = 0;
|
| if (ext.b_WGL_EXT_swap_control) {
|
| fn.wglSwapIntervalEXTFn = reinterpret_cast<wglSwapIntervalEXTProc>(
|
| GetGLProcAddress("wglSwapIntervalEXT"));
|
| }
|
| -
|
| - if (g_debugBindingsInitialized)
|
| - InitializeDebugBindings();
|
| -}
|
| -
|
| -extern "C" {
|
| -
|
| -static BOOL GL_BINDING_CALL
|
| -Debug_wglChoosePixelFormatARB(HDC dc,
|
| - const int* int_attrib_list,
|
| - const float* float_attrib_list,
|
| - UINT max_formats,
|
| - int* formats,
|
| - UINT* num_formats) {
|
| - GL_SERVICE_LOG("wglChoosePixelFormatARB"
|
| - << "(" << dc << ", "
|
| - << static_cast<const void*>(int_attrib_list) << ", "
|
| - << static_cast<const void*>(float_attrib_list) << ", "
|
| - << max_formats << ", " << static_cast<const void*>(formats)
|
| - << ", " << static_cast<const void*>(num_formats) << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglChoosePixelFormatARBFn != nullptr);
|
| - BOOL result = g_driver_wgl.debug_fn.wglChoosePixelFormatARBFn(
|
| - dc, int_attrib_list, float_attrib_list, max_formats, formats,
|
| - num_formats);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static BOOL GL_BINDING_CALL Debug_wglCopyContext(HGLRC hglrcSrc,
|
| - HGLRC hglrcDst,
|
| - UINT mask) {
|
| - GL_SERVICE_LOG("wglCopyContext"
|
| - << "(" << hglrcSrc << ", " << hglrcDst << ", " << mask << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglCopyContextFn != nullptr);
|
| - BOOL result =
|
| - g_driver_wgl.debug_fn.wglCopyContextFn(hglrcSrc, hglrcDst, mask);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static HGLRC GL_BINDING_CALL Debug_wglCreateContext(HDC hdc) {
|
| - GL_SERVICE_LOG("wglCreateContext"
|
| - << "(" << hdc << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglCreateContextFn != nullptr);
|
| - HGLRC result = g_driver_wgl.debug_fn.wglCreateContextFn(hdc);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static HGLRC GL_BINDING_CALL
|
| -Debug_wglCreateContextAttribsARB(HDC hDC,
|
| - HGLRC hShareContext,
|
| - const int* attribList) {
|
| - GL_SERVICE_LOG("wglCreateContextAttribsARB"
|
| - << "(" << hDC << ", " << hShareContext << ", "
|
| - << static_cast<const void*>(attribList) << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglCreateContextAttribsARBFn != nullptr);
|
| - HGLRC result = g_driver_wgl.debug_fn.wglCreateContextAttribsARBFn(
|
| - hDC, hShareContext, attribList);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static HGLRC GL_BINDING_CALL Debug_wglCreateLayerContext(HDC hdc,
|
| - int iLayerPlane) {
|
| - GL_SERVICE_LOG("wglCreateLayerContext"
|
| - << "(" << hdc << ", " << iLayerPlane << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglCreateLayerContextFn != nullptr);
|
| - HGLRC result =
|
| - g_driver_wgl.debug_fn.wglCreateLayerContextFn(hdc, iLayerPlane);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static HPBUFFERARB GL_BINDING_CALL
|
| -Debug_wglCreatePbufferARB(HDC hDC,
|
| - int iPixelFormat,
|
| - int iWidth,
|
| - int iHeight,
|
| - const int* piAttribList) {
|
| - GL_SERVICE_LOG("wglCreatePbufferARB"
|
| - << "(" << hDC << ", " << iPixelFormat << ", " << iWidth << ", "
|
| - << iHeight << ", " << static_cast<const void*>(piAttribList)
|
| - << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglCreatePbufferARBFn != nullptr);
|
| - HPBUFFERARB result = g_driver_wgl.debug_fn.wglCreatePbufferARBFn(
|
| - hDC, iPixelFormat, iWidth, iHeight, piAttribList);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static BOOL GL_BINDING_CALL Debug_wglDeleteContext(HGLRC hglrc) {
|
| - GL_SERVICE_LOG("wglDeleteContext"
|
| - << "(" << hglrc << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglDeleteContextFn != nullptr);
|
| - BOOL result = g_driver_wgl.debug_fn.wglDeleteContextFn(hglrc);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static BOOL GL_BINDING_CALL Debug_wglDestroyPbufferARB(HPBUFFERARB hPbuffer) {
|
| - GL_SERVICE_LOG("wglDestroyPbufferARB"
|
| - << "(" << hPbuffer << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglDestroyPbufferARBFn != nullptr);
|
| - BOOL result = g_driver_wgl.debug_fn.wglDestroyPbufferARBFn(hPbuffer);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static HGLRC GL_BINDING_CALL Debug_wglGetCurrentContext() {
|
| - GL_SERVICE_LOG("wglGetCurrentContext"
|
| - << "("
|
| - << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglGetCurrentContextFn != nullptr);
|
| - HGLRC result = g_driver_wgl.debug_fn.wglGetCurrentContextFn();
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static HDC GL_BINDING_CALL Debug_wglGetCurrentDC() {
|
| - GL_SERVICE_LOG("wglGetCurrentDC"
|
| - << "("
|
| - << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglGetCurrentDCFn != nullptr);
|
| - HDC result = g_driver_wgl.debug_fn.wglGetCurrentDCFn();
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static const char* GL_BINDING_CALL Debug_wglGetExtensionsStringARB(HDC hDC) {
|
| - GL_SERVICE_LOG("wglGetExtensionsStringARB"
|
| - << "(" << hDC << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglGetExtensionsStringARBFn != nullptr);
|
| - const char* result = g_driver_wgl.debug_fn.wglGetExtensionsStringARBFn(hDC);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static const char* GL_BINDING_CALL Debug_wglGetExtensionsStringEXT() {
|
| - GL_SERVICE_LOG("wglGetExtensionsStringEXT"
|
| - << "("
|
| - << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglGetExtensionsStringEXTFn != nullptr);
|
| - const char* result = g_driver_wgl.debug_fn.wglGetExtensionsStringEXTFn();
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static HDC GL_BINDING_CALL Debug_wglGetPbufferDCARB(HPBUFFERARB hPbuffer) {
|
| - GL_SERVICE_LOG("wglGetPbufferDCARB"
|
| - << "(" << hPbuffer << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglGetPbufferDCARBFn != nullptr);
|
| - HDC result = g_driver_wgl.debug_fn.wglGetPbufferDCARBFn(hPbuffer);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static BOOL GL_BINDING_CALL Debug_wglMakeCurrent(HDC hdc, HGLRC hglrc) {
|
| - GL_SERVICE_LOG("wglMakeCurrent"
|
| - << "(" << hdc << ", " << hglrc << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglMakeCurrentFn != nullptr);
|
| - BOOL result = g_driver_wgl.debug_fn.wglMakeCurrentFn(hdc, hglrc);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static BOOL GL_BINDING_CALL Debug_wglQueryPbufferARB(HPBUFFERARB hPbuffer,
|
| - int iAttribute,
|
| - int* piValue) {
|
| - GL_SERVICE_LOG("wglQueryPbufferARB"
|
| - << "(" << hPbuffer << ", " << iAttribute << ", "
|
| - << static_cast<const void*>(piValue) << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglQueryPbufferARBFn != nullptr);
|
| - BOOL result =
|
| - g_driver_wgl.debug_fn.wglQueryPbufferARBFn(hPbuffer, iAttribute, piValue);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static int GL_BINDING_CALL Debug_wglReleasePbufferDCARB(HPBUFFERARB hPbuffer,
|
| - HDC hDC) {
|
| - GL_SERVICE_LOG("wglReleasePbufferDCARB"
|
| - << "(" << hPbuffer << ", " << hDC << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglReleasePbufferDCARBFn != nullptr);
|
| - int result = g_driver_wgl.debug_fn.wglReleasePbufferDCARBFn(hPbuffer, hDC);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static BOOL GL_BINDING_CALL Debug_wglShareLists(HGLRC hglrc1, HGLRC hglrc2) {
|
| - GL_SERVICE_LOG("wglShareLists"
|
| - << "(" << hglrc1 << ", " << hglrc2 << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglShareListsFn != nullptr);
|
| - BOOL result = g_driver_wgl.debug_fn.wglShareListsFn(hglrc1, hglrc2);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static BOOL GL_BINDING_CALL Debug_wglSwapIntervalEXT(int interval) {
|
| - GL_SERVICE_LOG("wglSwapIntervalEXT"
|
| - << "(" << interval << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglSwapIntervalEXTFn != nullptr);
|
| - BOOL result = g_driver_wgl.debug_fn.wglSwapIntervalEXTFn(interval);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -
|
| -static BOOL GL_BINDING_CALL Debug_wglSwapLayerBuffers(HDC hdc, UINT fuPlanes) {
|
| - GL_SERVICE_LOG("wglSwapLayerBuffers"
|
| - << "(" << hdc << ", " << fuPlanes << ")");
|
| - DCHECK(g_driver_wgl.debug_fn.wglSwapLayerBuffersFn != nullptr);
|
| - BOOL result = g_driver_wgl.debug_fn.wglSwapLayerBuffersFn(hdc, fuPlanes);
|
| - GL_SERVICE_LOG("GL_RESULT: " << result);
|
| - return result;
|
| -}
|
| -} // extern "C"
|
| -
|
| -void DriverWGL::InitializeDebugBindings() {
|
| - if (!debug_fn.wglChoosePixelFormatARBFn) {
|
| - debug_fn.wglChoosePixelFormatARBFn = fn.wglChoosePixelFormatARBFn;
|
| - fn.wglChoosePixelFormatARBFn = Debug_wglChoosePixelFormatARB;
|
| - }
|
| - if (!debug_fn.wglCopyContextFn) {
|
| - debug_fn.wglCopyContextFn = fn.wglCopyContextFn;
|
| - fn.wglCopyContextFn = Debug_wglCopyContext;
|
| - }
|
| - if (!debug_fn.wglCreateContextFn) {
|
| - debug_fn.wglCreateContextFn = fn.wglCreateContextFn;
|
| - fn.wglCreateContextFn = Debug_wglCreateContext;
|
| - }
|
| - if (!debug_fn.wglCreateContextAttribsARBFn) {
|
| - debug_fn.wglCreateContextAttribsARBFn = fn.wglCreateContextAttribsARBFn;
|
| - fn.wglCreateContextAttribsARBFn = Debug_wglCreateContextAttribsARB;
|
| - }
|
| - if (!debug_fn.wglCreateLayerContextFn) {
|
| - debug_fn.wglCreateLayerContextFn = fn.wglCreateLayerContextFn;
|
| - fn.wglCreateLayerContextFn = Debug_wglCreateLayerContext;
|
| - }
|
| - if (!debug_fn.wglCreatePbufferARBFn) {
|
| - debug_fn.wglCreatePbufferARBFn = fn.wglCreatePbufferARBFn;
|
| - fn.wglCreatePbufferARBFn = Debug_wglCreatePbufferARB;
|
| - }
|
| - if (!debug_fn.wglDeleteContextFn) {
|
| - debug_fn.wglDeleteContextFn = fn.wglDeleteContextFn;
|
| - fn.wglDeleteContextFn = Debug_wglDeleteContext;
|
| - }
|
| - if (!debug_fn.wglDestroyPbufferARBFn) {
|
| - debug_fn.wglDestroyPbufferARBFn = fn.wglDestroyPbufferARBFn;
|
| - fn.wglDestroyPbufferARBFn = Debug_wglDestroyPbufferARB;
|
| - }
|
| - if (!debug_fn.wglGetCurrentContextFn) {
|
| - debug_fn.wglGetCurrentContextFn = fn.wglGetCurrentContextFn;
|
| - fn.wglGetCurrentContextFn = Debug_wglGetCurrentContext;
|
| - }
|
| - if (!debug_fn.wglGetCurrentDCFn) {
|
| - debug_fn.wglGetCurrentDCFn = fn.wglGetCurrentDCFn;
|
| - fn.wglGetCurrentDCFn = Debug_wglGetCurrentDC;
|
| - }
|
| - if (!debug_fn.wglGetExtensionsStringARBFn) {
|
| - debug_fn.wglGetExtensionsStringARBFn = fn.wglGetExtensionsStringARBFn;
|
| - fn.wglGetExtensionsStringARBFn = Debug_wglGetExtensionsStringARB;
|
| - }
|
| - if (!debug_fn.wglGetExtensionsStringEXTFn) {
|
| - debug_fn.wglGetExtensionsStringEXTFn = fn.wglGetExtensionsStringEXTFn;
|
| - fn.wglGetExtensionsStringEXTFn = Debug_wglGetExtensionsStringEXT;
|
| - }
|
| - if (!debug_fn.wglGetPbufferDCARBFn) {
|
| - debug_fn.wglGetPbufferDCARBFn = fn.wglGetPbufferDCARBFn;
|
| - fn.wglGetPbufferDCARBFn = Debug_wglGetPbufferDCARB;
|
| - }
|
| - if (!debug_fn.wglMakeCurrentFn) {
|
| - debug_fn.wglMakeCurrentFn = fn.wglMakeCurrentFn;
|
| - fn.wglMakeCurrentFn = Debug_wglMakeCurrent;
|
| - }
|
| - if (!debug_fn.wglQueryPbufferARBFn) {
|
| - debug_fn.wglQueryPbufferARBFn = fn.wglQueryPbufferARBFn;
|
| - fn.wglQueryPbufferARBFn = Debug_wglQueryPbufferARB;
|
| - }
|
| - if (!debug_fn.wglReleasePbufferDCARBFn) {
|
| - debug_fn.wglReleasePbufferDCARBFn = fn.wglReleasePbufferDCARBFn;
|
| - fn.wglReleasePbufferDCARBFn = Debug_wglReleasePbufferDCARB;
|
| - }
|
| - if (!debug_fn.wglShareListsFn) {
|
| - debug_fn.wglShareListsFn = fn.wglShareListsFn;
|
| - fn.wglShareListsFn = Debug_wglShareLists;
|
| - }
|
| - if (!debug_fn.wglSwapIntervalEXTFn) {
|
| - debug_fn.wglSwapIntervalEXTFn = fn.wglSwapIntervalEXTFn;
|
| - fn.wglSwapIntervalEXTFn = Debug_wglSwapIntervalEXT;
|
| - }
|
| - if (!debug_fn.wglSwapLayerBuffersFn) {
|
| - debug_fn.wglSwapLayerBuffersFn = fn.wglSwapLayerBuffersFn;
|
| - fn.wglSwapLayerBuffersFn = Debug_wglSwapLayerBuffers;
|
| - }
|
| - g_debugBindingsInitialized = true;
|
| }
|
|
|
| void DriverWGL::ClearBindings() {
|
| @@ -630,4 +326,184 @@ BOOL TraceWGLApi::wglSwapLayerBuffersFn(HDC hdc, UINT fuPlanes) {
|
| return wgl_api_->wglSwapLayerBuffersFn(hdc, fuPlanes);
|
| }
|
|
|
| +BOOL DebugWGLApi::wglChoosePixelFormatARBFn(HDC dc,
|
| + const int* int_attrib_list,
|
| + const float* float_attrib_list,
|
| + UINT max_formats,
|
| + int* formats,
|
| + UINT* num_formats) {
|
| + GL_SERVICE_LOG("wglChoosePixelFormatARB"
|
| + << "(" << dc << ", "
|
| + << static_cast<const void*>(int_attrib_list) << ", "
|
| + << static_cast<const void*>(float_attrib_list) << ", "
|
| + << max_formats << ", " << static_cast<const void*>(formats)
|
| + << ", " << static_cast<const void*>(num_formats) << ")");
|
| + BOOL result = wgl_api_->wglChoosePixelFormatARBFn(
|
| + dc, int_attrib_list, float_attrib_list, max_formats, formats,
|
| + num_formats);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +BOOL DebugWGLApi::wglCopyContextFn(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask) {
|
| + GL_SERVICE_LOG("wglCopyContext"
|
| + << "(" << hglrcSrc << ", " << hglrcDst << ", " << mask << ")");
|
| + BOOL result = wgl_api_->wglCopyContextFn(hglrcSrc, hglrcDst, mask);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +HGLRC DebugWGLApi::wglCreateContextFn(HDC hdc) {
|
| + GL_SERVICE_LOG("wglCreateContext"
|
| + << "(" << hdc << ")");
|
| + HGLRC result = wgl_api_->wglCreateContextFn(hdc);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +HGLRC DebugWGLApi::wglCreateContextAttribsARBFn(HDC hDC,
|
| + HGLRC hShareContext,
|
| + const int* attribList) {
|
| + GL_SERVICE_LOG("wglCreateContextAttribsARB"
|
| + << "(" << hDC << ", " << hShareContext << ", "
|
| + << static_cast<const void*>(attribList) << ")");
|
| + HGLRC result =
|
| + wgl_api_->wglCreateContextAttribsARBFn(hDC, hShareContext, attribList);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +HGLRC DebugWGLApi::wglCreateLayerContextFn(HDC hdc, int iLayerPlane) {
|
| + GL_SERVICE_LOG("wglCreateLayerContext"
|
| + << "(" << hdc << ", " << iLayerPlane << ")");
|
| + HGLRC result = wgl_api_->wglCreateLayerContextFn(hdc, iLayerPlane);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +HPBUFFERARB DebugWGLApi::wglCreatePbufferARBFn(HDC hDC,
|
| + int iPixelFormat,
|
| + int iWidth,
|
| + int iHeight,
|
| + const int* piAttribList) {
|
| + GL_SERVICE_LOG("wglCreatePbufferARB"
|
| + << "(" << hDC << ", " << iPixelFormat << ", " << iWidth << ", "
|
| + << iHeight << ", " << static_cast<const void*>(piAttribList)
|
| + << ")");
|
| + HPBUFFERARB result = wgl_api_->wglCreatePbufferARBFn(
|
| + hDC, iPixelFormat, iWidth, iHeight, piAttribList);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +BOOL DebugWGLApi::wglDeleteContextFn(HGLRC hglrc) {
|
| + GL_SERVICE_LOG("wglDeleteContext"
|
| + << "(" << hglrc << ")");
|
| + BOOL result = wgl_api_->wglDeleteContextFn(hglrc);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +BOOL DebugWGLApi::wglDestroyPbufferARBFn(HPBUFFERARB hPbuffer) {
|
| + GL_SERVICE_LOG("wglDestroyPbufferARB"
|
| + << "(" << hPbuffer << ")");
|
| + BOOL result = wgl_api_->wglDestroyPbufferARBFn(hPbuffer);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +HGLRC DebugWGLApi::wglGetCurrentContextFn() {
|
| + GL_SERVICE_LOG("wglGetCurrentContext"
|
| + << "("
|
| + << ")");
|
| + HGLRC result = wgl_api_->wglGetCurrentContextFn();
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +HDC DebugWGLApi::wglGetCurrentDCFn() {
|
| + GL_SERVICE_LOG("wglGetCurrentDC"
|
| + << "("
|
| + << ")");
|
| + HDC result = wgl_api_->wglGetCurrentDCFn();
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +const char* DebugWGLApi::wglGetExtensionsStringARBFn(HDC hDC) {
|
| + GL_SERVICE_LOG("wglGetExtensionsStringARB"
|
| + << "(" << hDC << ")");
|
| + const char* result = wgl_api_->wglGetExtensionsStringARBFn(hDC);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +const char* DebugWGLApi::wglGetExtensionsStringEXTFn() {
|
| + GL_SERVICE_LOG("wglGetExtensionsStringEXT"
|
| + << "("
|
| + << ")");
|
| + const char* result = wgl_api_->wglGetExtensionsStringEXTFn();
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +HDC DebugWGLApi::wglGetPbufferDCARBFn(HPBUFFERARB hPbuffer) {
|
| + GL_SERVICE_LOG("wglGetPbufferDCARB"
|
| + << "(" << hPbuffer << ")");
|
| + HDC result = wgl_api_->wglGetPbufferDCARBFn(hPbuffer);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +BOOL DebugWGLApi::wglMakeCurrentFn(HDC hdc, HGLRC hglrc) {
|
| + GL_SERVICE_LOG("wglMakeCurrent"
|
| + << "(" << hdc << ", " << hglrc << ")");
|
| + BOOL result = wgl_api_->wglMakeCurrentFn(hdc, hglrc);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +BOOL DebugWGLApi::wglQueryPbufferARBFn(HPBUFFERARB hPbuffer,
|
| + int iAttribute,
|
| + int* piValue) {
|
| + GL_SERVICE_LOG("wglQueryPbufferARB"
|
| + << "(" << hPbuffer << ", " << iAttribute << ", "
|
| + << static_cast<const void*>(piValue) << ")");
|
| + BOOL result = wgl_api_->wglQueryPbufferARBFn(hPbuffer, iAttribute, piValue);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +int DebugWGLApi::wglReleasePbufferDCARBFn(HPBUFFERARB hPbuffer, HDC hDC) {
|
| + GL_SERVICE_LOG("wglReleasePbufferDCARB"
|
| + << "(" << hPbuffer << ", " << hDC << ")");
|
| + int result = wgl_api_->wglReleasePbufferDCARBFn(hPbuffer, hDC);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +BOOL DebugWGLApi::wglShareListsFn(HGLRC hglrc1, HGLRC hglrc2) {
|
| + GL_SERVICE_LOG("wglShareLists"
|
| + << "(" << hglrc1 << ", " << hglrc2 << ")");
|
| + BOOL result = wgl_api_->wglShareListsFn(hglrc1, hglrc2);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +BOOL DebugWGLApi::wglSwapIntervalEXTFn(int interval) {
|
| + GL_SERVICE_LOG("wglSwapIntervalEXT"
|
| + << "(" << interval << ")");
|
| + BOOL result = wgl_api_->wglSwapIntervalEXTFn(interval);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| +BOOL DebugWGLApi::wglSwapLayerBuffersFn(HDC hdc, UINT fuPlanes) {
|
| + GL_SERVICE_LOG("wglSwapLayerBuffers"
|
| + << "(" << hdc << ", " << fuPlanes << ")");
|
| + BOOL result = wgl_api_->wglSwapLayerBuffersFn(hdc, fuPlanes);
|
| + GL_SERVICE_LOG("GL_RESULT: " << result);
|
| + return result;
|
| +}
|
| +
|
| } // namespace gl
|
|
|