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

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

Issue 1309743005: command_buffer: Implement EXT_blend_func_extended (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: address review comments Created 5 years, 2 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 GetGLProcAddress("glGetAttribLocation")); 195 GetGLProcAddress("glGetAttribLocation"));
196 fn.glGetBooleanvFn = 196 fn.glGetBooleanvFn =
197 reinterpret_cast<glGetBooleanvProc>(GetGLProcAddress("glGetBooleanv")); 197 reinterpret_cast<glGetBooleanvProc>(GetGLProcAddress("glGetBooleanv"));
198 fn.glGetBufferParameterivFn = reinterpret_cast<glGetBufferParameterivProc>( 198 fn.glGetBufferParameterivFn = reinterpret_cast<glGetBufferParameterivProc>(
199 GetGLProcAddress("glGetBufferParameteriv")); 199 GetGLProcAddress("glGetBufferParameteriv"));
200 fn.glGetErrorFn = 200 fn.glGetErrorFn =
201 reinterpret_cast<glGetErrorProc>(GetGLProcAddress("glGetError")); 201 reinterpret_cast<glGetErrorProc>(GetGLProcAddress("glGetError"));
202 fn.glGetFenceivNVFn = 0; 202 fn.glGetFenceivNVFn = 0;
203 fn.glGetFloatvFn = 203 fn.glGetFloatvFn =
204 reinterpret_cast<glGetFloatvProc>(GetGLProcAddress("glGetFloatv")); 204 reinterpret_cast<glGetFloatvProc>(GetGLProcAddress("glGetFloatv"));
205 fn.glGetFragDataIndexFn = 0;
205 fn.glGetFragDataLocationFn = 0; 206 fn.glGetFragDataLocationFn = 0;
206 fn.glGetFramebufferAttachmentParameterivEXTFn = 0; 207 fn.glGetFramebufferAttachmentParameterivEXTFn = 0;
207 fn.glGetGraphicsResetStatusARBFn = 0; 208 fn.glGetGraphicsResetStatusARBFn = 0;
208 fn.glGetInteger64i_vFn = 0; 209 fn.glGetInteger64i_vFn = 0;
209 fn.glGetInteger64vFn = 0; 210 fn.glGetInteger64vFn = 0;
210 fn.glGetIntegeri_vFn = 0; 211 fn.glGetIntegeri_vFn = 0;
211 fn.glGetIntegervFn = 212 fn.glGetIntegervFn =
212 reinterpret_cast<glGetIntegervProc>(GetGLProcAddress("glGetIntegerv")); 213 reinterpret_cast<glGetIntegervProc>(GetGLProcAddress("glGetIntegerv"));
213 fn.glGetInternalformativFn = 0; 214 fn.glGetInternalformativFn = 0;
214 fn.glGetProgramBinaryFn = 0; 215 fn.glGetProgramBinaryFn = 0;
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 extensions.find("GL_ANGLE_framebuffer_multisample ") != std::string::npos; 475 extensions.find("GL_ANGLE_framebuffer_multisample ") != std::string::npos;
475 ext.b_GL_ANGLE_instanced_arrays = 476 ext.b_GL_ANGLE_instanced_arrays =
476 extensions.find("GL_ANGLE_instanced_arrays ") != std::string::npos; 477 extensions.find("GL_ANGLE_instanced_arrays ") != std::string::npos;
477 ext.b_GL_ANGLE_translated_shader_source = 478 ext.b_GL_ANGLE_translated_shader_source =
478 extensions.find("GL_ANGLE_translated_shader_source ") != 479 extensions.find("GL_ANGLE_translated_shader_source ") !=
479 std::string::npos; 480 std::string::npos;
480 ext.b_GL_APPLE_fence = 481 ext.b_GL_APPLE_fence =
481 extensions.find("GL_APPLE_fence ") != std::string::npos; 482 extensions.find("GL_APPLE_fence ") != std::string::npos;
482 ext.b_GL_APPLE_vertex_array_object = 483 ext.b_GL_APPLE_vertex_array_object =
483 extensions.find("GL_APPLE_vertex_array_object ") != std::string::npos; 484 extensions.find("GL_APPLE_vertex_array_object ") != std::string::npos;
485 ext.b_GL_ARB_blend_func_extended =
486 extensions.find("GL_ARB_blend_func_extended ") != std::string::npos;
484 ext.b_GL_ARB_draw_buffers = 487 ext.b_GL_ARB_draw_buffers =
485 extensions.find("GL_ARB_draw_buffers ") != std::string::npos; 488 extensions.find("GL_ARB_draw_buffers ") != std::string::npos;
486 ext.b_GL_ARB_draw_instanced = 489 ext.b_GL_ARB_draw_instanced =
487 extensions.find("GL_ARB_draw_instanced ") != std::string::npos; 490 extensions.find("GL_ARB_draw_instanced ") != std::string::npos;
488 ext.b_GL_ARB_get_program_binary = 491 ext.b_GL_ARB_get_program_binary =
489 extensions.find("GL_ARB_get_program_binary ") != std::string::npos; 492 extensions.find("GL_ARB_get_program_binary ") != std::string::npos;
490 ext.b_GL_ARB_instanced_arrays = 493 ext.b_GL_ARB_instanced_arrays =
491 extensions.find("GL_ARB_instanced_arrays ") != std::string::npos; 494 extensions.find("GL_ARB_instanced_arrays ") != std::string::npos;
492 ext.b_GL_ARB_map_buffer_range = 495 ext.b_GL_ARB_map_buffer_range =
493 extensions.find("GL_ARB_map_buffer_range ") != std::string::npos; 496 extensions.find("GL_ARB_map_buffer_range ") != std::string::npos;
494 ext.b_GL_ARB_occlusion_query = 497 ext.b_GL_ARB_occlusion_query =
495 extensions.find("GL_ARB_occlusion_query ") != std::string::npos; 498 extensions.find("GL_ARB_occlusion_query ") != std::string::npos;
496 ext.b_GL_ARB_program_interface_query = 499 ext.b_GL_ARB_program_interface_query =
497 extensions.find("GL_ARB_program_interface_query ") != std::string::npos; 500 extensions.find("GL_ARB_program_interface_query ") != std::string::npos;
498 ext.b_GL_ARB_robustness = 501 ext.b_GL_ARB_robustness =
499 extensions.find("GL_ARB_robustness ") != std::string::npos; 502 extensions.find("GL_ARB_robustness ") != std::string::npos;
500 ext.b_GL_ARB_sync = extensions.find("GL_ARB_sync ") != std::string::npos; 503 ext.b_GL_ARB_sync = extensions.find("GL_ARB_sync ") != std::string::npos;
501 ext.b_GL_ARB_texture_storage = 504 ext.b_GL_ARB_texture_storage =
502 extensions.find("GL_ARB_texture_storage ") != std::string::npos; 505 extensions.find("GL_ARB_texture_storage ") != std::string::npos;
503 ext.b_GL_ARB_timer_query = 506 ext.b_GL_ARB_timer_query =
504 extensions.find("GL_ARB_timer_query ") != std::string::npos; 507 extensions.find("GL_ARB_timer_query ") != std::string::npos;
505 ext.b_GL_ARB_vertex_array_object = 508 ext.b_GL_ARB_vertex_array_object =
506 extensions.find("GL_ARB_vertex_array_object ") != std::string::npos; 509 extensions.find("GL_ARB_vertex_array_object ") != std::string::npos;
507 ext.b_GL_CHROMIUM_gles_depth_binding_hack = 510 ext.b_GL_CHROMIUM_gles_depth_binding_hack =
508 extensions.find("GL_CHROMIUM_gles_depth_binding_hack ") != 511 extensions.find("GL_CHROMIUM_gles_depth_binding_hack ") !=
509 std::string::npos; 512 std::string::npos;
510 ext.b_GL_CHROMIUM_glgetstringi_hack = 513 ext.b_GL_CHROMIUM_glgetstringi_hack =
511 extensions.find("GL_CHROMIUM_glgetstringi_hack ") != std::string::npos; 514 extensions.find("GL_CHROMIUM_glgetstringi_hack ") != std::string::npos;
515 ext.b_GL_EXT_blend_func_extended =
516 extensions.find("GL_EXT_blend_func_extended ") != std::string::npos;
512 ext.b_GL_EXT_debug_marker = 517 ext.b_GL_EXT_debug_marker =
513 extensions.find("GL_EXT_debug_marker ") != std::string::npos; 518 extensions.find("GL_EXT_debug_marker ") != std::string::npos;
514 ext.b_GL_EXT_direct_state_access = 519 ext.b_GL_EXT_direct_state_access =
515 extensions.find("GL_EXT_direct_state_access ") != std::string::npos; 520 extensions.find("GL_EXT_direct_state_access ") != std::string::npos;
516 ext.b_GL_EXT_discard_framebuffer = 521 ext.b_GL_EXT_discard_framebuffer =
517 extensions.find("GL_EXT_discard_framebuffer ") != std::string::npos; 522 extensions.find("GL_EXT_discard_framebuffer ") != std::string::npos;
518 ext.b_GL_EXT_disjoint_timer_query = 523 ext.b_GL_EXT_disjoint_timer_query =
519 extensions.find("GL_EXT_disjoint_timer_query ") != std::string::npos; 524 extensions.find("GL_EXT_disjoint_timer_query ") != std::string::npos;
520 ext.b_GL_EXT_draw_buffers = 525 ext.b_GL_EXT_draw_buffers =
521 extensions.find("GL_EXT_draw_buffers ") != std::string::npos; 526 extensions.find("GL_EXT_draw_buffers ") != std::string::npos;
522 ext.b_GL_EXT_framebuffer_blit = 527 ext.b_GL_EXT_framebuffer_blit =
523 extensions.find("GL_EXT_framebuffer_blit ") != std::string::npos; 528 extensions.find("GL_EXT_framebuffer_blit ") != std::string::npos;
524 ext.b_GL_EXT_framebuffer_multisample = 529 ext.b_GL_EXT_framebuffer_multisample =
525 extensions.find("GL_EXT_framebuffer_multisample ") != std::string::npos; 530 extensions.find("GL_EXT_framebuffer_multisample ") != std::string::npos;
526 ext.b_GL_EXT_framebuffer_object = 531 ext.b_GL_EXT_framebuffer_object =
527 extensions.find("GL_EXT_framebuffer_object ") != std::string::npos; 532 extensions.find("GL_EXT_framebuffer_object ") != std::string::npos;
533 ext.b_GL_EXT_gpu_shader4 =
534 extensions.find("GL_EXT_gpu_shader4 ") != std::string::npos;
528 ext.b_GL_EXT_map_buffer_range = 535 ext.b_GL_EXT_map_buffer_range =
529 extensions.find("GL_EXT_map_buffer_range ") != std::string::npos; 536 extensions.find("GL_EXT_map_buffer_range ") != std::string::npos;
530 ext.b_GL_EXT_multisampled_render_to_texture = 537 ext.b_GL_EXT_multisampled_render_to_texture =
531 extensions.find("GL_EXT_multisampled_render_to_texture ") != 538 extensions.find("GL_EXT_multisampled_render_to_texture ") !=
532 std::string::npos; 539 std::string::npos;
533 ext.b_GL_EXT_occlusion_query_boolean = 540 ext.b_GL_EXT_occlusion_query_boolean =
534 extensions.find("GL_EXT_occlusion_query_boolean ") != std::string::npos; 541 extensions.find("GL_EXT_occlusion_query_boolean ") != std::string::npos;
535 ext.b_GL_EXT_robustness = 542 ext.b_GL_EXT_robustness =
536 extensions.find("GL_EXT_robustness ") != std::string::npos; 543 extensions.find("GL_EXT_robustness ") != std::string::npos;
537 ext.b_GL_EXT_texture_storage = 544 ext.b_GL_EXT_texture_storage =
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 } 608 }
602 609
603 debug_fn.glBindBufferRangeFn = 0; 610 debug_fn.glBindBufferRangeFn = 0;
604 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) { 611 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
605 fn.glBindBufferRangeFn = reinterpret_cast<glBindBufferRangeProc>( 612 fn.glBindBufferRangeFn = reinterpret_cast<glBindBufferRangeProc>(
606 GetGLProcAddress("glBindBufferRange")); 613 GetGLProcAddress("glBindBufferRange"));
607 DCHECK(fn.glBindBufferRangeFn); 614 DCHECK(fn.glBindBufferRangeFn);
608 } 615 }
609 616
610 debug_fn.glBindFragDataLocationFn = 0; 617 debug_fn.glBindFragDataLocationFn = 0;
611 if (ver->IsAtLeastGL(3u, 0u)) { 618 if (ver->IsAtLeastGL(3u, 0u) || ext.b_GL_ARB_blend_func_extended) {
612 fn.glBindFragDataLocationFn = reinterpret_cast<glBindFragDataLocationProc>( 619 fn.glBindFragDataLocationFn = reinterpret_cast<glBindFragDataLocationProc>(
613 GetGLProcAddress("glBindFragDataLocation")); 620 GetGLProcAddress("glBindFragDataLocation"));
614 DCHECK(fn.glBindFragDataLocationFn); 621 DCHECK(fn.glBindFragDataLocationFn);
622 } else if (ext.b_GL_EXT_gpu_shader4 || ext.b_GL_EXT_blend_func_extended) {
623 fn.glBindFragDataLocationFn = reinterpret_cast<glBindFragDataLocationProc>(
624 GetGLProcAddress("glBindFragDataLocationEXT"));
625 DCHECK(fn.glBindFragDataLocationFn);
615 } 626 }
616 627
617 debug_fn.glBindFragDataLocationIndexedFn = 0; 628 debug_fn.glBindFragDataLocationIndexedFn = 0;
618 if (ver->IsAtLeastGL(3u, 3u)) { 629 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_blend_func_extended) {
619 fn.glBindFragDataLocationIndexedFn = 630 fn.glBindFragDataLocationIndexedFn =
620 reinterpret_cast<glBindFragDataLocationIndexedProc>( 631 reinterpret_cast<glBindFragDataLocationIndexedProc>(
621 GetGLProcAddress("glBindFragDataLocationIndexed")); 632 GetGLProcAddress("glBindFragDataLocationIndexed"));
622 DCHECK(fn.glBindFragDataLocationIndexedFn); 633 DCHECK(fn.glBindFragDataLocationIndexedFn);
634 } else if (ext.b_GL_EXT_blend_func_extended) {
635 fn.glBindFragDataLocationIndexedFn =
636 reinterpret_cast<glBindFragDataLocationIndexedProc>(
637 GetGLProcAddress("glBindFragDataLocationIndexedEXT"));
638 DCHECK(fn.glBindFragDataLocationIndexedFn);
623 } 639 }
624 640
625 debug_fn.glBindFramebufferEXTFn = 0; 641 debug_fn.glBindFramebufferEXTFn = 0;
626 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { 642 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
627 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( 643 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>(
628 GetGLProcAddress("glBindFramebuffer")); 644 GetGLProcAddress("glBindFramebuffer"));
629 DCHECK(fn.glBindFramebufferEXTFn); 645 DCHECK(fn.glBindFramebufferEXTFn);
630 } else if (ext.b_GL_EXT_framebuffer_object) { 646 } else if (ext.b_GL_EXT_framebuffer_object) {
631 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( 647 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>(
632 GetGLProcAddress("glBindFramebufferEXT")); 648 GetGLProcAddress("glBindFramebufferEXT"));
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 DCHECK(fn.glGetActiveUniformsivFn); 1274 DCHECK(fn.glGetActiveUniformsivFn);
1259 } 1275 }
1260 1276
1261 debug_fn.glGetFenceivNVFn = 0; 1277 debug_fn.glGetFenceivNVFn = 0;
1262 if (ext.b_GL_NV_fence) { 1278 if (ext.b_GL_NV_fence) {
1263 fn.glGetFenceivNVFn = reinterpret_cast<glGetFenceivNVProc>( 1279 fn.glGetFenceivNVFn = reinterpret_cast<glGetFenceivNVProc>(
1264 GetGLProcAddress("glGetFenceivNV")); 1280 GetGLProcAddress("glGetFenceivNV"));
1265 DCHECK(fn.glGetFenceivNVFn); 1281 DCHECK(fn.glGetFenceivNVFn);
1266 } 1282 }
1267 1283
1284 debug_fn.glGetFragDataIndexFn = 0;
1285 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_blend_func_extended) {
1286 fn.glGetFragDataIndexFn = reinterpret_cast<glGetFragDataIndexProc>(
1287 GetGLProcAddress("glGetFragDataIndex"));
1288 DCHECK(fn.glGetFragDataIndexFn);
1289 } else if (ext.b_GL_EXT_blend_func_extended) {
1290 fn.glGetFragDataIndexFn = reinterpret_cast<glGetFragDataIndexProc>(
1291 GetGLProcAddress("glGetFragDataIndexEXT"));
1292 DCHECK(fn.glGetFragDataIndexFn);
1293 }
1294
1268 debug_fn.glGetFragDataLocationFn = 0; 1295 debug_fn.glGetFragDataLocationFn = 0;
1269 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) { 1296 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1270 fn.glGetFragDataLocationFn = reinterpret_cast<glGetFragDataLocationProc>( 1297 fn.glGetFragDataLocationFn = reinterpret_cast<glGetFragDataLocationProc>(
1271 GetGLProcAddress("glGetFragDataLocation")); 1298 GetGLProcAddress("glGetFragDataLocation"));
1272 DCHECK(fn.glGetFragDataLocationFn); 1299 DCHECK(fn.glGetFragDataLocationFn);
1273 } 1300 }
1274 1301
1275 debug_fn.glGetFramebufferAttachmentParameterivEXTFn = 0; 1302 debug_fn.glGetFramebufferAttachmentParameterivEXTFn = 0;
1276 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { 1303 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1277 fn.glGetFramebufferAttachmentParameterivEXTFn = 1304 fn.glGetFramebufferAttachmentParameterivEXTFn =
(...skipping 2146 matching lines...) Expand 10 before | Expand all | Expand 10 after
3424 g_driver_gl.debug_fn.glGetFenceivNVFn(fence, pname, params); 3451 g_driver_gl.debug_fn.glGetFenceivNVFn(fence, pname, params);
3425 } 3452 }
3426 3453
3427 static void GL_BINDING_CALL Debug_glGetFloatv(GLenum pname, GLfloat* params) { 3454 static void GL_BINDING_CALL Debug_glGetFloatv(GLenum pname, GLfloat* params) {
3428 GL_SERVICE_LOG("glGetFloatv" 3455 GL_SERVICE_LOG("glGetFloatv"
3429 << "(" << GLEnums::GetStringEnum(pname) << ", " 3456 << "(" << GLEnums::GetStringEnum(pname) << ", "
3430 << static_cast<const void*>(params) << ")"); 3457 << static_cast<const void*>(params) << ")");
3431 g_driver_gl.debug_fn.glGetFloatvFn(pname, params); 3458 g_driver_gl.debug_fn.glGetFloatvFn(pname, params);
3432 } 3459 }
3433 3460
3461 static GLint GL_BINDING_CALL Debug_glGetFragDataIndex(GLuint program,
3462 const char* name) {
3463 GL_SERVICE_LOG("glGetFragDataIndex"
3464 << "(" << program << ", " << name << ")");
3465 GLint result = g_driver_gl.debug_fn.glGetFragDataIndexFn(program, name);
3466 GL_SERVICE_LOG("GL_RESULT: " << result);
3467 return result;
3468 }
3469
3434 static GLint GL_BINDING_CALL Debug_glGetFragDataLocation(GLuint program, 3470 static GLint GL_BINDING_CALL Debug_glGetFragDataLocation(GLuint program,
3435 const char* name) { 3471 const char* name) {
3436 GL_SERVICE_LOG("glGetFragDataLocation" 3472 GL_SERVICE_LOG("glGetFragDataLocation"
3437 << "(" << program << ", " << name << ")"); 3473 << "(" << program << ", " << name << ")");
3438 GLint result = g_driver_gl.debug_fn.glGetFragDataLocationFn(program, name); 3474 GLint result = g_driver_gl.debug_fn.glGetFragDataLocationFn(program, name);
3439 GL_SERVICE_LOG("GL_RESULT: " << result); 3475 GL_SERVICE_LOG("GL_RESULT: " << result);
3440 return result; 3476 return result;
3441 } 3477 }
3442 3478
3443 static void GL_BINDING_CALL 3479 static void GL_BINDING_CALL
(...skipping 2383 matching lines...) Expand 10 before | Expand all | Expand 10 after
5827 fn.glGetErrorFn = Debug_glGetError; 5863 fn.glGetErrorFn = Debug_glGetError;
5828 } 5864 }
5829 if (!debug_fn.glGetFenceivNVFn) { 5865 if (!debug_fn.glGetFenceivNVFn) {
5830 debug_fn.glGetFenceivNVFn = fn.glGetFenceivNVFn; 5866 debug_fn.glGetFenceivNVFn = fn.glGetFenceivNVFn;
5831 fn.glGetFenceivNVFn = Debug_glGetFenceivNV; 5867 fn.glGetFenceivNVFn = Debug_glGetFenceivNV;
5832 } 5868 }
5833 if (!debug_fn.glGetFloatvFn) { 5869 if (!debug_fn.glGetFloatvFn) {
5834 debug_fn.glGetFloatvFn = fn.glGetFloatvFn; 5870 debug_fn.glGetFloatvFn = fn.glGetFloatvFn;
5835 fn.glGetFloatvFn = Debug_glGetFloatv; 5871 fn.glGetFloatvFn = Debug_glGetFloatv;
5836 } 5872 }
5873 if (!debug_fn.glGetFragDataIndexFn) {
5874 debug_fn.glGetFragDataIndexFn = fn.glGetFragDataIndexFn;
5875 fn.glGetFragDataIndexFn = Debug_glGetFragDataIndex;
5876 }
5837 if (!debug_fn.glGetFragDataLocationFn) { 5877 if (!debug_fn.glGetFragDataLocationFn) {
5838 debug_fn.glGetFragDataLocationFn = fn.glGetFragDataLocationFn; 5878 debug_fn.glGetFragDataLocationFn = fn.glGetFragDataLocationFn;
5839 fn.glGetFragDataLocationFn = Debug_glGetFragDataLocation; 5879 fn.glGetFragDataLocationFn = Debug_glGetFragDataLocation;
5840 } 5880 }
5841 if (!debug_fn.glGetFramebufferAttachmentParameterivEXTFn) { 5881 if (!debug_fn.glGetFramebufferAttachmentParameterivEXTFn) {
5842 debug_fn.glGetFramebufferAttachmentParameterivEXTFn = 5882 debug_fn.glGetFramebufferAttachmentParameterivEXTFn =
5843 fn.glGetFramebufferAttachmentParameterivEXTFn; 5883 fn.glGetFramebufferAttachmentParameterivEXTFn;
5844 fn.glGetFramebufferAttachmentParameterivEXTFn = 5884 fn.glGetFramebufferAttachmentParameterivEXTFn =
5845 Debug_glGetFramebufferAttachmentParameterivEXT; 5885 Debug_glGetFramebufferAttachmentParameterivEXT;
5846 } 5886 }
(...skipping 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after
7339 } 7379 }
7340 7380
7341 void GLApiBase::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { 7381 void GLApiBase::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) {
7342 driver_->fn.glGetFenceivNVFn(fence, pname, params); 7382 driver_->fn.glGetFenceivNVFn(fence, pname, params);
7343 } 7383 }
7344 7384
7345 void GLApiBase::glGetFloatvFn(GLenum pname, GLfloat* params) { 7385 void GLApiBase::glGetFloatvFn(GLenum pname, GLfloat* params) {
7346 driver_->fn.glGetFloatvFn(pname, params); 7386 driver_->fn.glGetFloatvFn(pname, params);
7347 } 7387 }
7348 7388
7389 GLint GLApiBase::glGetFragDataIndexFn(GLuint program, const char* name) {
7390 return driver_->fn.glGetFragDataIndexFn(program, name);
7391 }
7392
7349 GLint GLApiBase::glGetFragDataLocationFn(GLuint program, const char* name) { 7393 GLint GLApiBase::glGetFragDataLocationFn(GLuint program, const char* name) {
7350 return driver_->fn.glGetFragDataLocationFn(program, name); 7394 return driver_->fn.glGetFragDataLocationFn(program, name);
7351 } 7395 }
7352 7396
7353 void GLApiBase::glGetFramebufferAttachmentParameterivEXTFn(GLenum target, 7397 void GLApiBase::glGetFramebufferAttachmentParameterivEXTFn(GLenum target,
7354 GLenum attachment, 7398 GLenum attachment,
7355 GLenum pname, 7399 GLenum pname,
7356 GLint* params) { 7400 GLint* params) {
7357 driver_->fn.glGetFramebufferAttachmentParameterivEXTFn(target, attachment, 7401 driver_->fn.glGetFramebufferAttachmentParameterivEXTFn(target, attachment,
7358 pname, params); 7402 pname, params);
(...skipping 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after
9340 void TraceGLApi::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { 9384 void TraceGLApi::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) {
9341 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV") 9385 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV")
9342 gl_api_->glGetFenceivNVFn(fence, pname, params); 9386 gl_api_->glGetFenceivNVFn(fence, pname, params);
9343 } 9387 }
9344 9388
9345 void TraceGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) { 9389 void TraceGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) {
9346 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFloatv") 9390 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFloatv")
9347 gl_api_->glGetFloatvFn(pname, params); 9391 gl_api_->glGetFloatvFn(pname, params);
9348 } 9392 }
9349 9393
9394 GLint TraceGLApi::glGetFragDataIndexFn(GLuint program, const char* name) {
9395 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataIndex")
9396 return gl_api_->glGetFragDataIndexFn(program, name);
9397 }
9398
9350 GLint TraceGLApi::glGetFragDataLocationFn(GLuint program, const char* name) { 9399 GLint TraceGLApi::glGetFragDataLocationFn(GLuint program, const char* name) {
9351 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataLocation") 9400 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataLocation")
9352 return gl_api_->glGetFragDataLocationFn(program, name); 9401 return gl_api_->glGetFragDataLocationFn(program, name);
9353 } 9402 }
9354 9403
9355 void TraceGLApi::glGetFramebufferAttachmentParameterivEXTFn(GLenum target, 9404 void TraceGLApi::glGetFramebufferAttachmentParameterivEXTFn(GLenum target,
9356 GLenum attachment, 9405 GLenum attachment,
9357 GLenum pname, 9406 GLenum pname,
9358 GLint* params) { 9407 GLint* params) {
9359 TRACE_EVENT_BINARY_EFFICIENT0( 9408 TRACE_EVENT_BINARY_EFFICIENT0(
(...skipping 2291 matching lines...) Expand 10 before | Expand all | Expand 10 after
11651 GLint* params) { 11700 GLint* params) {
11652 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context"; 11701 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context";
11653 LOG(ERROR) << "Trying to call glGetFenceivNV() without current GL context"; 11702 LOG(ERROR) << "Trying to call glGetFenceivNV() without current GL context";
11654 } 11703 }
11655 11704
11656 void NoContextGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) { 11705 void NoContextGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) {
11657 NOTREACHED() << "Trying to call glGetFloatv() without current GL context"; 11706 NOTREACHED() << "Trying to call glGetFloatv() without current GL context";
11658 LOG(ERROR) << "Trying to call glGetFloatv() without current GL context"; 11707 LOG(ERROR) << "Trying to call glGetFloatv() without current GL context";
11659 } 11708 }
11660 11709
11710 GLint NoContextGLApi::glGetFragDataIndexFn(GLuint program, const char* name) {
11711 NOTREACHED()
11712 << "Trying to call glGetFragDataIndex() without current GL context";
11713 LOG(ERROR)
11714 << "Trying to call glGetFragDataIndex() without current GL context";
11715 return 0;
11716 }
11717
11661 GLint NoContextGLApi::glGetFragDataLocationFn(GLuint program, 11718 GLint NoContextGLApi::glGetFragDataLocationFn(GLuint program,
11662 const char* name) { 11719 const char* name) {
11663 NOTREACHED() 11720 NOTREACHED()
11664 << "Trying to call glGetFragDataLocation() without current GL context"; 11721 << "Trying to call glGetFragDataLocation() without current GL context";
11665 LOG(ERROR) 11722 LOG(ERROR)
11666 << "Trying to call glGetFragDataLocation() without current GL context"; 11723 << "Trying to call glGetFragDataLocation() without current GL context";
11667 return 0; 11724 return 0;
11668 } 11725 }
11669 11726
11670 void NoContextGLApi::glGetFramebufferAttachmentParameterivEXTFn( 11727 void NoContextGLApi::glGetFramebufferAttachmentParameterivEXTFn(
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after
13183 13240
13184 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, 13241 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync,
13185 GLbitfield flags, 13242 GLbitfield flags,
13186 GLuint64 timeout) { 13243 GLuint64 timeout) {
13187 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; 13244 NOTREACHED() << "Trying to call glWaitSync() without current GL context";
13188 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; 13245 LOG(ERROR) << "Trying to call glWaitSync() without current GL context";
13189 return static_cast<GLenum>(0); 13246 return static_cast<GLenum>(0);
13190 } 13247 }
13191 13248
13192 } // namespace gfx 13249 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698