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

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

Issue 434063: Merged in recent changes to command buffer code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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.h
===================================================================
--- gpu/command_buffer/client/gles2_cmd_helper.h (revision 33021)
+++ gpu/command_buffer/client/gles2_cmd_helper.h (working copy)
@@ -25,6 +25,46 @@
// file instead of having to edit some template or the code generator.
#include "gpu/command_buffer/client/gles2_cmd_helper_autogen.h"
+ // Helpers that could not be auto-generated.
+ // TODO(gman): Auto generate these.
+
+ void GetAttribLocation(
+ GLuint program, uint32 name_shm_id, uint32 name_shm_offset,
+ uint32 location_shm_id, uint32 location_shm_offset, uint32 data_size) {
+ gles2::GetAttribLocation& c = GetCmdSpace<gles2::GetAttribLocation>();
+ c.Init(
+ program, name_shm_id, name_shm_offset, location_shm_id,
+ location_shm_offset, data_size);
+ }
+
+ void GetAttribLocationImmediate(
+ GLuint program, const char* name,
+ uint32 location_shm_id, uint32 location_shm_offset) {
+ const uint32 size = gles2::GetAttribLocationImmediate::ComputeSize(name);
+ gles2::GetAttribLocationImmediate& c =
+ GetImmediateCmdSpaceTotalSize<gles2::GetAttribLocationImmediate>(size);
+ c.Init(program, name, location_shm_id, location_shm_offset);
+ }
+
+ void GetUniformLocation(
+ GLuint program, uint32 name_shm_id, uint32 name_shm_offset,
+ uint32 location_shm_id, uint32 location_shm_offset, uint32 data_size) {
+ gles2::GetUniformLocation& c = GetCmdSpace<gles2::GetUniformLocation>();
+ c.Init(
+ program, name_shm_id, name_shm_offset, location_shm_id,
+ location_shm_offset, data_size);
+ }
+
+ void GetUniformLocationImmediate(
+ GLuint program, const char* name,
+ uint32 location_shm_id, uint32 location_shm_offset) {
+ const uint32 size = gles2::GetUniformLocationImmediate::ComputeSize(name);
+ gles2::GetUniformLocationImmediate& c =
+ GetImmediateCmdSpaceTotalSize<gles2::GetUniformLocationImmediate>(size);
+ c.Init(program, name, location_shm_id, location_shm_offset);
+ }
+
+
private:
DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper);
};
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_cmd_helper_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698