| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 fn.wglGetPbufferDCARBFn = 0; | 48 fn.wglGetPbufferDCARBFn = 0; |
| 49 fn.wglMakeCurrentFn = | 49 fn.wglMakeCurrentFn = |
| 50 reinterpret_cast<wglMakeCurrentProc>(GetGLProcAddress("wglMakeCurrent")); | 50 reinterpret_cast<wglMakeCurrentProc>(GetGLProcAddress("wglMakeCurrent")); |
| 51 fn.wglQueryPbufferARBFn = 0; | 51 fn.wglQueryPbufferARBFn = 0; |
| 52 fn.wglReleasePbufferDCARBFn = 0; | 52 fn.wglReleasePbufferDCARBFn = 0; |
| 53 fn.wglShareListsFn = | 53 fn.wglShareListsFn = |
| 54 reinterpret_cast<wglShareListsProc>(GetGLProcAddress("wglShareLists")); | 54 reinterpret_cast<wglShareListsProc>(GetGLProcAddress("wglShareLists")); |
| 55 fn.wglSwapIntervalEXTFn = 0; | 55 fn.wglSwapIntervalEXTFn = 0; |
| 56 fn.wglSwapLayerBuffersFn = reinterpret_cast<wglSwapLayerBuffersProc>( | 56 fn.wglSwapLayerBuffersFn = reinterpret_cast<wglSwapLayerBuffersProc>( |
| 57 GetGLProcAddress("wglSwapLayerBuffers")); | 57 GetGLProcAddress("wglSwapLayerBuffers")); |
| 58 std::string extensions(GetPlatformExtensions()); | 58 } |
| 59 extensions += " "; | |
| 60 ALLOW_UNUSED_LOCAL(extensions); | |
| 61 | 59 |
| 60 void DriverWGL::InitializeExtensionBindings( |
| 61 const std::set<std::string>& enabled_extensions) { |
| 62 ext.b_WGL_ARB_extensions_string = | 62 ext.b_WGL_ARB_extensions_string = |
| 63 extensions.find("WGL_ARB_extensions_string ") != std::string::npos; | 63 enabled_extensions.find("WGL_ARB_extensions_string") != |
| 64 enabled_extensions.end(); |
| 64 ext.b_WGL_ARB_pbuffer = | 65 ext.b_WGL_ARB_pbuffer = |
| 65 extensions.find("WGL_ARB_pbuffer ") != std::string::npos; | 66 enabled_extensions.find("WGL_ARB_pbuffer") != enabled_extensions.end(); |
| 66 ext.b_WGL_ARB_pixel_format = | 67 ext.b_WGL_ARB_pixel_format = |
| 67 extensions.find("WGL_ARB_pixel_format ") != std::string::npos; | 68 enabled_extensions.find("WGL_ARB_pixel_format") != |
| 69 enabled_extensions.end(); |
| 68 ext.b_WGL_EXT_extensions_string = | 70 ext.b_WGL_EXT_extensions_string = |
| 69 extensions.find("WGL_EXT_extensions_string ") != std::string::npos; | 71 enabled_extensions.find("WGL_EXT_extensions_string") != |
| 72 enabled_extensions.end(); |
| 70 ext.b_WGL_EXT_swap_control = | 73 ext.b_WGL_EXT_swap_control = |
| 71 extensions.find("WGL_EXT_swap_control ") != std::string::npos; | 74 enabled_extensions.find("WGL_EXT_swap_control") != |
| 72 | 75 enabled_extensions.end(); |
| 73 debug_fn.wglChoosePixelFormatARBFn = 0; | 76 debug_fn.wglChoosePixelFormatARBFn = 0; |
| 74 if (ext.b_WGL_ARB_pixel_format) { | 77 if (ext.b_WGL_ARB_pixel_format) { |
| 75 fn.wglChoosePixelFormatARBFn = | 78 fn.wglChoosePixelFormatARBFn = |
| 76 reinterpret_cast<wglChoosePixelFormatARBProc>( | 79 reinterpret_cast<wglChoosePixelFormatARBProc>( |
| 77 GetGLProcAddress("wglChoosePixelFormatARB")); | 80 GetGLProcAddress("wglChoosePixelFormatARB")); |
| 78 DCHECK(fn.wglChoosePixelFormatARBFn); | 81 DCHECK(fn.wglChoosePixelFormatARBFn); |
| 79 } | 82 } |
| 80 | 83 |
| 81 debug_fn.wglCreatePbufferARBFn = 0; | 84 debug_fn.wglCreatePbufferARBFn = 0; |
| 82 if (ext.b_WGL_ARB_pbuffer) { | 85 if (ext.b_WGL_ARB_pbuffer) { |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglSwapIntervalEXT") | 569 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglSwapIntervalEXT") |
| 567 return wgl_api_->wglSwapIntervalEXTFn(interval); | 570 return wgl_api_->wglSwapIntervalEXTFn(interval); |
| 568 } | 571 } |
| 569 | 572 |
| 570 BOOL TraceWGLApi::wglSwapLayerBuffersFn(HDC hdc, UINT fuPlanes) { | 573 BOOL TraceWGLApi::wglSwapLayerBuffersFn(HDC hdc, UINT fuPlanes) { |
| 571 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglSwapLayerBuffers") | 574 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglSwapLayerBuffers") |
| 572 return wgl_api_->wglSwapLayerBuffersFn(hdc, fuPlanes); | 575 return wgl_api_->wglSwapLayerBuffersFn(hdc, fuPlanes); |
| 573 } | 576 } |
| 574 | 577 |
| 575 } // namespace gfx | 578 } // namespace gfx |
| OLD | NEW |