| 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 } |
| 59 |
| 60 void DriverWGL::InitializeExtensionBindings() { |
| 58 std::string extensions(GetPlatformExtensions()); | 61 std::string extensions(GetPlatformExtensions()); |
| 59 extensions += " "; | 62 extensions += " "; |
| 60 ALLOW_UNUSED_LOCAL(extensions); | 63 ALLOW_UNUSED_LOCAL(extensions); |
| 61 | 64 |
| 62 ext.b_WGL_ARB_extensions_string = | 65 ext.b_WGL_ARB_extensions_string = |
| 63 extensions.find("WGL_ARB_extensions_string ") != std::string::npos; | 66 extensions.find("WGL_ARB_extensions_string ") != std::string::npos; |
| 64 ext.b_WGL_ARB_pbuffer = | 67 ext.b_WGL_ARB_pbuffer = |
| 65 extensions.find("WGL_ARB_pbuffer ") != std::string::npos; | 68 extensions.find("WGL_ARB_pbuffer ") != std::string::npos; |
| 66 ext.b_WGL_ARB_pixel_format = | 69 ext.b_WGL_ARB_pixel_format = |
| 67 extensions.find("WGL_ARB_pixel_format ") != std::string::npos; | 70 extensions.find("WGL_ARB_pixel_format ") != std::string::npos; |
| (...skipping 498 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 |