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

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

Issue 169403005: command_buffer: Implement path rendering functions for CHROMIUM_path_rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nv-pr-02-texgen
Patch Set: improve parameter validation and write up the extension .txt file Created 6 years, 8 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 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 uv_y, 960 uv_y,
961 uv_width, 961 uv_width,
962 uv_height); 962 uv_height);
963 } 963 }
964 void GLES2MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) { 964 void GLES2MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) {
965 gles2::GetGLContext()->MatrixLoadfCHROMIUM(matrixMode, m); 965 gles2::GetGLContext()->MatrixLoadfCHROMIUM(matrixMode, m);
966 } 966 }
967 void GLES2MatrixLoadIdentityCHROMIUM(GLenum matrixMode) { 967 void GLES2MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
968 gles2::GetGLContext()->MatrixLoadIdentityCHROMIUM(matrixMode); 968 gles2::GetGLContext()->MatrixLoadIdentityCHROMIUM(matrixMode);
969 } 969 }
970 GLuint GLES2GenPathsCHROMIUM(GLsizei range) {
971 return gles2::GetGLContext()->GenPathsCHROMIUM(range);
972 }
973 void GLES2DeletePathsCHROMIUM(GLuint path, GLsizei range) {
974 gles2::GetGLContext()->DeletePathsCHROMIUM(path, range);
975 }
976 void GLES2PathCommandsCHROMIUM(GLuint path,
977 GLsizei numCommands,
978 const GLubyte* commands,
979 GLsizei numCoords,
980 GLenum coordType,
981 const void* coords) {
982 gles2::GetGLContext()->PathCommandsCHROMIUM(
983 path, numCommands, commands, numCoords, coordType, coords);
984 }
985 void GLES2PathParameterfCHROMIUM(GLuint path, GLenum pname, GLfloat value) {
986 gles2::GetGLContext()->PathParameterfCHROMIUM(path, pname, value);
987 }
988 void GLES2PathParameteriCHROMIUM(GLuint path, GLenum pname, GLint value) {
989 gles2::GetGLContext()->PathParameteriCHROMIUM(path, pname, value);
990 }
991 void GLES2PathStencilFuncCHROMIUM(GLenum func, GLint ref, GLuint mask) {
992 gles2::GetGLContext()->PathStencilFuncCHROMIUM(func, ref, mask);
993 }
994 void GLES2StencilFillPathCHROMIUM(GLuint path, GLenum fillMode, GLuint mask) {
995 gles2::GetGLContext()->StencilFillPathCHROMIUM(path, fillMode, mask);
996 }
997 void GLES2StencilFillPathInstancedCHROMIUM(GLsizei numPaths,
998 GLenum pathNameType,
999 const void* paths,
1000 GLuint pathBase,
1001 GLenum fillMode,
1002 GLuint mask,
1003 GLenum transformType,
1004 const GLfloat* transformValues) {
1005 gles2::GetGLContext()->StencilFillPathInstancedCHROMIUM(numPaths,
1006 pathNameType,
1007 paths,
1008 pathBase,
1009 fillMode,
1010 mask,
1011 transformType,
1012 transformValues);
1013 }
1014 void GLES2StencilStrokePathCHROMIUM(GLuint path, GLint reference, GLuint mask) {
1015 gles2::GetGLContext()->StencilStrokePathCHROMIUM(path, reference, mask);
1016 }
1017 void GLES2StencilStrokePathInstancedCHROMIUM(GLsizei numPaths,
1018 GLenum pathNameType,
1019 const void* paths,
1020 GLuint pathBase,
1021 GLint ref,
1022 GLuint mask,
1023 GLenum transformType,
1024 const GLfloat* transformValues) {
1025 gles2::GetGLContext()->StencilStrokePathInstancedCHROMIUM(numPaths,
1026 pathNameType,
1027 paths,
1028 pathBase,
1029 ref,
1030 mask,
1031 transformType,
1032 transformValues);
1033 }
1034 void GLES2PathTexGenCHROMIUM(GLenum texCoordSet,
1035 GLenum genMode,
1036 GLint components,
1037 const GLfloat* coeffs) {
1038 gles2::GetGLContext()->PathTexGenCHROMIUM(
1039 texCoordSet, genMode, components, coeffs);
1040 }
1041 void GLES2CoverFillPathCHROMIUM(GLuint path, GLenum coverMode) {
1042 gles2::GetGLContext()->CoverFillPathCHROMIUM(path, coverMode);
1043 }
1044 void GLES2CoverFillPathInstancedCHROMIUM(GLsizei numPaths,
1045 GLenum pathNameType,
1046 const void* paths,
1047 GLuint pathBase,
1048 GLenum coverMode,
1049 GLenum transformType,
1050 const GLfloat* transformValues) {
1051 gles2::GetGLContext()->CoverFillPathInstancedCHROMIUM(numPaths,
1052 pathNameType,
1053 paths,
1054 pathBase,
1055 coverMode,
1056 transformType,
1057 transformValues);
1058 }
1059 void GLES2CoverStrokePathCHROMIUM(GLuint path, GLenum coverMode) {
1060 gles2::GetGLContext()->CoverStrokePathCHROMIUM(path, coverMode);
1061 }
1062 void GLES2CoverStrokePathInstancedCHROMIUM(GLsizei numPaths,
1063 GLenum pathNameType,
1064 const void* paths,
1065 GLuint pathBase,
1066 GLenum coverMode,
1067 GLenum transformType,
1068 const GLfloat* transformValues) {
1069 gles2::GetGLContext()->CoverStrokePathInstancedCHROMIUM(numPaths,
1070 pathNameType,
1071 paths,
1072 pathBase,
1073 coverMode,
1074 transformType,
1075 transformValues);
1076 }
970 1077
971 namespace gles2 { 1078 namespace gles2 {
972 1079
973 extern const NameToFunc g_gles2_function_table[] = { 1080 extern const NameToFunc g_gles2_function_table[] = {
974 { 1081 {
975 "glActiveTexture", reinterpret_cast<GLES2FunctionPointer>(glActiveTexture), 1082 "glActiveTexture", reinterpret_cast<GLES2FunctionPointer>(glActiveTexture),
976 }, 1083 },
977 { 1084 {
978 "glAttachShader", reinterpret_cast<GLES2FunctionPointer>(glAttachShader), 1085 "glAttachShader", reinterpret_cast<GLES2FunctionPointer>(glAttachShader),
979 }, 1086 },
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
1741 }, 1848 },
1742 { 1849 {
1743 "glMatrixLoadfCHROMIUM", 1850 "glMatrixLoadfCHROMIUM",
1744 reinterpret_cast<GLES2FunctionPointer>(glMatrixLoadfCHROMIUM), 1851 reinterpret_cast<GLES2FunctionPointer>(glMatrixLoadfCHROMIUM),
1745 }, 1852 },
1746 { 1853 {
1747 "glMatrixLoadIdentityCHROMIUM", 1854 "glMatrixLoadIdentityCHROMIUM",
1748 reinterpret_cast<GLES2FunctionPointer>(glMatrixLoadIdentityCHROMIUM), 1855 reinterpret_cast<GLES2FunctionPointer>(glMatrixLoadIdentityCHROMIUM),
1749 }, 1856 },
1750 { 1857 {
1858 "glGenPathsCHROMIUM",
1859 reinterpret_cast<GLES2FunctionPointer>(glGenPathsCHROMIUM),
1860 },
1861 {
1862 "glDeletePathsCHROMIUM",
1863 reinterpret_cast<GLES2FunctionPointer>(glDeletePathsCHROMIUM),
1864 },
1865 {
1866 "glPathCommandsCHROMIUM",
1867 reinterpret_cast<GLES2FunctionPointer>(glPathCommandsCHROMIUM),
1868 },
1869 {
1870 "glPathParameterfCHROMIUM",
1871 reinterpret_cast<GLES2FunctionPointer>(glPathParameterfCHROMIUM),
1872 },
1873 {
1874 "glPathParameteriCHROMIUM",
1875 reinterpret_cast<GLES2FunctionPointer>(glPathParameteriCHROMIUM),
1876 },
1877 {
1878 "glPathStencilFuncCHROMIUM",
1879 reinterpret_cast<GLES2FunctionPointer>(glPathStencilFuncCHROMIUM),
1880 },
1881 {
1882 "glStencilFillPathCHROMIUM",
1883 reinterpret_cast<GLES2FunctionPointer>(glStencilFillPathCHROMIUM),
1884 },
1885 {
1886 "glStencilFillPathInstancedCHROMIUM",
1887 reinterpret_cast<GLES2FunctionPointer>(glStencilFillPathInstancedCHROMIUM),
1888 },
1889 {
1890 "glStencilStrokePathCHROMIUM",
1891 reinterpret_cast<GLES2FunctionPointer>(glStencilStrokePathCHROMIUM),
1892 },
1893 {
1894 "glStencilStrokePathInstancedCHROMIUM",
1895 reinterpret_cast<GLES2FunctionPointer>(
1896 glStencilStrokePathInstancedCHROMIUM),
1897 },
1898 {
1899 "glPathTexGenCHROMIUM",
1900 reinterpret_cast<GLES2FunctionPointer>(glPathTexGenCHROMIUM),
1901 },
1902 {
1903 "glCoverFillPathCHROMIUM",
1904 reinterpret_cast<GLES2FunctionPointer>(glCoverFillPathCHROMIUM),
1905 },
1906 {
1907 "glCoverFillPathInstancedCHROMIUM",
1908 reinterpret_cast<GLES2FunctionPointer>(glCoverFillPathInstancedCHROMIUM),
1909 },
1910 {
1911 "glCoverStrokePathCHROMIUM",
1912 reinterpret_cast<GLES2FunctionPointer>(glCoverStrokePathCHROMIUM),
1913 },
1914 {
1915 "glCoverStrokePathInstancedCHROMIUM",
1916 reinterpret_cast<GLES2FunctionPointer>(glCoverStrokePathInstancedCHROMIUM),
1917 },
1918 {
1751 NULL, NULL, 1919 NULL, NULL,
1752 }, 1920 },
1753 }; 1921 };
1754 1922
1755 } // namespace gles2 1923 } // namespace gles2
1756 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ 1924 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698