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 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/debug/trace_event.h" | 13 #include "base/debug/trace_event.h" |
14 #include "ui/gl/gl_bindings.h" | 14 #include "ui/gl/gl_bindings.h" |
15 #include "ui/gl/gl_context.h" | 15 #include "ui/gl/gl_context.h" |
16 #include "ui/gl/gl_enums.h" | 16 #include "ui/gl/gl_enums.h" |
17 #include "ui/gl/gl_glx_api_implementation.h" | 17 #include "ui/gl/gl_glx_api_implementation.h" |
18 #include "ui/gl/gl_implementation.h" | 18 #include "ui/gl/gl_implementation.h" |
19 #include "ui/gl/gl_version_info.h" | 19 #include "ui/gl/gl_version_info.h" |
20 | 20 |
21 namespace gfx { | 21 namespace gfx { |
22 | 22 |
23 static bool g_debugBindingsInitialized; | 23 static bool g_debugBindingsInitialized; |
24 DriverGLX g_driver_glx; | 24 DriverGLX g_driver_glx; |
25 | 25 |
| 26 void glXBindTexImageEXTNotBound(Display* dpy, |
| 27 GLXDrawable drawable, |
| 28 int buffer, |
| 29 int* attribList) { |
| 30 NOTREACHED(); |
| 31 } |
| 32 void glXCopySubBufferMESANotBound(Display* dpy, |
| 33 GLXDrawable drawable, |
| 34 int x, |
| 35 int y, |
| 36 int width, |
| 37 int height) { |
| 38 NOTREACHED(); |
| 39 } |
| 40 GLXContext glXCreateContextAttribsARBNotBound(Display* dpy, |
| 41 GLXFBConfig config, |
| 42 GLXContext share_context, |
| 43 int direct, |
| 44 const int* attrib_list) { |
| 45 NOTREACHED(); |
| 46 return 0; |
| 47 } |
| 48 GLXFBConfig glXGetFBConfigFromVisualSGIXNotBound(Display* dpy, |
| 49 XVisualInfo* visualInfo) { |
| 50 NOTREACHED(); |
| 51 return 0; |
| 52 } |
| 53 bool glXGetMscRateOMLNotBound(Display* dpy, |
| 54 GLXDrawable drawable, |
| 55 int32* numerator, |
| 56 int32* denominator) { |
| 57 NOTREACHED(); |
| 58 return 0; |
| 59 } |
| 60 bool glXGetSyncValuesOMLNotBound(Display* dpy, |
| 61 GLXDrawable drawable, |
| 62 int64* ust, |
| 63 int64* msc, |
| 64 int64* sbc) { |
| 65 NOTREACHED(); |
| 66 return 0; |
| 67 } |
| 68 void glXReleaseTexImageEXTNotBound(Display* dpy, |
| 69 GLXDrawable drawable, |
| 70 int buffer) { |
| 71 NOTREACHED(); |
| 72 } |
| 73 void glXSwapIntervalEXTNotBound(Display* dpy, |
| 74 GLXDrawable drawable, |
| 75 int interval) { |
| 76 NOTREACHED(); |
| 77 } |
| 78 void glXSwapIntervalMESANotBound(unsigned int interval) { |
| 79 NOTREACHED(); |
| 80 } |
| 81 int glXWaitVideoSyncSGINotBound(int divisor, |
| 82 int remainder, |
| 83 unsigned int* count) { |
| 84 NOTREACHED(); |
| 85 return 0; |
| 86 } |
| 87 |
26 void DriverGLX::InitializeStaticBindings() { | 88 void DriverGLX::InitializeStaticBindings() { |
27 fn.glXBindTexImageEXTFn = reinterpret_cast<glXBindTexImageEXTProc>( | 89 fn.glXBindTexImageEXTFn = |
28 GetGLProcAddress("glXBindTexImageEXT")); | 90 reinterpret_cast<glXBindTexImageEXTProc>(glXBindTexImageEXTNotBound); |
29 fn.glXChooseFBConfigFn = reinterpret_cast<glXChooseFBConfigProc>( | 91 fn.glXChooseFBConfigFn = reinterpret_cast<glXChooseFBConfigProc>( |
30 GetGLProcAddress("glXChooseFBConfig")); | 92 GetGLProcAddress("glXChooseFBConfig")); |
31 fn.glXChooseVisualFn = reinterpret_cast<glXChooseVisualProc>( | 93 fn.glXChooseVisualFn = reinterpret_cast<glXChooseVisualProc>( |
32 GetGLProcAddress("glXChooseVisual")); | 94 GetGLProcAddress("glXChooseVisual")); |
33 fn.glXCopyContextFn = | 95 fn.glXCopyContextFn = |
34 reinterpret_cast<glXCopyContextProc>(GetGLProcAddress("glXCopyContext")); | 96 reinterpret_cast<glXCopyContextProc>(GetGLProcAddress("glXCopyContext")); |
35 fn.glXCopySubBufferMESAFn = reinterpret_cast<glXCopySubBufferMESAProc>( | 97 fn.glXCopySubBufferMESAFn = |
36 GetGLProcAddress("glXCopySubBufferMESA")); | 98 reinterpret_cast<glXCopySubBufferMESAProc>(glXCopySubBufferMESANotBound); |
37 fn.glXCreateContextFn = reinterpret_cast<glXCreateContextProc>( | 99 fn.glXCreateContextFn = reinterpret_cast<glXCreateContextProc>( |
38 GetGLProcAddress("glXCreateContext")); | 100 GetGLProcAddress("glXCreateContext")); |
39 fn.glXCreateContextAttribsARBFn = | 101 fn.glXCreateContextAttribsARBFn = |
40 reinterpret_cast<glXCreateContextAttribsARBProc>( | 102 reinterpret_cast<glXCreateContextAttribsARBProc>( |
41 GetGLProcAddress("glXCreateContextAttribsARB")); | 103 glXCreateContextAttribsARBNotBound); |
42 fn.glXCreateGLXPixmapFn = reinterpret_cast<glXCreateGLXPixmapProc>( | 104 fn.glXCreateGLXPixmapFn = reinterpret_cast<glXCreateGLXPixmapProc>( |
43 GetGLProcAddress("glXCreateGLXPixmap")); | 105 GetGLProcAddress("glXCreateGLXPixmap")); |
44 fn.glXCreateNewContextFn = reinterpret_cast<glXCreateNewContextProc>( | 106 fn.glXCreateNewContextFn = reinterpret_cast<glXCreateNewContextProc>( |
45 GetGLProcAddress("glXCreateNewContext")); | 107 GetGLProcAddress("glXCreateNewContext")); |
46 fn.glXCreatePbufferFn = reinterpret_cast<glXCreatePbufferProc>( | 108 fn.glXCreatePbufferFn = reinterpret_cast<glXCreatePbufferProc>( |
47 GetGLProcAddress("glXCreatePbuffer")); | 109 GetGLProcAddress("glXCreatePbuffer")); |
48 fn.glXCreatePixmapFn = reinterpret_cast<glXCreatePixmapProc>( | 110 fn.glXCreatePixmapFn = reinterpret_cast<glXCreatePixmapProc>( |
49 GetGLProcAddress("glXCreatePixmap")); | 111 GetGLProcAddress("glXCreatePixmap")); |
50 fn.glXCreateWindowFn = reinterpret_cast<glXCreateWindowProc>( | 112 fn.glXCreateWindowFn = reinterpret_cast<glXCreateWindowProc>( |
51 GetGLProcAddress("glXCreateWindow")); | 113 GetGLProcAddress("glXCreateWindow")); |
(...skipping 17 matching lines...) Expand all Loading... |
69 GetGLProcAddress("glXGetCurrentDisplay")); | 131 GetGLProcAddress("glXGetCurrentDisplay")); |
70 fn.glXGetCurrentDrawableFn = reinterpret_cast<glXGetCurrentDrawableProc>( | 132 fn.glXGetCurrentDrawableFn = reinterpret_cast<glXGetCurrentDrawableProc>( |
71 GetGLProcAddress("glXGetCurrentDrawable")); | 133 GetGLProcAddress("glXGetCurrentDrawable")); |
72 fn.glXGetCurrentReadDrawableFn = | 134 fn.glXGetCurrentReadDrawableFn = |
73 reinterpret_cast<glXGetCurrentReadDrawableProc>( | 135 reinterpret_cast<glXGetCurrentReadDrawableProc>( |
74 GetGLProcAddress("glXGetCurrentReadDrawable")); | 136 GetGLProcAddress("glXGetCurrentReadDrawable")); |
75 fn.glXGetFBConfigAttribFn = reinterpret_cast<glXGetFBConfigAttribProc>( | 137 fn.glXGetFBConfigAttribFn = reinterpret_cast<glXGetFBConfigAttribProc>( |
76 GetGLProcAddress("glXGetFBConfigAttrib")); | 138 GetGLProcAddress("glXGetFBConfigAttrib")); |
77 fn.glXGetFBConfigFromVisualSGIXFn = | 139 fn.glXGetFBConfigFromVisualSGIXFn = |
78 reinterpret_cast<glXGetFBConfigFromVisualSGIXProc>( | 140 reinterpret_cast<glXGetFBConfigFromVisualSGIXProc>( |
79 GetGLProcAddress("glXGetFBConfigFromVisualSGIX")); | 141 glXGetFBConfigFromVisualSGIXNotBound); |
80 fn.glXGetFBConfigsFn = reinterpret_cast<glXGetFBConfigsProc>( | 142 fn.glXGetFBConfigsFn = reinterpret_cast<glXGetFBConfigsProc>( |
81 GetGLProcAddress("glXGetFBConfigs")); | 143 GetGLProcAddress("glXGetFBConfigs")); |
82 fn.glXGetMscRateOMLFn = reinterpret_cast<glXGetMscRateOMLProc>( | 144 fn.glXGetMscRateOMLFn = |
83 GetGLProcAddress("glXGetMscRateOML")); | 145 reinterpret_cast<glXGetMscRateOMLProc>(glXGetMscRateOMLNotBound); |
84 fn.glXGetSelectedEventFn = reinterpret_cast<glXGetSelectedEventProc>( | 146 fn.glXGetSelectedEventFn = reinterpret_cast<glXGetSelectedEventProc>( |
85 GetGLProcAddress("glXGetSelectedEvent")); | 147 GetGLProcAddress("glXGetSelectedEvent")); |
86 fn.glXGetSyncValuesOMLFn = reinterpret_cast<glXGetSyncValuesOMLProc>( | 148 fn.glXGetSyncValuesOMLFn = |
87 GetGLProcAddress("glXGetSyncValuesOML")); | 149 reinterpret_cast<glXGetSyncValuesOMLProc>(glXGetSyncValuesOMLNotBound); |
88 fn.glXGetVisualFromFBConfigFn = | 150 fn.glXGetVisualFromFBConfigFn = |
89 reinterpret_cast<glXGetVisualFromFBConfigProc>( | 151 reinterpret_cast<glXGetVisualFromFBConfigProc>( |
90 GetGLProcAddress("glXGetVisualFromFBConfig")); | 152 GetGLProcAddress("glXGetVisualFromFBConfig")); |
91 fn.glXIsDirectFn = | 153 fn.glXIsDirectFn = |
92 reinterpret_cast<glXIsDirectProc>(GetGLProcAddress("glXIsDirect")); | 154 reinterpret_cast<glXIsDirectProc>(GetGLProcAddress("glXIsDirect")); |
93 fn.glXMakeContextCurrentFn = reinterpret_cast<glXMakeContextCurrentProc>( | 155 fn.glXMakeContextCurrentFn = reinterpret_cast<glXMakeContextCurrentProc>( |
94 GetGLProcAddress("glXMakeContextCurrent")); | 156 GetGLProcAddress("glXMakeContextCurrent")); |
95 fn.glXMakeCurrentFn = | 157 fn.glXMakeCurrentFn = |
96 reinterpret_cast<glXMakeCurrentProc>(GetGLProcAddress("glXMakeCurrent")); | 158 reinterpret_cast<glXMakeCurrentProc>(GetGLProcAddress("glXMakeCurrent")); |
97 fn.glXQueryContextFn = reinterpret_cast<glXQueryContextProc>( | 159 fn.glXQueryContextFn = reinterpret_cast<glXQueryContextProc>( |
98 GetGLProcAddress("glXQueryContext")); | 160 GetGLProcAddress("glXQueryContext")); |
99 fn.glXQueryDrawableFn = reinterpret_cast<glXQueryDrawableProc>( | 161 fn.glXQueryDrawableFn = reinterpret_cast<glXQueryDrawableProc>( |
100 GetGLProcAddress("glXQueryDrawable")); | 162 GetGLProcAddress("glXQueryDrawable")); |
101 fn.glXQueryExtensionFn = reinterpret_cast<glXQueryExtensionProc>( | 163 fn.glXQueryExtensionFn = reinterpret_cast<glXQueryExtensionProc>( |
102 GetGLProcAddress("glXQueryExtension")); | 164 GetGLProcAddress("glXQueryExtension")); |
103 fn.glXQueryExtensionsStringFn = | 165 fn.glXQueryExtensionsStringFn = |
104 reinterpret_cast<glXQueryExtensionsStringProc>( | 166 reinterpret_cast<glXQueryExtensionsStringProc>( |
105 GetGLProcAddress("glXQueryExtensionsString")); | 167 GetGLProcAddress("glXQueryExtensionsString")); |
106 fn.glXQueryServerStringFn = reinterpret_cast<glXQueryServerStringProc>( | 168 fn.glXQueryServerStringFn = reinterpret_cast<glXQueryServerStringProc>( |
107 GetGLProcAddress("glXQueryServerString")); | 169 GetGLProcAddress("glXQueryServerString")); |
108 fn.glXQueryVersionFn = reinterpret_cast<glXQueryVersionProc>( | 170 fn.glXQueryVersionFn = reinterpret_cast<glXQueryVersionProc>( |
109 GetGLProcAddress("glXQueryVersion")); | 171 GetGLProcAddress("glXQueryVersion")); |
110 fn.glXReleaseTexImageEXTFn = reinterpret_cast<glXReleaseTexImageEXTProc>( | 172 fn.glXReleaseTexImageEXTFn = reinterpret_cast<glXReleaseTexImageEXTProc>( |
111 GetGLProcAddress("glXReleaseTexImageEXT")); | 173 glXReleaseTexImageEXTNotBound); |
112 fn.glXSelectEventFn = | 174 fn.glXSelectEventFn = |
113 reinterpret_cast<glXSelectEventProc>(GetGLProcAddress("glXSelectEvent")); | 175 reinterpret_cast<glXSelectEventProc>(GetGLProcAddress("glXSelectEvent")); |
114 fn.glXSwapBuffersFn = | 176 fn.glXSwapBuffersFn = |
115 reinterpret_cast<glXSwapBuffersProc>(GetGLProcAddress("glXSwapBuffers")); | 177 reinterpret_cast<glXSwapBuffersProc>(GetGLProcAddress("glXSwapBuffers")); |
116 fn.glXSwapIntervalEXTFn = reinterpret_cast<glXSwapIntervalEXTProc>( | 178 fn.glXSwapIntervalEXTFn = |
117 GetGLProcAddress("glXSwapIntervalEXT")); | 179 reinterpret_cast<glXSwapIntervalEXTProc>(glXSwapIntervalEXTNotBound); |
118 fn.glXSwapIntervalMESAFn = reinterpret_cast<glXSwapIntervalMESAProc>( | 180 fn.glXSwapIntervalMESAFn = |
119 GetGLProcAddress("glXSwapIntervalMESA")); | 181 reinterpret_cast<glXSwapIntervalMESAProc>(glXSwapIntervalMESANotBound); |
120 fn.glXUseXFontFn = | 182 fn.glXUseXFontFn = |
121 reinterpret_cast<glXUseXFontProc>(GetGLProcAddress("glXUseXFont")); | 183 reinterpret_cast<glXUseXFontProc>(GetGLProcAddress("glXUseXFont")); |
122 fn.glXWaitGLFn = | 184 fn.glXWaitGLFn = |
123 reinterpret_cast<glXWaitGLProc>(GetGLProcAddress("glXWaitGL")); | 185 reinterpret_cast<glXWaitGLProc>(GetGLProcAddress("glXWaitGL")); |
124 fn.glXWaitVideoSyncSGIFn = reinterpret_cast<glXWaitVideoSyncSGIProc>( | 186 fn.glXWaitVideoSyncSGIFn = |
125 GetGLProcAddress("glXWaitVideoSyncSGI")); | 187 reinterpret_cast<glXWaitVideoSyncSGIProc>(glXWaitVideoSyncSGINotBound); |
126 fn.glXWaitXFn = reinterpret_cast<glXWaitXProc>(GetGLProcAddress("glXWaitX")); | 188 fn.glXWaitXFn = reinterpret_cast<glXWaitXProc>(GetGLProcAddress("glXWaitX")); |
127 } | 189 std::string extensions(GetPlatformExtensions()); |
128 | 190 extensions += " "; |
129 void DriverGLX::InitializeDynamicBindings(GLContext* context) { | |
130 DCHECK(context && context->IsCurrent(NULL)); | |
131 const GLVersionInfo* ver = context->GetVersionInfo(); | |
132 ALLOW_UNUSED_LOCAL(ver); | |
133 std::string extensions = context->GetExtensions() + " "; | |
134 ALLOW_UNUSED_LOCAL(extensions); | 191 ALLOW_UNUSED_LOCAL(extensions); |
135 | 192 |
136 ext.b_GLX_ARB_create_context = | 193 ext.b_GLX_ARB_create_context = |
137 extensions.find("GLX_ARB_create_context ") != std::string::npos; | 194 extensions.find("GLX_ARB_create_context ") != std::string::npos; |
138 ext.b_GLX_EXT_swap_control = | 195 ext.b_GLX_EXT_swap_control = |
139 extensions.find("GLX_EXT_swap_control ") != std::string::npos; | 196 extensions.find("GLX_EXT_swap_control ") != std::string::npos; |
140 ext.b_GLX_EXT_texture_from_pixmap = | 197 ext.b_GLX_EXT_texture_from_pixmap = |
141 extensions.find("GLX_EXT_texture_from_pixmap ") != std::string::npos; | 198 extensions.find("GLX_EXT_texture_from_pixmap ") != std::string::npos; |
142 ext.b_GLX_MESA_copy_sub_buffer = | 199 ext.b_GLX_MESA_copy_sub_buffer = |
143 extensions.find("GLX_MESA_copy_sub_buffer ") != std::string::npos; | 200 extensions.find("GLX_MESA_copy_sub_buffer ") != std::string::npos; |
144 ext.b_GLX_MESA_swap_control = | 201 ext.b_GLX_MESA_swap_control = |
145 extensions.find("GLX_MESA_swap_control ") != std::string::npos; | 202 extensions.find("GLX_MESA_swap_control ") != std::string::npos; |
146 ext.b_GLX_OML_sync_control = | 203 ext.b_GLX_OML_sync_control = |
147 extensions.find("GLX_OML_sync_control ") != std::string::npos; | 204 extensions.find("GLX_OML_sync_control ") != std::string::npos; |
148 ext.b_GLX_SGIX_fbconfig = | 205 ext.b_GLX_SGIX_fbconfig = |
149 extensions.find("GLX_SGIX_fbconfig ") != std::string::npos; | 206 extensions.find("GLX_SGIX_fbconfig ") != std::string::npos; |
150 ext.b_GLX_SGI_video_sync = | 207 ext.b_GLX_SGI_video_sync = |
151 extensions.find("GLX_SGI_video_sync ") != std::string::npos; | 208 extensions.find("GLX_SGI_video_sync ") != std::string::npos; |
152 | 209 |
| 210 debug_fn.glXBindTexImageEXTFn = 0; |
| 211 if (ext.b_GLX_EXT_texture_from_pixmap) { |
| 212 fn.glXBindTexImageEXTFn = reinterpret_cast<glXBindTexImageEXTProc>( |
| 213 GetGLProcAddress("glXBindTexImageEXT")); |
| 214 } |
| 215 DCHECK(fn.glXBindTexImageEXTFn); |
| 216 |
| 217 debug_fn.glXCopySubBufferMESAFn = 0; |
| 218 if (ext.b_GLX_MESA_copy_sub_buffer) { |
| 219 fn.glXCopySubBufferMESAFn = reinterpret_cast<glXCopySubBufferMESAProc>( |
| 220 GetGLProcAddress("glXCopySubBufferMESA")); |
| 221 } |
| 222 DCHECK(fn.glXCopySubBufferMESAFn); |
| 223 |
| 224 debug_fn.glXCreateContextAttribsARBFn = 0; |
| 225 if (ext.b_GLX_ARB_create_context) { |
| 226 fn.glXCreateContextAttribsARBFn = |
| 227 reinterpret_cast<glXCreateContextAttribsARBProc>( |
| 228 GetGLProcAddress("glXCreateContextAttribsARB")); |
| 229 } |
| 230 DCHECK(fn.glXCreateContextAttribsARBFn); |
| 231 |
| 232 debug_fn.glXGetFBConfigFromVisualSGIXFn = 0; |
| 233 if (ext.b_GLX_SGIX_fbconfig) { |
| 234 fn.glXGetFBConfigFromVisualSGIXFn = |
| 235 reinterpret_cast<glXGetFBConfigFromVisualSGIXProc>( |
| 236 GetGLProcAddress("glXGetFBConfigFromVisualSGIX")); |
| 237 } |
| 238 DCHECK(fn.glXGetFBConfigFromVisualSGIXFn); |
| 239 |
| 240 debug_fn.glXGetMscRateOMLFn = 0; |
| 241 if (ext.b_GLX_OML_sync_control) { |
| 242 fn.glXGetMscRateOMLFn = reinterpret_cast<glXGetMscRateOMLProc>( |
| 243 GetGLProcAddress("glXGetMscRateOML")); |
| 244 } |
| 245 DCHECK(fn.glXGetMscRateOMLFn); |
| 246 |
| 247 debug_fn.glXGetSyncValuesOMLFn = 0; |
| 248 if (ext.b_GLX_OML_sync_control) { |
| 249 fn.glXGetSyncValuesOMLFn = reinterpret_cast<glXGetSyncValuesOMLProc>( |
| 250 GetGLProcAddress("glXGetSyncValuesOML")); |
| 251 } |
| 252 DCHECK(fn.glXGetSyncValuesOMLFn); |
| 253 |
| 254 debug_fn.glXReleaseTexImageEXTFn = 0; |
| 255 if (ext.b_GLX_EXT_texture_from_pixmap) { |
| 256 fn.glXReleaseTexImageEXTFn = reinterpret_cast<glXReleaseTexImageEXTProc>( |
| 257 GetGLProcAddress("glXReleaseTexImageEXT")); |
| 258 } |
| 259 DCHECK(fn.glXReleaseTexImageEXTFn); |
| 260 |
| 261 debug_fn.glXSwapIntervalEXTFn = 0; |
| 262 if (ext.b_GLX_EXT_swap_control) { |
| 263 fn.glXSwapIntervalEXTFn = reinterpret_cast<glXSwapIntervalEXTProc>( |
| 264 GetGLProcAddress("glXSwapIntervalEXT")); |
| 265 } |
| 266 DCHECK(fn.glXSwapIntervalEXTFn); |
| 267 |
| 268 debug_fn.glXSwapIntervalMESAFn = 0; |
| 269 if (ext.b_GLX_MESA_swap_control) { |
| 270 fn.glXSwapIntervalMESAFn = reinterpret_cast<glXSwapIntervalMESAProc>( |
| 271 GetGLProcAddress("glXSwapIntervalMESA")); |
| 272 } |
| 273 DCHECK(fn.glXSwapIntervalMESAFn); |
| 274 |
| 275 debug_fn.glXWaitVideoSyncSGIFn = 0; |
| 276 if (ext.b_GLX_SGI_video_sync) { |
| 277 fn.glXWaitVideoSyncSGIFn = reinterpret_cast<glXWaitVideoSyncSGIProc>( |
| 278 GetGLProcAddress("glXWaitVideoSyncSGI")); |
| 279 } |
| 280 DCHECK(fn.glXWaitVideoSyncSGIFn); |
| 281 |
153 if (g_debugBindingsInitialized) | 282 if (g_debugBindingsInitialized) |
154 InitializeDebugBindings(); | 283 InitializeDebugBindings(); |
155 } | 284 } |
156 | 285 |
157 extern "C" { | 286 extern "C" { |
158 | 287 |
159 static void GL_BINDING_CALL Debug_glXBindTexImageEXT(Display* dpy, | 288 static void GL_BINDING_CALL Debug_glXBindTexImageEXT(Display* dpy, |
160 GLXDrawable drawable, | 289 GLXDrawable drawable, |
161 int buffer, | 290 int buffer, |
162 int* attribList) { | 291 int* attribList) { |
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1454 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitVideoSyncSGI") | 1583 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitVideoSyncSGI") |
1455 return glx_api_->glXWaitVideoSyncSGIFn(divisor, remainder, count); | 1584 return glx_api_->glXWaitVideoSyncSGIFn(divisor, remainder, count); |
1456 } | 1585 } |
1457 | 1586 |
1458 void TraceGLXApi::glXWaitXFn(void) { | 1587 void TraceGLXApi::glXWaitXFn(void) { |
1459 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitX") | 1588 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitX") |
1460 glx_api_->glXWaitXFn(); | 1589 glx_api_->glXWaitXFn(); |
1461 } | 1590 } |
1462 | 1591 |
1463 } // namespace gfx | 1592 } // namespace gfx |
OLD | NEW |