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

Unified Diff: gpu/command_buffer/client/gles2_cmd_helper_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_cmd_helper_autogen.h
diff --git a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
index 7f32b1d081ca970ddcd0410c98298c82f1a739f0..e20182efda8312768db864288808993cd7a9373d 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -2288,4 +2288,212 @@ void MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
}
}
+void GenPathsCHROMIUM(GLsizei range,
+ uint32 client_ids_shm_id,
+ uint32 client_ids_shm_offset) {
+ gles2::cmds::GenPathsCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::GenPathsCHROMIUM>();
+ if (c) {
+ c->Init(range, client_ids_shm_id, client_ids_shm_offset);
+ }
+}
+
+void DeletePathsCHROMIUM(GLuint path, GLsizei range) {
+ gles2::cmds::DeletePathsCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::DeletePathsCHROMIUM>();
+ if (c) {
+ c->Init(path, range);
+ }
+}
+
+void PathCommandsCHROMIUM(GLuint path,
+ GLsizei numCommands,
+ uint32 commands_shm_id,
+ uint32 commands_shm_offset,
+ GLsizei numCoords,
+ GLenum coordType,
+ uint32 coords_shm_id,
+ uint32 coords_shm_offset) {
+ gles2::cmds::PathCommandsCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::PathCommandsCHROMIUM>();
+ if (c) {
+ c->Init(path,
+ numCommands,
+ commands_shm_id,
+ commands_shm_offset,
+ numCoords,
+ coordType,
+ coords_shm_id,
+ coords_shm_offset);
+ }
+}
+
+void PathParameterfCHROMIUM(GLuint path, GLenum pname, GLfloat value) {
+ gles2::cmds::PathParameterfCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::PathParameterfCHROMIUM>();
+ if (c) {
+ c->Init(path, pname, value);
+ }
+}
+
+void PathParameteriCHROMIUM(GLuint path, GLenum pname, GLint value) {
+ gles2::cmds::PathParameteriCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::PathParameteriCHROMIUM>();
+ if (c) {
+ c->Init(path, pname, value);
+ }
+}
+
+void PathStencilFuncCHROMIUM(GLenum func, GLint ref, GLuint mask) {
+ gles2::cmds::PathStencilFuncCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::PathStencilFuncCHROMIUM>();
+ if (c) {
+ c->Init(func, ref, mask);
+ }
+}
+
+void StencilFillPathCHROMIUM(GLuint path, GLenum fillMode, GLuint mask) {
+ gles2::cmds::StencilFillPathCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::StencilFillPathCHROMIUM>();
+ if (c) {
+ c->Init(path, fillMode, mask);
+ }
+}
+
+void StencilFillPathInstancedCHROMIUM(GLsizei numPaths,
+ GLenum pathNameType,
+ uint32 paths_shm_id,
+ uint32 paths_shm_offset,
+ GLuint pathBase,
+ GLenum fillMode,
+ GLuint mask,
+ GLenum transformType,
+ uint32 transformValues_shm_id,
+ uint32 transformValues_shm_offset) {
+ gles2::cmds::StencilFillPathInstancedCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::StencilFillPathInstancedCHROMIUM>();
+ if (c) {
+ c->Init(numPaths,
+ pathNameType,
+ paths_shm_id,
+ paths_shm_offset,
+ pathBase,
+ fillMode,
+ mask,
+ transformType,
+ transformValues_shm_id,
+ transformValues_shm_offset);
+ }
+}
+
+void StencilStrokePathCHROMIUM(GLuint path, GLint reference, GLuint mask) {
+ gles2::cmds::StencilStrokePathCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::StencilStrokePathCHROMIUM>();
+ if (c) {
+ c->Init(path, reference, mask);
+ }
+}
+
+void StencilStrokePathInstancedCHROMIUM(GLsizei numPaths,
+ GLenum pathNameType,
+ uint32 paths_shm_id,
+ uint32 paths_shm_offset,
+ GLuint pathBase,
+ GLint ref,
+ GLuint mask,
+ GLenum transformType,
+ uint32 transformValues_shm_id,
+ uint32 transformValues_shm_offset) {
+ gles2::cmds::StencilStrokePathInstancedCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::StencilStrokePathInstancedCHROMIUM>();
+ if (c) {
+ c->Init(numPaths,
+ pathNameType,
+ paths_shm_id,
+ paths_shm_offset,
+ pathBase,
+ ref,
+ mask,
+ transformType,
+ transformValues_shm_id,
+ transformValues_shm_offset);
+ }
+}
+
+void PathTexGenCHROMIUM(GLenum texCoordSet,
+ GLenum genMode,
+ GLint components,
+ uint32 coeffs_shm_id,
+ uint32 coeffs_shm_offset) {
+ gles2::cmds::PathTexGenCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::PathTexGenCHROMIUM>();
+ if (c) {
+ c->Init(texCoordSet, genMode, components, coeffs_shm_id, coeffs_shm_offset);
+ }
+}
+
+void CoverFillPathCHROMIUM(GLuint path, GLenum coverMode) {
+ gles2::cmds::CoverFillPathCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::CoverFillPathCHROMIUM>();
+ if (c) {
+ c->Init(path, coverMode);
+ }
+}
+
+void CoverFillPathInstancedCHROMIUM(GLsizei numPaths,
+ GLenum pathNameType,
+ uint32 paths_shm_id,
+ uint32 paths_shm_offset,
+ GLuint pathBase,
+ GLenum coverMode,
+ GLenum transformType,
+ uint32 transformValues_shm_id,
+ uint32 transformValues_shm_offset) {
+ gles2::cmds::CoverFillPathInstancedCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::CoverFillPathInstancedCHROMIUM>();
+ if (c) {
+ c->Init(numPaths,
+ pathNameType,
+ paths_shm_id,
+ paths_shm_offset,
+ pathBase,
+ coverMode,
+ transformType,
+ transformValues_shm_id,
+ transformValues_shm_offset);
+ }
+}
+
+void CoverStrokePathCHROMIUM(GLuint path, GLenum coverMode) {
+ gles2::cmds::CoverStrokePathCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::CoverStrokePathCHROMIUM>();
+ if (c) {
+ c->Init(path, coverMode);
+ }
+}
+
+void CoverStrokePathInstancedCHROMIUM(GLsizei numPaths,
+ GLenum pathNameType,
+ uint32 paths_shm_id,
+ uint32 paths_shm_offset,
+ GLuint pathBase,
+ GLenum coverMode,
+ GLenum transformType,
+ uint32 transformValues_shm_id,
+ uint32 transformValues_shm_offset) {
+ gles2::cmds::CoverStrokePathInstancedCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::CoverStrokePathInstancedCHROMIUM>();
+ if (c) {
+ c->Init(numPaths,
+ pathNameType,
+ paths_shm_id,
+ paths_shm_offset,
+ pathBase,
+ coverMode,
+ transformType,
+ transformValues_shm_id,
+ transformValues_shm_offset);
+ }
+}
+
#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_

Powered by Google App Engine
This is Rietveld 408576698