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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/client/gles2_c_lib_autogen.h
diff --git a/gpu/command_buffer/client/gles2_c_lib_autogen.h b/gpu/command_buffer/client/gles2_c_lib_autogen.h
index 60d32f18dbe8bad39f74c2c32853b1802d1b8450..c19e41df908eda0af2bcab653fa815432c3ef1ec 100644
--- a/gpu/command_buffer/client/gles2_c_lib_autogen.h
+++ b/gpu/command_buffer/client/gles2_c_lib_autogen.h
@@ -967,6 +967,113 @@ void GLES2MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) {
void GLES2MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
gles2::GetGLContext()->MatrixLoadIdentityCHROMIUM(matrixMode);
}
+GLuint GLES2GenPathsCHROMIUM(GLsizei range) {
+ return gles2::GetGLContext()->GenPathsCHROMIUM(range);
+}
+void GLES2DeletePathsCHROMIUM(GLuint path, GLsizei range) {
+ gles2::GetGLContext()->DeletePathsCHROMIUM(path, range);
+}
+void GLES2PathCommandsCHROMIUM(GLuint path,
+ GLsizei numCommands,
+ const GLubyte* commands,
+ GLsizei numCoords,
+ GLenum coordType,
+ const void* coords) {
+ gles2::GetGLContext()->PathCommandsCHROMIUM(
+ path, numCommands, commands, numCoords, coordType, coords);
+}
+void GLES2PathParameterfCHROMIUM(GLuint path, GLenum pname, GLfloat value) {
+ gles2::GetGLContext()->PathParameterfCHROMIUM(path, pname, value);
+}
+void GLES2PathParameteriCHROMIUM(GLuint path, GLenum pname, GLint value) {
+ gles2::GetGLContext()->PathParameteriCHROMIUM(path, pname, value);
+}
+void GLES2PathStencilFuncCHROMIUM(GLenum func, GLint ref, GLuint mask) {
+ gles2::GetGLContext()->PathStencilFuncCHROMIUM(func, ref, mask);
+}
+void GLES2StencilFillPathCHROMIUM(GLuint path, GLenum fillMode, GLuint mask) {
+ gles2::GetGLContext()->StencilFillPathCHROMIUM(path, fillMode, mask);
+}
+void GLES2StencilFillPathInstancedCHROMIUM(GLsizei numPaths,
+ GLenum pathNameType,
+ const void* paths,
+ GLuint pathBase,
+ GLenum fillMode,
+ GLuint mask,
+ GLenum transformType,
+ const GLfloat* transformValues) {
+ gles2::GetGLContext()->StencilFillPathInstancedCHROMIUM(numPaths,
+ pathNameType,
+ paths,
+ pathBase,
+ fillMode,
+ mask,
+ transformType,
+ transformValues);
+}
+void GLES2StencilStrokePathCHROMIUM(GLuint path, GLint reference, GLuint mask) {
+ gles2::GetGLContext()->StencilStrokePathCHROMIUM(path, reference, mask);
+}
+void GLES2StencilStrokePathInstancedCHROMIUM(GLsizei numPaths,
+ GLenum pathNameType,
+ const void* paths,
+ GLuint pathBase,
+ GLint ref,
+ GLuint mask,
+ GLenum transformType,
+ const GLfloat* transformValues) {
+ gles2::GetGLContext()->StencilStrokePathInstancedCHROMIUM(numPaths,
+ pathNameType,
+ paths,
+ pathBase,
+ ref,
+ mask,
+ transformType,
+ transformValues);
+}
+void GLES2PathTexGenCHROMIUM(GLenum texCoordSet,
+ GLenum genMode,
+ GLint components,
+ const GLfloat* coeffs) {
+ gles2::GetGLContext()->PathTexGenCHROMIUM(
+ texCoordSet, genMode, components, coeffs);
+}
+void GLES2CoverFillPathCHROMIUM(GLuint path, GLenum coverMode) {
+ gles2::GetGLContext()->CoverFillPathCHROMIUM(path, coverMode);
+}
+void GLES2CoverFillPathInstancedCHROMIUM(GLsizei numPaths,
+ GLenum pathNameType,
+ const void* paths,
+ GLuint pathBase,
+ GLenum coverMode,
+ GLenum transformType,
+ const GLfloat* transformValues) {
+ gles2::GetGLContext()->CoverFillPathInstancedCHROMIUM(numPaths,
+ pathNameType,
+ paths,
+ pathBase,
+ coverMode,
+ transformType,
+ transformValues);
+}
+void GLES2CoverStrokePathCHROMIUM(GLuint path, GLenum coverMode) {
+ gles2::GetGLContext()->CoverStrokePathCHROMIUM(path, coverMode);
+}
+void GLES2CoverStrokePathInstancedCHROMIUM(GLsizei numPaths,
+ GLenum pathNameType,
+ const void* paths,
+ GLuint pathBase,
+ GLenum coverMode,
+ GLenum transformType,
+ const GLfloat* transformValues) {
+ gles2::GetGLContext()->CoverStrokePathInstancedCHROMIUM(numPaths,
+ pathNameType,
+ paths,
+ pathBase,
+ coverMode,
+ transformType,
+ transformValues);
+}
namespace gles2 {
@@ -1748,6 +1855,67 @@ extern const NameToFunc g_gles2_function_table[] = {
reinterpret_cast<GLES2FunctionPointer>(glMatrixLoadIdentityCHROMIUM),
},
{
+ "glGenPathsCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glGenPathsCHROMIUM),
+ },
+ {
+ "glDeletePathsCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glDeletePathsCHROMIUM),
+ },
+ {
+ "glPathCommandsCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glPathCommandsCHROMIUM),
+ },
+ {
+ "glPathParameterfCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glPathParameterfCHROMIUM),
+ },
+ {
+ "glPathParameteriCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glPathParameteriCHROMIUM),
+ },
+ {
+ "glPathStencilFuncCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glPathStencilFuncCHROMIUM),
+ },
+ {
+ "glStencilFillPathCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glStencilFillPathCHROMIUM),
+ },
+ {
+ "glStencilFillPathInstancedCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glStencilFillPathInstancedCHROMIUM),
+ },
+ {
+ "glStencilStrokePathCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glStencilStrokePathCHROMIUM),
+ },
+ {
+ "glStencilStrokePathInstancedCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(
+ glStencilStrokePathInstancedCHROMIUM),
+ },
+ {
+ "glPathTexGenCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glPathTexGenCHROMIUM),
+ },
+ {
+ "glCoverFillPathCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glCoverFillPathCHROMIUM),
+ },
+ {
+ "glCoverFillPathInstancedCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glCoverFillPathInstancedCHROMIUM),
+ },
+ {
+ "glCoverStrokePathCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glCoverStrokePathCHROMIUM),
+ },
+ {
+ "glCoverStrokePathInstancedCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glCoverStrokePathInstancedCHROMIUM),
+ },
+ {
NULL, NULL,
},
};

Powered by Google App Engine
This is Rietveld 408576698