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

Side by Side Diff: gpu/command_buffer/client/gles2_c_lib_autogen.h

Issue 14456004: GPU client side changes for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Add missing parameter in GLES2Implementation ctor in GLES2Implementation unittest Created 7 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 // These functions emulate GLES2 over command buffers. 9 // These functions emulate GLES2 over command buffers.
10 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ 10 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 } 588 }
589 GLboolean GLES2EnableFeatureCHROMIUM(const char* feature) { 589 GLboolean GLES2EnableFeatureCHROMIUM(const char* feature) {
590 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature); 590 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature);
591 } 591 }
592 void* GLES2MapBufferCHROMIUM(GLuint target, GLenum access) { 592 void* GLES2MapBufferCHROMIUM(GLuint target, GLenum access) {
593 return gles2::GetGLContext()->MapBufferCHROMIUM(target, access); 593 return gles2::GetGLContext()->MapBufferCHROMIUM(target, access);
594 } 594 }
595 GLboolean GLES2UnmapBufferCHROMIUM(GLuint target) { 595 GLboolean GLES2UnmapBufferCHROMIUM(GLuint target) {
596 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target); 596 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target);
597 } 597 }
598 void* GLES2MapImageCHROMIUM(GLuint image_id, GLenum access) {
599 return gles2::GetGLContext()->MapImageCHROMIUM(image_id, access);
600 }
601 void GLES2UnmapImageCHROMIUM(GLuint image_id) {
602 gles2::GetGLContext()->UnmapImageCHROMIUM(image_id);
603 }
598 void* GLES2MapBufferSubDataCHROMIUM( 604 void* GLES2MapBufferSubDataCHROMIUM(
599 GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) { 605 GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) {
600 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM( 606 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM(
601 target, offset, size, access); 607 target, offset, size, access);
602 } 608 }
603 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem) { 609 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem) {
604 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem); 610 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem);
605 } 611 }
606 void* GLES2MapTexSubImage2DCHROMIUM( 612 void* GLES2MapTexSubImage2DCHROMIUM(
607 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 613 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
(...skipping 24 matching lines...) Expand all
632 void GLES2GetProgramInfoCHROMIUM( 638 void GLES2GetProgramInfoCHROMIUM(
633 GLuint program, GLsizei bufsize, GLsizei* size, void* info) { 639 GLuint program, GLsizei bufsize, GLsizei* size, void* info) {
634 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program, bufsize, size, info); 640 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program, bufsize, size, info);
635 } 641 }
636 GLuint GLES2CreateStreamTextureCHROMIUM(GLuint texture) { 642 GLuint GLES2CreateStreamTextureCHROMIUM(GLuint texture) {
637 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture); 643 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture);
638 } 644 }
639 void GLES2DestroyStreamTextureCHROMIUM(GLuint texture) { 645 void GLES2DestroyStreamTextureCHROMIUM(GLuint texture) {
640 gles2::GetGLContext()->DestroyStreamTextureCHROMIUM(texture); 646 gles2::GetGLContext()->DestroyStreamTextureCHROMIUM(texture);
641 } 647 }
648 GLuint GLES2CreateImageCHROMIUM(
649 GLsizei width, GLsizei height, GLenum internalformat) {
650 return gles2::GetGLContext()->CreateImageCHROMIUM(
651 width, height, internalformat);
652 }
653 void GLES2DestroyImageCHROMIUM(GLuint image_id) {
654 gles2::GetGLContext()->DestroyImageCHROMIUM(image_id);
655 }
656 void GLES2GetImageParameterivCHROMIUM(
657 GLuint image_id, GLenum pname, GLint* params) {
658 gles2::GetGLContext()->GetImageParameterivCHROMIUM(image_id, pname, params);
659 }
642 void GLES2GetTranslatedShaderSourceANGLE( 660 void GLES2GetTranslatedShaderSourceANGLE(
643 GLuint shader, GLsizei bufsize, GLsizei* length, char* source) { 661 GLuint shader, GLsizei bufsize, GLsizei* length, char* source) {
644 gles2::GetGLContext()->GetTranslatedShaderSourceANGLE( 662 gles2::GetGLContext()->GetTranslatedShaderSourceANGLE(
645 shader, bufsize, length, source); 663 shader, bufsize, length, source);
646 } 664 }
647 void GLES2PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) { 665 void GLES2PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) {
648 gles2::GetGLContext()->PostSubBufferCHROMIUM(x, y, width, height); 666 gles2::GetGLContext()->PostSubBufferCHROMIUM(x, y, width, height);
649 } 667 }
650 void GLES2TexImageIOSurface2DCHROMIUM( 668 void GLES2TexImageIOSurface2DCHROMIUM(
651 GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId, 669 GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId,
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 { "glDeleteSharedIdsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1017 { "glDeleteSharedIdsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1000 glDeleteSharedIdsCHROMIUM), }, 1018 glDeleteSharedIdsCHROMIUM), },
1001 { "glRegisterSharedIdsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1019 { "glRegisterSharedIdsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1002 glRegisterSharedIdsCHROMIUM), }, 1020 glRegisterSharedIdsCHROMIUM), },
1003 { "glEnableFeatureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1021 { "glEnableFeatureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1004 glEnableFeatureCHROMIUM), }, 1022 glEnableFeatureCHROMIUM), },
1005 { "glMapBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1023 { "glMapBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1006 glMapBufferCHROMIUM), }, 1024 glMapBufferCHROMIUM), },
1007 { "glUnmapBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1025 { "glUnmapBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1008 glUnmapBufferCHROMIUM), }, 1026 glUnmapBufferCHROMIUM), },
1027 { "glMapImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1028 glMapImageCHROMIUM), },
1029 { "glUnmapImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1030 glUnmapImageCHROMIUM), },
1009 { "glMapBufferSubDataCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1031 { "glMapBufferSubDataCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1010 glMapBufferSubDataCHROMIUM), }, 1032 glMapBufferSubDataCHROMIUM), },
1011 { "glUnmapBufferSubDataCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1033 { "glUnmapBufferSubDataCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1012 glUnmapBufferSubDataCHROMIUM), }, 1034 glUnmapBufferSubDataCHROMIUM), },
1013 { "glMapTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1035 { "glMapTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1014 glMapTexSubImage2DCHROMIUM), }, 1036 glMapTexSubImage2DCHROMIUM), },
1015 { "glUnmapTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1037 { "glUnmapTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1016 glUnmapTexSubImage2DCHROMIUM), }, 1038 glUnmapTexSubImage2DCHROMIUM), },
1017 { "glResizeCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1039 { "glResizeCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1018 glResizeCHROMIUM), }, 1040 glResizeCHROMIUM), },
1019 { "glGetRequestableExtensionsCHROMIUM", reinterpret_cast<GLES2FunctionPointer> (glGetRequestableExtensionsCHROMIUM), }, // NOLINT 1041 { "glGetRequestableExtensionsCHROMIUM", reinterpret_cast<GLES2FunctionPointer> (glGetRequestableExtensionsCHROMIUM), }, // NOLINT
1020 { "glRequestExtensionCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1042 { "glRequestExtensionCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1021 glRequestExtensionCHROMIUM), }, 1043 glRequestExtensionCHROMIUM), },
1022 { "glRateLimitOffscreenContextCHROMIUM", reinterpret_cast<GLES2FunctionPointer >(glRateLimitOffscreenContextCHROMIUM), }, // NOLINT 1044 { "glRateLimitOffscreenContextCHROMIUM", reinterpret_cast<GLES2FunctionPointer >(glRateLimitOffscreenContextCHROMIUM), }, // NOLINT
1023 { "glGetMultipleIntegervCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1045 { "glGetMultipleIntegervCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1024 glGetMultipleIntegervCHROMIUM), }, 1046 glGetMultipleIntegervCHROMIUM), },
1025 { "glGetProgramInfoCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1047 { "glGetProgramInfoCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1026 glGetProgramInfoCHROMIUM), }, 1048 glGetProgramInfoCHROMIUM), },
1027 { "glCreateStreamTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1049 { "glCreateStreamTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1028 glCreateStreamTextureCHROMIUM), }, 1050 glCreateStreamTextureCHROMIUM), },
1029 { "glDestroyStreamTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1051 { "glDestroyStreamTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1030 glDestroyStreamTextureCHROMIUM), }, 1052 glDestroyStreamTextureCHROMIUM), },
1053 { "glCreateImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1054 glCreateImageCHROMIUM), },
1055 { "glDestroyImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1056 glDestroyImageCHROMIUM), },
1057 { "glGetImageParameterivCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1058 glGetImageParameterivCHROMIUM), },
1031 { "glGetTranslatedShaderSourceANGLE", reinterpret_cast<GLES2FunctionPointer>( 1059 { "glGetTranslatedShaderSourceANGLE", reinterpret_cast<GLES2FunctionPointer>(
1032 glGetTranslatedShaderSourceANGLE), }, 1060 glGetTranslatedShaderSourceANGLE), },
1033 { "glPostSubBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1061 { "glPostSubBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1034 glPostSubBufferCHROMIUM), }, 1062 glPostSubBufferCHROMIUM), },
1035 { "glTexImageIOSurface2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1063 { "glTexImageIOSurface2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1036 glTexImageIOSurface2DCHROMIUM), }, 1064 glTexImageIOSurface2DCHROMIUM), },
1037 { "glCopyTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1065 { "glCopyTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1038 glCopyTextureCHROMIUM), }, 1066 glCopyTextureCHROMIUM), },
1039 { "glDrawArraysInstancedANGLE", reinterpret_cast<GLES2FunctionPointer>( 1067 { "glDrawArraysInstancedANGLE", reinterpret_cast<GLES2FunctionPointer>(
1040 glDrawArraysInstancedANGLE), }, 1068 glDrawArraysInstancedANGLE), },
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 { "glWaitSyncPointCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1101 { "glWaitSyncPointCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1074 glWaitSyncPointCHROMIUM), }, 1102 glWaitSyncPointCHROMIUM), },
1075 { "glDrawBuffersEXT", reinterpret_cast<GLES2FunctionPointer>( 1103 { "glDrawBuffersEXT", reinterpret_cast<GLES2FunctionPointer>(
1076 glDrawBuffersEXT), }, 1104 glDrawBuffersEXT), },
1077 { NULL, NULL, }, 1105 { NULL, NULL, },
1078 }; 1106 };
1079 1107
1080 } // namespace gles2 1108 } // namespace gles2
1081 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ 1109 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_
1082 1110
OLDNEW
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698