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

Side by Side Diff: ui/gl/gl_bindings_autogen_glx.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 ext.b_GLX_MESA_copy_sub_buffer = 125 ext.b_GLX_MESA_copy_sub_buffer =
126 extensions.find("GLX_MESA_copy_sub_buffer ") != std::string::npos; 126 extensions.find("GLX_MESA_copy_sub_buffer ") != std::string::npos;
127 ext.b_GLX_MESA_swap_control = 127 ext.b_GLX_MESA_swap_control =
128 extensions.find("GLX_MESA_swap_control ") != std::string::npos; 128 extensions.find("GLX_MESA_swap_control ") != std::string::npos;
129 ext.b_GLX_OML_sync_control = 129 ext.b_GLX_OML_sync_control =
130 extensions.find("GLX_OML_sync_control ") != std::string::npos; 130 extensions.find("GLX_OML_sync_control ") != std::string::npos;
131 ext.b_GLX_SGIX_fbconfig = 131 ext.b_GLX_SGIX_fbconfig =
132 extensions.find("GLX_SGIX_fbconfig ") != std::string::npos; 132 extensions.find("GLX_SGIX_fbconfig ") != std::string::npos;
133 ext.b_GLX_SGI_video_sync = 133 ext.b_GLX_SGI_video_sync =
134 extensions.find("GLX_SGI_video_sync ") != std::string::npos; 134 extensions.find("GLX_SGI_video_sync ") != std::string::npos;
135
136 debug_fn.glXBindTexImageEXTFn = 0; 135 debug_fn.glXBindTexImageEXTFn = 0;
137 if (ext.b_GLX_EXT_texture_from_pixmap) { 136 if (ext.b_GLX_EXT_texture_from_pixmap) {
138 fn.glXBindTexImageEXTFn = reinterpret_cast<glXBindTexImageEXTProc>( 137 fn.glXBindTexImageEXTFn = reinterpret_cast<glXBindTexImageEXTProc>(
139 GetGLProcAddress("glXBindTexImageEXT")); 138 GetGLProcAddress("glXBindTexImageEXT"));
140 DCHECK(fn.glXBindTexImageEXTFn); 139 DCHECK(fn.glXBindTexImageEXTFn);
141 } 140 }
142 141
143 debug_fn.glXCopySubBufferMESAFn = 0; 142 debug_fn.glXCopySubBufferMESAFn = 0;
144 if (ext.b_GLX_MESA_copy_sub_buffer) { 143 if (ext.b_GLX_MESA_copy_sub_buffer) {
145 fn.glXCopySubBufferMESAFn = reinterpret_cast<glXCopySubBufferMESAProc>( 144 fn.glXCopySubBufferMESAFn = reinterpret_cast<glXCopySubBufferMESAProc>(
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitVideoSyncSGI") 1508 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitVideoSyncSGI")
1510 return glx_api_->glXWaitVideoSyncSGIFn(divisor, remainder, count); 1509 return glx_api_->glXWaitVideoSyncSGIFn(divisor, remainder, count);
1511 } 1510 }
1512 1511
1513 void TraceGLXApi::glXWaitXFn(void) { 1512 void TraceGLXApi::glXWaitXFn(void) {
1514 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitX") 1513 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitX")
1515 glx_api_->glXWaitXFn(); 1514 glx_api_->glXWaitXFn();
1516 } 1515 }
1517 1516
1518 } // namespace gfx 1517 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698