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

Unified Diff: gpu/command_buffer/client/gles2_cmd_helper_autogen.h

Issue 169603002: Add initial support for NV_path_rendering extension to gpu command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 8150d642de0f40d32085b813f49810d6d419c69e..7abed6e3dd909cfa77ac1b10a10e083a7e25e2c6 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -2232,4 +2232,34 @@ void DiscardBackbufferCHROMIUM() {
}
}
+void MatrixMode(GLenum mode) {
+ gles2::cmds::MatrixMode* c = GetCmdSpace<gles2::cmds::MatrixMode>();
+ if (c) {
+ c->Init(mode);
+ }
+}
+
+void LoadMatrixf(uint32 m_shm_id, uint32 m_shm_offset) {
+ gles2::cmds::LoadMatrixf* c = GetCmdSpace<gles2::cmds::LoadMatrixf>();
+ if (c) {
+ c->Init(m_shm_id, m_shm_offset);
+ }
+}
+
+void LoadMatrixfImmediate(const GLfloat* m) {
+ const uint32 size = gles2::cmds::LoadMatrixfImmediate::ComputeSize();
+ gles2::cmds::LoadMatrixfImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::LoadMatrixfImmediate>(size);
+ if (c) {
+ c->Init(m);
+ }
+}
+
+void LoadIdentity() {
+ gles2::cmds::LoadIdentity* c = GetCmdSpace<gles2::cmds::LoadIdentity>();
+ if (c) {
+ c->Init();
+ }
+}
+
#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_

Powered by Google App Engine
This is Rietveld 408576698