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

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

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // This file is auto-generated from
6 // ui/gl/generate_bindings.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT!
10
11 #include <string>
12
13 #include "base/debug/trace_event.h"
14 #include "ui/gl/gl_bindings.h"
15 #include "ui/gl/gl_context.h"
16 #include "ui/gl/gl_enums.h"
17 #include "ui/gl/gl_implementation.h"
18 #include "ui/gl/gl_version_info.h"
19 #include "ui/gl/gl_wgl_api_implementation.h"
20
21 namespace gfx {
22
23 static bool g_debugBindingsInitialized;
24 DriverWGL g_driver_wgl;
25
26 void DriverWGL::InitializeStaticBindings() {
27 fn.wglChoosePixelFormatARBFn = reinterpret_cast<wglChoosePixelFormatARBProc>(
28 GetGLProcAddress("wglChoosePixelFormatARB"));
29 fn.wglCopyContextFn =
30 reinterpret_cast<wglCopyContextProc>(GetGLProcAddress("wglCopyContext"));
31 fn.wglCreateContextFn = reinterpret_cast<wglCreateContextProc>(
32 GetGLProcAddress("wglCreateContext"));
33 fn.wglCreateLayerContextFn = reinterpret_cast<wglCreateLayerContextProc>(
34 GetGLProcAddress("wglCreateLayerContext"));
35 fn.wglCreatePbufferARBFn = reinterpret_cast<wglCreatePbufferARBProc>(
36 GetGLProcAddress("wglCreatePbufferARB"));
37 fn.wglDeleteContextFn = reinterpret_cast<wglDeleteContextProc>(
38 GetGLProcAddress("wglDeleteContext"));
39 fn.wglDestroyPbufferARBFn = reinterpret_cast<wglDestroyPbufferARBProc>(
40 GetGLProcAddress("wglDestroyPbufferARB"));
41 fn.wglGetCurrentContextFn = reinterpret_cast<wglGetCurrentContextProc>(
42 GetGLProcAddress("wglGetCurrentContext"));
43 fn.wglGetCurrentDCFn = reinterpret_cast<wglGetCurrentDCProc>(
44 GetGLProcAddress("wglGetCurrentDC"));
45 fn.wglGetExtensionsStringARBFn =
46 reinterpret_cast<wglGetExtensionsStringARBProc>(
47 GetGLProcAddress("wglGetExtensionsStringARB"));
48 fn.wglGetExtensionsStringEXTFn =
49 reinterpret_cast<wglGetExtensionsStringEXTProc>(
50 GetGLProcAddress("wglGetExtensionsStringEXT"));
51 fn.wglGetPbufferDCARBFn = reinterpret_cast<wglGetPbufferDCARBProc>(
52 GetGLProcAddress("wglGetPbufferDCARB"));
53 fn.wglMakeCurrentFn =
54 reinterpret_cast<wglMakeCurrentProc>(GetGLProcAddress("wglMakeCurrent"));
55 fn.wglQueryPbufferARBFn = reinterpret_cast<wglQueryPbufferARBProc>(
56 GetGLProcAddress("wglQueryPbufferARB"));
57 fn.wglReleasePbufferDCARBFn = reinterpret_cast<wglReleasePbufferDCARBProc>(
58 GetGLProcAddress("wglReleasePbufferDCARB"));
59 fn.wglShareListsFn =
60 reinterpret_cast<wglShareListsProc>(GetGLProcAddress("wglShareLists"));
61 fn.wglSwapIntervalEXTFn = reinterpret_cast<wglSwapIntervalEXTProc>(
62 GetGLProcAddress("wglSwapIntervalEXT"));
63 fn.wglSwapLayerBuffersFn = reinterpret_cast<wglSwapLayerBuffersProc>(
64 GetGLProcAddress("wglSwapLayerBuffers"));
65 }
66
67 void DriverWGL::InitializeDynamicBindings(GLContext* context) {
68 DCHECK(context && context->IsCurrent(NULL));
69 const GLVersionInfo* ver = context->GetVersionInfo();
70 ALLOW_UNUSED_LOCAL(ver);
71 std::string extensions = context->GetExtensions() + " ";
72 ALLOW_UNUSED_LOCAL(extensions);
73
74 ext.b_WGL_ARB_extensions_string =
75 extensions.find("WGL_ARB_extensions_string ") != std::string::npos;
76 ext.b_WGL_ARB_pbuffer =
77 extensions.find("WGL_ARB_pbuffer ") != std::string::npos;
78 ext.b_WGL_ARB_pixel_format =
79 extensions.find("WGL_ARB_pixel_format ") != std::string::npos;
80 ext.b_WGL_EXT_extensions_string =
81 extensions.find("WGL_EXT_extensions_string ") != std::string::npos;
82 ext.b_WGL_EXT_swap_control =
83 extensions.find("WGL_EXT_swap_control ") != std::string::npos;
84
85 if (g_debugBindingsInitialized)
86 InitializeDebugBindings();
87 }
88
89 extern "C" {
90
91 static BOOL GL_BINDING_CALL
92 Debug_wglChoosePixelFormatARB(HDC dc,
93 const int* int_attrib_list,
94 const float* float_attrib_list,
95 UINT max_formats,
96 int* formats,
97 UINT* num_formats) {
98 GL_SERVICE_LOG("wglChoosePixelFormatARB"
99 << "(" << dc << ", "
100 << static_cast<const void*>(int_attrib_list) << ", "
101 << static_cast<const void*>(float_attrib_list) << ", "
102 << max_formats << ", " << static_cast<const void*>(formats)
103 << ", " << static_cast<const void*>(num_formats) << ")");
104 BOOL result = g_driver_wgl.debug_fn.wglChoosePixelFormatARBFn(
105 dc, int_attrib_list, float_attrib_list, max_formats, formats,
106 num_formats);
107 GL_SERVICE_LOG("GL_RESULT: " << result);
108 return result;
109 }
110
111 static BOOL GL_BINDING_CALL
112 Debug_wglCopyContext(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask) {
113 GL_SERVICE_LOG("wglCopyContext"
114 << "(" << hglrcSrc << ", " << hglrcDst << ", " << mask << ")");
115 BOOL result =
116 g_driver_wgl.debug_fn.wglCopyContextFn(hglrcSrc, hglrcDst, mask);
117 GL_SERVICE_LOG("GL_RESULT: " << result);
118 return result;
119 }
120
121 static HGLRC GL_BINDING_CALL Debug_wglCreateContext(HDC hdc) {
122 GL_SERVICE_LOG("wglCreateContext"
123 << "(" << hdc << ")");
124 HGLRC result = g_driver_wgl.debug_fn.wglCreateContextFn(hdc);
125 GL_SERVICE_LOG("GL_RESULT: " << result);
126 return result;
127 }
128
129 static HGLRC GL_BINDING_CALL
130 Debug_wglCreateLayerContext(HDC hdc, int iLayerPlane) {
131 GL_SERVICE_LOG("wglCreateLayerContext"
132 << "(" << hdc << ", " << iLayerPlane << ")");
133 HGLRC result =
134 g_driver_wgl.debug_fn.wglCreateLayerContextFn(hdc, iLayerPlane);
135 GL_SERVICE_LOG("GL_RESULT: " << result);
136 return result;
137 }
138
139 static HPBUFFERARB GL_BINDING_CALL
140 Debug_wglCreatePbufferARB(HDC hDC,
141 int iPixelFormat,
142 int iWidth,
143 int iHeight,
144 const int* piAttribList) {
145 GL_SERVICE_LOG("wglCreatePbufferARB"
146 << "(" << hDC << ", " << iPixelFormat << ", " << iWidth << ", "
147 << iHeight << ", " << static_cast<const void*>(piAttribList)
148 << ")");
149 HPBUFFERARB result = g_driver_wgl.debug_fn.wglCreatePbufferARBFn(
150 hDC, iPixelFormat, iWidth, iHeight, piAttribList);
151 GL_SERVICE_LOG("GL_RESULT: " << result);
152 return result;
153 }
154
155 static BOOL GL_BINDING_CALL Debug_wglDeleteContext(HGLRC hglrc) {
156 GL_SERVICE_LOG("wglDeleteContext"
157 << "(" << hglrc << ")");
158 BOOL result = g_driver_wgl.debug_fn.wglDeleteContextFn(hglrc);
159 GL_SERVICE_LOG("GL_RESULT: " << result);
160 return result;
161 }
162
163 static BOOL GL_BINDING_CALL Debug_wglDestroyPbufferARB(HPBUFFERARB hPbuffer) {
164 GL_SERVICE_LOG("wglDestroyPbufferARB"
165 << "(" << hPbuffer << ")");
166 BOOL result = g_driver_wgl.debug_fn.wglDestroyPbufferARBFn(hPbuffer);
167 GL_SERVICE_LOG("GL_RESULT: " << result);
168 return result;
169 }
170
171 static HGLRC GL_BINDING_CALL Debug_wglGetCurrentContext() {
172 GL_SERVICE_LOG("wglGetCurrentContext"
173 << "("
174 << ")");
175 HGLRC result = g_driver_wgl.debug_fn.wglGetCurrentContextFn();
176 GL_SERVICE_LOG("GL_RESULT: " << result);
177 return result;
178 }
179
180 static HDC GL_BINDING_CALL Debug_wglGetCurrentDC() {
181 GL_SERVICE_LOG("wglGetCurrentDC"
182 << "("
183 << ")");
184 HDC result = g_driver_wgl.debug_fn.wglGetCurrentDCFn();
185 GL_SERVICE_LOG("GL_RESULT: " << result);
186 return result;
187 }
188
189 static const char* GL_BINDING_CALL Debug_wglGetExtensionsStringARB(HDC hDC) {
190 GL_SERVICE_LOG("wglGetExtensionsStringARB"
191 << "(" << hDC << ")");
192 const char* result = g_driver_wgl.debug_fn.wglGetExtensionsStringARBFn(hDC);
193 GL_SERVICE_LOG("GL_RESULT: " << result);
194 return result;
195 }
196
197 static const char* GL_BINDING_CALL Debug_wglGetExtensionsStringEXT() {
198 GL_SERVICE_LOG("wglGetExtensionsStringEXT"
199 << "("
200 << ")");
201 const char* result = g_driver_wgl.debug_fn.wglGetExtensionsStringEXTFn();
202 GL_SERVICE_LOG("GL_RESULT: " << result);
203 return result;
204 }
205
206 static HDC GL_BINDING_CALL Debug_wglGetPbufferDCARB(HPBUFFERARB hPbuffer) {
207 GL_SERVICE_LOG("wglGetPbufferDCARB"
208 << "(" << hPbuffer << ")");
209 HDC result = g_driver_wgl.debug_fn.wglGetPbufferDCARBFn(hPbuffer);
210 GL_SERVICE_LOG("GL_RESULT: " << result);
211 return result;
212 }
213
214 static BOOL GL_BINDING_CALL Debug_wglMakeCurrent(HDC hdc, HGLRC hglrc) {
215 GL_SERVICE_LOG("wglMakeCurrent"
216 << "(" << hdc << ", " << hglrc << ")");
217 BOOL result = g_driver_wgl.debug_fn.wglMakeCurrentFn(hdc, hglrc);
218 GL_SERVICE_LOG("GL_RESULT: " << result);
219 return result;
220 }
221
222 static BOOL GL_BINDING_CALL
223 Debug_wglQueryPbufferARB(HPBUFFERARB hPbuffer, int iAttribute, int* piValue) {
224 GL_SERVICE_LOG("wglQueryPbufferARB"
225 << "(" << hPbuffer << ", " << iAttribute << ", "
226 << static_cast<const void*>(piValue) << ")");
227 BOOL result =
228 g_driver_wgl.debug_fn.wglQueryPbufferARBFn(hPbuffer, iAttribute, piValue);
229 GL_SERVICE_LOG("GL_RESULT: " << result);
230 return result;
231 }
232
233 static int GL_BINDING_CALL
234 Debug_wglReleasePbufferDCARB(HPBUFFERARB hPbuffer, HDC hDC) {
235 GL_SERVICE_LOG("wglReleasePbufferDCARB"
236 << "(" << hPbuffer << ", " << hDC << ")");
237 int result = g_driver_wgl.debug_fn.wglReleasePbufferDCARBFn(hPbuffer, hDC);
238 GL_SERVICE_LOG("GL_RESULT: " << result);
239 return result;
240 }
241
242 static BOOL GL_BINDING_CALL Debug_wglShareLists(HGLRC hglrc1, HGLRC hglrc2) {
243 GL_SERVICE_LOG("wglShareLists"
244 << "(" << hglrc1 << ", " << hglrc2 << ")");
245 BOOL result = g_driver_wgl.debug_fn.wglShareListsFn(hglrc1, hglrc2);
246 GL_SERVICE_LOG("GL_RESULT: " << result);
247 return result;
248 }
249
250 static BOOL GL_BINDING_CALL Debug_wglSwapIntervalEXT(int interval) {
251 GL_SERVICE_LOG("wglSwapIntervalEXT"
252 << "(" << interval << ")");
253 BOOL result = g_driver_wgl.debug_fn.wglSwapIntervalEXTFn(interval);
254 GL_SERVICE_LOG("GL_RESULT: " << result);
255 return result;
256 }
257
258 static BOOL GL_BINDING_CALL Debug_wglSwapLayerBuffers(HDC hdc, UINT fuPlanes) {
259 GL_SERVICE_LOG("wglSwapLayerBuffers"
260 << "(" << hdc << ", " << fuPlanes << ")");
261 BOOL result = g_driver_wgl.debug_fn.wglSwapLayerBuffersFn(hdc, fuPlanes);
262 GL_SERVICE_LOG("GL_RESULT: " << result);
263 return result;
264 }
265 } // extern "C"
266
267 void DriverWGL::InitializeDebugBindings() {
268 if (!debug_fn.wglChoosePixelFormatARBFn) {
269 debug_fn.wglChoosePixelFormatARBFn = fn.wglChoosePixelFormatARBFn;
270 fn.wglChoosePixelFormatARBFn = Debug_wglChoosePixelFormatARB;
271 }
272 if (!debug_fn.wglCopyContextFn) {
273 debug_fn.wglCopyContextFn = fn.wglCopyContextFn;
274 fn.wglCopyContextFn = Debug_wglCopyContext;
275 }
276 if (!debug_fn.wglCreateContextFn) {
277 debug_fn.wglCreateContextFn = fn.wglCreateContextFn;
278 fn.wglCreateContextFn = Debug_wglCreateContext;
279 }
280 if (!debug_fn.wglCreateLayerContextFn) {
281 debug_fn.wglCreateLayerContextFn = fn.wglCreateLayerContextFn;
282 fn.wglCreateLayerContextFn = Debug_wglCreateLayerContext;
283 }
284 if (!debug_fn.wglCreatePbufferARBFn) {
285 debug_fn.wglCreatePbufferARBFn = fn.wglCreatePbufferARBFn;
286 fn.wglCreatePbufferARBFn = Debug_wglCreatePbufferARB;
287 }
288 if (!debug_fn.wglDeleteContextFn) {
289 debug_fn.wglDeleteContextFn = fn.wglDeleteContextFn;
290 fn.wglDeleteContextFn = Debug_wglDeleteContext;
291 }
292 if (!debug_fn.wglDestroyPbufferARBFn) {
293 debug_fn.wglDestroyPbufferARBFn = fn.wglDestroyPbufferARBFn;
294 fn.wglDestroyPbufferARBFn = Debug_wglDestroyPbufferARB;
295 }
296 if (!debug_fn.wglGetCurrentContextFn) {
297 debug_fn.wglGetCurrentContextFn = fn.wglGetCurrentContextFn;
298 fn.wglGetCurrentContextFn = Debug_wglGetCurrentContext;
299 }
300 if (!debug_fn.wglGetCurrentDCFn) {
301 debug_fn.wglGetCurrentDCFn = fn.wglGetCurrentDCFn;
302 fn.wglGetCurrentDCFn = Debug_wglGetCurrentDC;
303 }
304 if (!debug_fn.wglGetExtensionsStringARBFn) {
305 debug_fn.wglGetExtensionsStringARBFn = fn.wglGetExtensionsStringARBFn;
306 fn.wglGetExtensionsStringARBFn = Debug_wglGetExtensionsStringARB;
307 }
308 if (!debug_fn.wglGetExtensionsStringEXTFn) {
309 debug_fn.wglGetExtensionsStringEXTFn = fn.wglGetExtensionsStringEXTFn;
310 fn.wglGetExtensionsStringEXTFn = Debug_wglGetExtensionsStringEXT;
311 }
312 if (!debug_fn.wglGetPbufferDCARBFn) {
313 debug_fn.wglGetPbufferDCARBFn = fn.wglGetPbufferDCARBFn;
314 fn.wglGetPbufferDCARBFn = Debug_wglGetPbufferDCARB;
315 }
316 if (!debug_fn.wglMakeCurrentFn) {
317 debug_fn.wglMakeCurrentFn = fn.wglMakeCurrentFn;
318 fn.wglMakeCurrentFn = Debug_wglMakeCurrent;
319 }
320 if (!debug_fn.wglQueryPbufferARBFn) {
321 debug_fn.wglQueryPbufferARBFn = fn.wglQueryPbufferARBFn;
322 fn.wglQueryPbufferARBFn = Debug_wglQueryPbufferARB;
323 }
324 if (!debug_fn.wglReleasePbufferDCARBFn) {
325 debug_fn.wglReleasePbufferDCARBFn = fn.wglReleasePbufferDCARBFn;
326 fn.wglReleasePbufferDCARBFn = Debug_wglReleasePbufferDCARB;
327 }
328 if (!debug_fn.wglShareListsFn) {
329 debug_fn.wglShareListsFn = fn.wglShareListsFn;
330 fn.wglShareListsFn = Debug_wglShareLists;
331 }
332 if (!debug_fn.wglSwapIntervalEXTFn) {
333 debug_fn.wglSwapIntervalEXTFn = fn.wglSwapIntervalEXTFn;
334 fn.wglSwapIntervalEXTFn = Debug_wglSwapIntervalEXT;
335 }
336 if (!debug_fn.wglSwapLayerBuffersFn) {
337 debug_fn.wglSwapLayerBuffersFn = fn.wglSwapLayerBuffersFn;
338 fn.wglSwapLayerBuffersFn = Debug_wglSwapLayerBuffers;
339 }
340 g_debugBindingsInitialized = true;
341 }
342
343 void DriverWGL::ClearBindings() {
344 memset(this, 0, sizeof(*this));
345 }
346
347 BOOL WGLApiBase::wglChoosePixelFormatARBFn(HDC dc,
348 const int* int_attrib_list,
349 const float* float_attrib_list,
350 UINT max_formats,
351 int* formats,
352 UINT* num_formats) {
353 return driver_->fn.wglChoosePixelFormatARBFn(dc, int_attrib_list,
354 float_attrib_list, max_formats,
355 formats, num_formats);
356 }
357
358 BOOL WGLApiBase::wglCopyContextFn(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask) {
359 return driver_->fn.wglCopyContextFn(hglrcSrc, hglrcDst, mask);
360 }
361
362 HGLRC WGLApiBase::wglCreateContextFn(HDC hdc) {
363 return driver_->fn.wglCreateContextFn(hdc);
364 }
365
366 HGLRC WGLApiBase::wglCreateLayerContextFn(HDC hdc, int iLayerPlane) {
367 return driver_->fn.wglCreateLayerContextFn(hdc, iLayerPlane);
368 }
369
370 HPBUFFERARB WGLApiBase::wglCreatePbufferARBFn(HDC hDC,
371 int iPixelFormat,
372 int iWidth,
373 int iHeight,
374 const int* piAttribList) {
375 return driver_->fn.wglCreatePbufferARBFn(hDC, iPixelFormat, iWidth, iHeight,
376 piAttribList);
377 }
378
379 BOOL WGLApiBase::wglDeleteContextFn(HGLRC hglrc) {
380 return driver_->fn.wglDeleteContextFn(hglrc);
381 }
382
383 BOOL WGLApiBase::wglDestroyPbufferARBFn(HPBUFFERARB hPbuffer) {
384 return driver_->fn.wglDestroyPbufferARBFn(hPbuffer);
385 }
386
387 HGLRC WGLApiBase::wglGetCurrentContextFn() {
388 return driver_->fn.wglGetCurrentContextFn();
389 }
390
391 HDC WGLApiBase::wglGetCurrentDCFn() {
392 return driver_->fn.wglGetCurrentDCFn();
393 }
394
395 const char* WGLApiBase::wglGetExtensionsStringARBFn(HDC hDC) {
396 return driver_->fn.wglGetExtensionsStringARBFn(hDC);
397 }
398
399 const char* WGLApiBase::wglGetExtensionsStringEXTFn() {
400 return driver_->fn.wglGetExtensionsStringEXTFn();
401 }
402
403 HDC WGLApiBase::wglGetPbufferDCARBFn(HPBUFFERARB hPbuffer) {
404 return driver_->fn.wglGetPbufferDCARBFn(hPbuffer);
405 }
406
407 BOOL WGLApiBase::wglMakeCurrentFn(HDC hdc, HGLRC hglrc) {
408 return driver_->fn.wglMakeCurrentFn(hdc, hglrc);
409 }
410
411 BOOL WGLApiBase::wglQueryPbufferARBFn(HPBUFFERARB hPbuffer,
412 int iAttribute,
413 int* piValue) {
414 return driver_->fn.wglQueryPbufferARBFn(hPbuffer, iAttribute, piValue);
415 }
416
417 int WGLApiBase::wglReleasePbufferDCARBFn(HPBUFFERARB hPbuffer, HDC hDC) {
418 return driver_->fn.wglReleasePbufferDCARBFn(hPbuffer, hDC);
419 }
420
421 BOOL WGLApiBase::wglShareListsFn(HGLRC hglrc1, HGLRC hglrc2) {
422 return driver_->fn.wglShareListsFn(hglrc1, hglrc2);
423 }
424
425 BOOL WGLApiBase::wglSwapIntervalEXTFn(int interval) {
426 return driver_->fn.wglSwapIntervalEXTFn(interval);
427 }
428
429 BOOL WGLApiBase::wglSwapLayerBuffersFn(HDC hdc, UINT fuPlanes) {
430 return driver_->fn.wglSwapLayerBuffersFn(hdc, fuPlanes);
431 }
432
433 BOOL TraceWGLApi::wglChoosePixelFormatARBFn(HDC dc,
434 const int* int_attrib_list,
435 const float* float_attrib_list,
436 UINT max_formats,
437 int* formats,
438 UINT* num_formats) {
439 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglChoosePixelFormatARB")
440 return wgl_api_->wglChoosePixelFormatARBFn(dc, int_attrib_list,
441 float_attrib_list, max_formats,
442 formats, num_formats);
443 }
444
445 BOOL TraceWGLApi::wglCopyContextFn(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask) {
446 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglCopyContext")
447 return wgl_api_->wglCopyContextFn(hglrcSrc, hglrcDst, mask);
448 }
449
450 HGLRC TraceWGLApi::wglCreateContextFn(HDC hdc) {
451 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglCreateContext")
452 return wgl_api_->wglCreateContextFn(hdc);
453 }
454
455 HGLRC TraceWGLApi::wglCreateLayerContextFn(HDC hdc, int iLayerPlane) {
456 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglCreateLayerContext")
457 return wgl_api_->wglCreateLayerContextFn(hdc, iLayerPlane);
458 }
459
460 HPBUFFERARB TraceWGLApi::wglCreatePbufferARBFn(HDC hDC,
461 int iPixelFormat,
462 int iWidth,
463 int iHeight,
464 const int* piAttribList) {
465 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglCreatePbufferARB")
466 return wgl_api_->wglCreatePbufferARBFn(hDC, iPixelFormat, iWidth, iHeight,
467 piAttribList);
468 }
469
470 BOOL TraceWGLApi::wglDeleteContextFn(HGLRC hglrc) {
471 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglDeleteContext")
472 return wgl_api_->wglDeleteContextFn(hglrc);
473 }
474
475 BOOL TraceWGLApi::wglDestroyPbufferARBFn(HPBUFFERARB hPbuffer) {
476 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglDestroyPbufferARB")
477 return wgl_api_->wglDestroyPbufferARBFn(hPbuffer);
478 }
479
480 HGLRC TraceWGLApi::wglGetCurrentContextFn() {
481 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglGetCurrentContext")
482 return wgl_api_->wglGetCurrentContextFn();
483 }
484
485 HDC TraceWGLApi::wglGetCurrentDCFn() {
486 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglGetCurrentDC")
487 return wgl_api_->wglGetCurrentDCFn();
488 }
489
490 const char* TraceWGLApi::wglGetExtensionsStringARBFn(HDC hDC) {
491 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglGetExtensionsStringARB")
492 return wgl_api_->wglGetExtensionsStringARBFn(hDC);
493 }
494
495 const char* TraceWGLApi::wglGetExtensionsStringEXTFn() {
496 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglGetExtensionsStringEXT")
497 return wgl_api_->wglGetExtensionsStringEXTFn();
498 }
499
500 HDC TraceWGLApi::wglGetPbufferDCARBFn(HPBUFFERARB hPbuffer) {
501 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglGetPbufferDCARB")
502 return wgl_api_->wglGetPbufferDCARBFn(hPbuffer);
503 }
504
505 BOOL TraceWGLApi::wglMakeCurrentFn(HDC hdc, HGLRC hglrc) {
506 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglMakeCurrent")
507 return wgl_api_->wglMakeCurrentFn(hdc, hglrc);
508 }
509
510 BOOL TraceWGLApi::wglQueryPbufferARBFn(HPBUFFERARB hPbuffer,
511 int iAttribute,
512 int* piValue) {
513 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglQueryPbufferARB")
514 return wgl_api_->wglQueryPbufferARBFn(hPbuffer, iAttribute, piValue);
515 }
516
517 int TraceWGLApi::wglReleasePbufferDCARBFn(HPBUFFERARB hPbuffer, HDC hDC) {
518 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglReleasePbufferDCARB")
519 return wgl_api_->wglReleasePbufferDCARBFn(hPbuffer, hDC);
520 }
521
522 BOOL TraceWGLApi::wglShareListsFn(HGLRC hglrc1, HGLRC hglrc2) {
523 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglShareLists")
524 return wgl_api_->wglShareListsFn(hglrc1, hglrc2);
525 }
526
527 BOOL TraceWGLApi::wglSwapIntervalEXTFn(int interval) {
528 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglSwapIntervalEXT")
529 return wgl_api_->wglSwapIntervalEXTFn(interval);
530 }
531
532 BOOL TraceWGLApi::wglSwapLayerBuffersFn(HDC hdc, UINT fuPlanes) {
533 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::wglSwapLayerBuffers")
534 return wgl_api_->wglSwapLayerBuffersFn(hdc, fuPlanes);
535 }
536
537 } // namespace gfx
OLDNEW
« shell/BUILD.gn ('K') | « ui/gl/gl_bindings_autogen_wgl.h ('k') | ui/gl/gl_context_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698