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

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

Issue 1218223005: command_buffer: Implement CHROMIUM_framebuffer_mixed_samples extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: rebase, add bogus spec text Created 5 years 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 fn.glCompressedTexSubImage2DFn = 88 fn.glCompressedTexSubImage2DFn =
89 reinterpret_cast<glCompressedTexSubImage2DProc>( 89 reinterpret_cast<glCompressedTexSubImage2DProc>(
90 GetGLProcAddress("glCompressedTexSubImage2D")); 90 GetGLProcAddress("glCompressedTexSubImage2D"));
91 fn.glCompressedTexSubImage3DFn = 0; 91 fn.glCompressedTexSubImage3DFn = 0;
92 fn.glCopyBufferSubDataFn = 0; 92 fn.glCopyBufferSubDataFn = 0;
93 fn.glCopyTexImage2DFn = reinterpret_cast<glCopyTexImage2DProc>( 93 fn.glCopyTexImage2DFn = reinterpret_cast<glCopyTexImage2DProc>(
94 GetGLProcAddress("glCopyTexImage2D")); 94 GetGLProcAddress("glCopyTexImage2D"));
95 fn.glCopyTexSubImage2DFn = reinterpret_cast<glCopyTexSubImage2DProc>( 95 fn.glCopyTexSubImage2DFn = reinterpret_cast<glCopyTexSubImage2DProc>(
96 GetGLProcAddress("glCopyTexSubImage2D")); 96 GetGLProcAddress("glCopyTexSubImage2D"));
97 fn.glCopyTexSubImage3DFn = 0; 97 fn.glCopyTexSubImage3DFn = 0;
98 fn.glCoverageModulationNVFn = 0;
98 fn.glCoverFillPathInstancedNVFn = 0; 99 fn.glCoverFillPathInstancedNVFn = 0;
99 fn.glCoverFillPathNVFn = 0; 100 fn.glCoverFillPathNVFn = 0;
100 fn.glCoverStrokePathInstancedNVFn = 0; 101 fn.glCoverStrokePathInstancedNVFn = 0;
101 fn.glCoverStrokePathNVFn = 0; 102 fn.glCoverStrokePathNVFn = 0;
102 fn.glCreateProgramFn = reinterpret_cast<glCreateProgramProc>( 103 fn.glCreateProgramFn = reinterpret_cast<glCreateProgramProc>(
103 GetGLProcAddress("glCreateProgram")); 104 GetGLProcAddress("glCreateProgram"));
104 fn.glCreateShaderFn = 105 fn.glCreateShaderFn =
105 reinterpret_cast<glCreateShaderProc>(GetGLProcAddress("glCreateShader")); 106 reinterpret_cast<glCreateShaderProc>(GetGLProcAddress("glCreateShader"));
106 fn.glCullFaceFn = 107 fn.glCullFaceFn =
107 reinterpret_cast<glCullFaceProc>(GetGLProcAddress("glCullFace")); 108 reinterpret_cast<glCullFaceProc>(GetGLProcAddress("glCullFace"));
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 std::string::npos; 551 std::string::npos;
551 ext.b_GL_INTEL_framebuffer_CMAA = 552 ext.b_GL_INTEL_framebuffer_CMAA =
552 extensions.find("GL_INTEL_framebuffer_CMAA ") != std::string::npos; 553 extensions.find("GL_INTEL_framebuffer_CMAA ") != std::string::npos;
553 ext.b_GL_KHR_blend_equation_advanced = 554 ext.b_GL_KHR_blend_equation_advanced =
554 extensions.find("GL_KHR_blend_equation_advanced ") != std::string::npos; 555 extensions.find("GL_KHR_blend_equation_advanced ") != std::string::npos;
555 ext.b_GL_KHR_robustness = 556 ext.b_GL_KHR_robustness =
556 extensions.find("GL_KHR_robustness ") != std::string::npos; 557 extensions.find("GL_KHR_robustness ") != std::string::npos;
557 ext.b_GL_NV_blend_equation_advanced = 558 ext.b_GL_NV_blend_equation_advanced =
558 extensions.find("GL_NV_blend_equation_advanced ") != std::string::npos; 559 extensions.find("GL_NV_blend_equation_advanced ") != std::string::npos;
559 ext.b_GL_NV_fence = extensions.find("GL_NV_fence ") != std::string::npos; 560 ext.b_GL_NV_fence = extensions.find("GL_NV_fence ") != std::string::npos;
561 ext.b_GL_NV_framebuffer_mixed_samples =
562 extensions.find("GL_NV_framebuffer_mixed_samples ") != std::string::npos;
560 ext.b_GL_NV_path_rendering = 563 ext.b_GL_NV_path_rendering =
561 extensions.find("GL_NV_path_rendering ") != std::string::npos; 564 extensions.find("GL_NV_path_rendering ") != std::string::npos;
562 ext.b_GL_OES_EGL_image = 565 ext.b_GL_OES_EGL_image =
563 extensions.find("GL_OES_EGL_image ") != std::string::npos; 566 extensions.find("GL_OES_EGL_image ") != std::string::npos;
564 ext.b_GL_OES_get_program_binary = 567 ext.b_GL_OES_get_program_binary =
565 extensions.find("GL_OES_get_program_binary ") != std::string::npos; 568 extensions.find("GL_OES_get_program_binary ") != std::string::npos;
566 ext.b_GL_OES_mapbuffer = 569 ext.b_GL_OES_mapbuffer =
567 extensions.find("GL_OES_mapbuffer ") != std::string::npos; 570 extensions.find("GL_OES_mapbuffer ") != std::string::npos;
568 ext.b_GL_OES_vertex_array_object = 571 ext.b_GL_OES_vertex_array_object =
569 extensions.find("GL_OES_vertex_array_object ") != std::string::npos; 572 extensions.find("GL_OES_vertex_array_object ") != std::string::npos;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 fn.glCopyBufferSubDataFn = reinterpret_cast<glCopyBufferSubDataProc>( 773 fn.glCopyBufferSubDataFn = reinterpret_cast<glCopyBufferSubDataProc>(
771 GetGLProcAddress("glCopyBufferSubData")); 774 GetGLProcAddress("glCopyBufferSubData"));
772 } 775 }
773 776
774 debug_fn.glCopyTexSubImage3DFn = 0; 777 debug_fn.glCopyTexSubImage3DFn = 0;
775 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) { 778 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
776 fn.glCopyTexSubImage3DFn = reinterpret_cast<glCopyTexSubImage3DProc>( 779 fn.glCopyTexSubImage3DFn = reinterpret_cast<glCopyTexSubImage3DProc>(
777 GetGLProcAddress("glCopyTexSubImage3D")); 780 GetGLProcAddress("glCopyTexSubImage3D"));
778 } 781 }
779 782
783 debug_fn.glCoverageModulationNVFn = 0;
784 if (ext.b_GL_NV_framebuffer_mixed_samples) {
785 fn.glCoverageModulationNVFn = reinterpret_cast<glCoverageModulationNVProc>(
786 GetGLProcAddress("glCoverageModulationNV"));
787 }
788
780 debug_fn.glCoverFillPathInstancedNVFn = 0; 789 debug_fn.glCoverFillPathInstancedNVFn = 0;
781 if (ext.b_GL_NV_path_rendering) { 790 if (ext.b_GL_NV_path_rendering) {
782 fn.glCoverFillPathInstancedNVFn = 791 fn.glCoverFillPathInstancedNVFn =
783 reinterpret_cast<glCoverFillPathInstancedNVProc>( 792 reinterpret_cast<glCoverFillPathInstancedNVProc>(
784 GetGLProcAddress("glCoverFillPathInstancedNV")); 793 GetGLProcAddress("glCoverFillPathInstancedNV"));
785 } 794 }
786 795
787 debug_fn.glCoverFillPathNVFn = 0; 796 debug_fn.glCoverFillPathNVFn = 0;
788 if (ext.b_GL_NV_path_rendering) { 797 if (ext.b_GL_NV_path_rendering) {
789 fn.glCoverFillPathNVFn = reinterpret_cast<glCoverFillPathNVProc>( 798 fn.glCoverFillPathNVFn = reinterpret_cast<glCoverFillPathNVProc>(
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
2500 GLsizei height) { 2509 GLsizei height) {
2501 GL_SERVICE_LOG("glCopyTexSubImage3D" 2510 GL_SERVICE_LOG("glCopyTexSubImage3D"
2502 << "(" << GLEnums::GetStringEnum(target) << ", " << level 2511 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2503 << ", " << xoffset << ", " << yoffset << ", " << zoffset 2512 << ", " << xoffset << ", " << yoffset << ", " << zoffset
2504 << ", " << x << ", " << y << ", " << width << ", " << height 2513 << ", " << x << ", " << y << ", " << width << ", " << height
2505 << ")"); 2514 << ")");
2506 g_driver_gl.debug_fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset, 2515 g_driver_gl.debug_fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset,
2507 zoffset, x, y, width, height); 2516 zoffset, x, y, width, height);
2508 } 2517 }
2509 2518
2519 static void GL_BINDING_CALL Debug_glCoverageModulationNV(GLenum components) {
2520 GL_SERVICE_LOG("glCoverageModulationNV"
2521 << "(" << GLEnums::GetStringEnum(components) << ")");
2522 g_driver_gl.debug_fn.glCoverageModulationNVFn(components);
2523 }
2524
2510 static void GL_BINDING_CALL 2525 static void GL_BINDING_CALL
2511 Debug_glCoverFillPathInstancedNV(GLsizei numPaths, 2526 Debug_glCoverFillPathInstancedNV(GLsizei numPaths,
2512 GLenum pathNameType, 2527 GLenum pathNameType,
2513 const void* paths, 2528 const void* paths,
2514 GLuint pathBase, 2529 GLuint pathBase,
2515 GLenum coverMode, 2530 GLenum coverMode,
2516 GLenum transformType, 2531 GLenum transformType,
2517 const GLfloat* transformValues) { 2532 const GLfloat* transformValues) {
2518 GL_SERVICE_LOG("glCoverFillPathInstancedNV" 2533 GL_SERVICE_LOG("glCoverFillPathInstancedNV"
2519 << "(" << numPaths << ", " 2534 << "(" << numPaths << ", "
(...skipping 2778 matching lines...) Expand 10 before | Expand all | Expand 10 after
5298 fn.glCopyTexImage2DFn = Debug_glCopyTexImage2D; 5313 fn.glCopyTexImage2DFn = Debug_glCopyTexImage2D;
5299 } 5314 }
5300 if (!debug_fn.glCopyTexSubImage2DFn) { 5315 if (!debug_fn.glCopyTexSubImage2DFn) {
5301 debug_fn.glCopyTexSubImage2DFn = fn.glCopyTexSubImage2DFn; 5316 debug_fn.glCopyTexSubImage2DFn = fn.glCopyTexSubImage2DFn;
5302 fn.glCopyTexSubImage2DFn = Debug_glCopyTexSubImage2D; 5317 fn.glCopyTexSubImage2DFn = Debug_glCopyTexSubImage2D;
5303 } 5318 }
5304 if (!debug_fn.glCopyTexSubImage3DFn) { 5319 if (!debug_fn.glCopyTexSubImage3DFn) {
5305 debug_fn.glCopyTexSubImage3DFn = fn.glCopyTexSubImage3DFn; 5320 debug_fn.glCopyTexSubImage3DFn = fn.glCopyTexSubImage3DFn;
5306 fn.glCopyTexSubImage3DFn = Debug_glCopyTexSubImage3D; 5321 fn.glCopyTexSubImage3DFn = Debug_glCopyTexSubImage3D;
5307 } 5322 }
5323 if (!debug_fn.glCoverageModulationNVFn) {
5324 debug_fn.glCoverageModulationNVFn = fn.glCoverageModulationNVFn;
5325 fn.glCoverageModulationNVFn = Debug_glCoverageModulationNV;
5326 }
5308 if (!debug_fn.glCoverFillPathInstancedNVFn) { 5327 if (!debug_fn.glCoverFillPathInstancedNVFn) {
5309 debug_fn.glCoverFillPathInstancedNVFn = fn.glCoverFillPathInstancedNVFn; 5328 debug_fn.glCoverFillPathInstancedNVFn = fn.glCoverFillPathInstancedNVFn;
5310 fn.glCoverFillPathInstancedNVFn = Debug_glCoverFillPathInstancedNV; 5329 fn.glCoverFillPathInstancedNVFn = Debug_glCoverFillPathInstancedNV;
5311 } 5330 }
5312 if (!debug_fn.glCoverFillPathNVFn) { 5331 if (!debug_fn.glCoverFillPathNVFn) {
5313 debug_fn.glCoverFillPathNVFn = fn.glCoverFillPathNVFn; 5332 debug_fn.glCoverFillPathNVFn = fn.glCoverFillPathNVFn;
5314 fn.glCoverFillPathNVFn = Debug_glCoverFillPathNV; 5333 fn.glCoverFillPathNVFn = Debug_glCoverFillPathNV;
5315 } 5334 }
5316 if (!debug_fn.glCoverStrokePathInstancedNVFn) { 5335 if (!debug_fn.glCoverStrokePathInstancedNVFn) {
5317 debug_fn.glCoverStrokePathInstancedNVFn = fn.glCoverStrokePathInstancedNVFn; 5336 debug_fn.glCoverStrokePathInstancedNVFn = fn.glCoverStrokePathInstancedNVFn;
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after
6721 GLint yoffset, 6740 GLint yoffset,
6722 GLint zoffset, 6741 GLint zoffset,
6723 GLint x, 6742 GLint x,
6724 GLint y, 6743 GLint y,
6725 GLsizei width, 6744 GLsizei width,
6726 GLsizei height) { 6745 GLsizei height) {
6727 driver_->fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x, 6746 driver_->fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x,
6728 y, width, height); 6747 y, width, height);
6729 } 6748 }
6730 6749
6750 void GLApiBase::glCoverageModulationNVFn(GLenum components) {
6751 driver_->fn.glCoverageModulationNVFn(components);
6752 }
6753
6731 void GLApiBase::glCoverFillPathInstancedNVFn(GLsizei numPaths, 6754 void GLApiBase::glCoverFillPathInstancedNVFn(GLsizei numPaths,
6732 GLenum pathNameType, 6755 GLenum pathNameType,
6733 const void* paths, 6756 const void* paths,
6734 GLuint pathBase, 6757 GLuint pathBase,
6735 GLenum coverMode, 6758 GLenum coverMode,
6736 GLenum transformType, 6759 GLenum transformType,
6737 const GLfloat* transformValues) { 6760 const GLfloat* transformValues) {
6738 driver_->fn.glCoverFillPathInstancedNVFn(numPaths, pathNameType, paths, 6761 driver_->fn.glCoverFillPathInstancedNVFn(numPaths, pathNameType, paths,
6739 pathBase, coverMode, transformType, 6762 pathBase, coverMode, transformType,
6740 transformValues); 6763 transformValues);
(...skipping 1898 matching lines...) Expand 10 before | Expand all | Expand 10 after
8639 GLint zoffset, 8662 GLint zoffset,
8640 GLint x, 8663 GLint x,
8641 GLint y, 8664 GLint y,
8642 GLsizei width, 8665 GLsizei width,
8643 GLsizei height) { 8666 GLsizei height) {
8644 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage3D") 8667 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage3D")
8645 gl_api_->glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x, y, 8668 gl_api_->glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x, y,
8646 width, height); 8669 width, height);
8647 } 8670 }
8648 8671
8672 void TraceGLApi::glCoverageModulationNVFn(GLenum components) {
8673 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCoverageModulationNV")
8674 gl_api_->glCoverageModulationNVFn(components);
8675 }
8676
8649 void TraceGLApi::glCoverFillPathInstancedNVFn(GLsizei numPaths, 8677 void TraceGLApi::glCoverFillPathInstancedNVFn(GLsizei numPaths,
8650 GLenum pathNameType, 8678 GLenum pathNameType,
8651 const void* paths, 8679 const void* paths,
8652 GLuint pathBase, 8680 GLuint pathBase,
8653 GLenum coverMode, 8681 GLenum coverMode,
8654 GLenum transformType, 8682 GLenum transformType,
8655 const GLfloat* transformValues) { 8683 const GLfloat* transformValues) {
8656 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCoverFillPathInstancedNV") 8684 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCoverFillPathInstancedNV")
8657 gl_api_->glCoverFillPathInstancedNVFn(numPaths, pathNameType, paths, pathBase, 8685 gl_api_->glCoverFillPathInstancedNVFn(numPaths, pathNameType, paths, pathBase,
8658 coverMode, transformType, 8686 coverMode, transformType,
(...skipping 2226 matching lines...) Expand 10 before | Expand all | Expand 10 after
10885 GLint x, 10913 GLint x,
10886 GLint y, 10914 GLint y,
10887 GLsizei width, 10915 GLsizei width,
10888 GLsizei height) { 10916 GLsizei height) {
10889 NOTREACHED() 10917 NOTREACHED()
10890 << "Trying to call glCopyTexSubImage3D() without current GL context"; 10918 << "Trying to call glCopyTexSubImage3D() without current GL context";
10891 LOG(ERROR) 10919 LOG(ERROR)
10892 << "Trying to call glCopyTexSubImage3D() without current GL context"; 10920 << "Trying to call glCopyTexSubImage3D() without current GL context";
10893 } 10921 }
10894 10922
10923 void NoContextGLApi::glCoverageModulationNVFn(GLenum components) {
10924 NOTREACHED()
10925 << "Trying to call glCoverageModulationNV() without current GL context";
10926 LOG(ERROR)
10927 << "Trying to call glCoverageModulationNV() without current GL context";
10928 }
10929
10895 void NoContextGLApi::glCoverFillPathInstancedNVFn( 10930 void NoContextGLApi::glCoverFillPathInstancedNVFn(
10896 GLsizei numPaths, 10931 GLsizei numPaths,
10897 GLenum pathNameType, 10932 GLenum pathNameType,
10898 const void* paths, 10933 const void* paths,
10899 GLuint pathBase, 10934 GLuint pathBase,
10900 GLenum coverMode, 10935 GLenum coverMode,
10901 GLenum transformType, 10936 GLenum transformType,
10902 const GLfloat* transformValues) { 10937 const GLfloat* transformValues) {
10903 NOTREACHED() << "Trying to call glCoverFillPathInstancedNV() without current " 10938 NOTREACHED() << "Trying to call glCoverFillPathInstancedNV() without current "
10904 "GL context"; 10939 "GL context";
(...skipping 2088 matching lines...) Expand 10 before | Expand all | Expand 10 after
12993 13028
12994 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, 13029 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync,
12995 GLbitfield flags, 13030 GLbitfield flags,
12996 GLuint64 timeout) { 13031 GLuint64 timeout) {
12997 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; 13032 NOTREACHED() << "Trying to call glWaitSync() without current GL context";
12998 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; 13033 LOG(ERROR) << "Trying to call glWaitSync() without current GL context";
12999 return static_cast<GLenum>(0); 13034 return static_cast<GLenum>(0);
13000 } 13035 }
13001 13036
13002 } // namespace gfx 13037 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698