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

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: only apply disabled extensions list to GL and EGL extensions Created 5 years, 6 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 extensions.find("WGL_ARB_extensions_string ") != std::string::npos;
64 ext.b_WGL_ARB_pbuffer = 64 ext.b_WGL_ARB_pbuffer =
65 extensions.find("WGL_ARB_pbuffer ") != std::string::npos; 65 extensions.find("WGL_ARB_pbuffer ") != std::string::npos;
66 ext.b_WGL_ARB_pixel_format = 66 ext.b_WGL_ARB_pixel_format =
67 extensions.find("WGL_ARB_pixel_format ") != std::string::npos; 67 extensions.find("WGL_ARB_pixel_format ") != std::string::npos;
68 ext.b_WGL_EXT_extensions_string = 68 ext.b_WGL_EXT_extensions_string =
69 extensions.find("WGL_EXT_extensions_string ") != std::string::npos; 69 extensions.find("WGL_EXT_extensions_string ") != std::string::npos;
70 ext.b_WGL_EXT_swap_control = 70 ext.b_WGL_EXT_swap_control =
71 extensions.find("WGL_EXT_swap_control ") != std::string::npos; 71 extensions.find("WGL_EXT_swap_control ") != std::string::npos;
72
73 debug_fn.wglChoosePixelFormatARBFn = 0; 72 debug_fn.wglChoosePixelFormatARBFn = 0;
74 if (ext.b_WGL_ARB_pixel_format) { 73 if (ext.b_WGL_ARB_pixel_format) {
75 fn.wglChoosePixelFormatARBFn = 74 fn.wglChoosePixelFormatARBFn =
76 reinterpret_cast<wglChoosePixelFormatARBProc>( 75 reinterpret_cast<wglChoosePixelFormatARBProc>(
77 GetGLProcAddress("wglChoosePixelFormatARB")); 76 GetGLProcAddress("wglChoosePixelFormatARB"));
78 DCHECK(fn.wglChoosePixelFormatARBFn); 77 DCHECK(fn.wglChoosePixelFormatARBFn);
79 } 78 }
80 79
81 debug_fn.wglCreatePbufferARBFn = 0; 80 debug_fn.wglCreatePbufferARBFn = 0;
82 if (ext.b_WGL_ARB_pbuffer) { 81 if (ext.b_WGL_ARB_pbuffer) {
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglSwapIntervalEXT") 565 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglSwapIntervalEXT")
567 return wgl_api_->wglSwapIntervalEXTFn(interval); 566 return wgl_api_->wglSwapIntervalEXTFn(interval);
568 } 567 }
569 568
570 BOOL TraceWGLApi::wglSwapLayerBuffersFn(HDC hdc, UINT fuPlanes) { 569 BOOL TraceWGLApi::wglSwapLayerBuffersFn(HDC hdc, UINT fuPlanes) {
571 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglSwapLayerBuffers") 570 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglSwapLayerBuffers")
572 return wgl_api_->wglSwapLayerBuffersFn(hdc, fuPlanes); 571 return wgl_api_->wglSwapLayerBuffersFn(hdc, fuPlanes);
573 } 572 }
574 573
575 } // namespace gfx 574 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698