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

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

Issue 12545014: Implement EXT_draw_buffers WebGL extention support in command buffer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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
===================================================================
--- gpu/command_buffer/client/gles2_cmd_helper_autogen.h (revision 187725)
+++ gpu/command_buffer/client/gles2_cmd_helper_autogen.h (working copy)
@@ -2080,5 +2080,25 @@
}
}
+ void DrawBuffersEXT(
+ GLsizei count, uint32 bufs_shm_id, uint32 bufs_shm_offset) {
+ gles2::cmds::DrawBuffersEXT* c =
+ GetCmdSpace<gles2::cmds::DrawBuffersEXT>();
+ if (c) {
+ c->Init(count, bufs_shm_id, bufs_shm_offset);
+ }
+ }
+
+ void DrawBuffersEXTImmediate(GLsizei count, const GLenum* bufs) {
+ const uint32 size =
+ gles2::cmds::DrawBuffersEXTImmediate::ComputeSize(count);
+ gles2::cmds::DrawBuffersEXTImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::DrawBuffersEXTImmediate>(
+ size);
+ if (c) {
+ c->Init(count, bufs);
+ }
+ }
+
#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698