summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client/cmd_buffer_helper.h
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 23:02:25 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 23:02:25 +0000
commit0bfd9882d39c63727676616ef1401d7618fdd26c (patch)
treef81bccc6d5a6f652cb600d5b61fa95b72181a513 /gpu/command_buffer/client/cmd_buffer_helper.h
parented0cf569f40ba5e11402c691c6bef6304d3d45c6 (diff)
downloadchromium_src-0bfd9882d39c63727676616ef1401d7618fdd26c.zip
chromium_src-0bfd9882d39c63727676616ef1401d7618fdd26c.tar.gz
chromium_src-0bfd9882d39c63727676616ef1401d7618fdd26c.tar.bz2
Adds
glGetActiveAttrib glGetActiveUniform glGetAttachedShaders glGetShaderPrecision TEST=none BUG=none Review URL: http://codereview.chromium.org/577017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38270 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/client/cmd_buffer_helper.h')
-rw-r--r--gpu/command_buffer/client/cmd_buffer_helper.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/gpu/command_buffer/client/cmd_buffer_helper.h b/gpu/command_buffer/client/cmd_buffer_helper.h
index 72984d1..c65a23a 100644
--- a/gpu/command_buffer/client/cmd_buffer_helper.h
+++ b/gpu/command_buffer/client/cmd_buffer_helper.h
@@ -117,6 +117,78 @@ class CommandBufferHelper {
cmd.Init(token);
}
+ void Jump(uint32 offset) {
+ cmd::Jump& cmd = GetCmdSpace<cmd::Jump>();
+ cmd.Init(offset);
+ }
+
+ void JumpRelative(int32 offset) {
+ cmd::JumpRelative& cmd = GetCmdSpace<cmd::JumpRelative>();
+ cmd.Init(offset);
+ }
+
+ void Call(uint32 offset) {
+ cmd::Call& cmd = GetCmdSpace<cmd::Call>();
+ cmd.Init(offset);
+ }
+
+ void CallRelative(int32 offset) {
+ cmd::CallRelative& cmd = GetCmdSpace<cmd::CallRelative>();
+ cmd.Init(offset);
+ }
+
+ void Return() {
+ cmd::Return& cmd = GetCmdSpace<cmd::Return>();
+ cmd.Init();
+ }
+
+ void SetBucketSize(uint32 bucket_id, uint32 size) {
+ cmd::SetBucketSize& cmd = GetCmdSpace<cmd::SetBucketSize>();
+ cmd.Init(bucket_id, size);
+ }
+
+ void SetBucketData(uint32 bucket_id,
+ uint32 offset,
+ uint32 size,
+ uint32 shared_memory_id,
+ uint32 shared_memory_offset) {
+ cmd::SetBucketData& cmd = GetCmdSpace<cmd::SetBucketData>();
+ cmd.Init(bucket_id,
+ offset,
+ size,
+ shared_memory_id,
+ shared_memory_offset);
+ }
+
+ void SetBucketDataImmediate(
+ uint32 bucket_id, uint32 offset, const void* data, uint32 size) {
+ cmd::SetBucketDataImmediate& cmd =
+ GetImmediateCmdSpace<cmd::SetBucketDataImmediate>(size);
+ cmd.Init(bucket_id, offset, size);
+ memcpy(ImmediateDataAddress(&cmd), data, size);
+ }
+
+ void GetBucketSize(uint32 bucket_id,
+ uint32 shared_memory_id,
+ uint32 shared_memory_offset) {
+ cmd::GetBucketSize& cmd = GetCmdSpace<cmd::GetBucketSize>();
+ cmd.Init(bucket_id,
+ shared_memory_id,
+ shared_memory_offset);
+ }
+
+ void GetBucketData(uint32 bucket_id,
+ uint32 offset,
+ uint32 size,
+ uint32 shared_memory_id,
+ uint32 shared_memory_offset) {
+ cmd::GetBucketData& cmd = GetCmdSpace<cmd::GetBucketData>();
+ cmd.Init(bucket_id,
+ offset,
+ size,
+ shared_memory_id,
+ shared_memory_offset);
+ }
private:
// Waits until get changes, updating the value of get_.