Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: ui/gl/gl_bindings_autogen_wgl.cc

Issue 1203513004: Respect the disabled extension list during binding initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gl/gl_bindings_autogen_osmesa.cc ('k') | ui/gl/gl_egl_api_implementation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/gl/gl_bindings_autogen_osmesa.cc ('k') | ui/gl/gl_egl_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698