summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client/gles2_cmd_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/client/gles2_cmd_helper.h')
-rw-r--r--gpu/command_buffer/client/gles2_cmd_helper.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gpu/command_buffer/client/gles2_cmd_helper.h b/gpu/command_buffer/client/gles2_cmd_helper.h
index 72fae31..4e57cce 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper.h
@@ -70,6 +70,19 @@ class GPU_EXPORT GLES2CmdHelper : public CommandBufferHelper {
}
}
+ void CreateAndConsumeTextureCHROMIUMImmediate(GLenum target,
+ uint32_t client_id,
+ const GLbyte* _mailbox) {
+ const uint32_t size =
+ gles2::cmds::CreateAndConsumeTextureCHROMIUMImmediate::ComputeSize();
+ gles2::cmds::CreateAndConsumeTextureCHROMIUMImmediate* c =
+ GetImmediateCmdSpaceTotalSize<
+ gles2::cmds::CreateAndConsumeTextureCHROMIUMImmediate>(size);
+ if (c) {
+ c->Init(target, client_id, _mailbox);
+ }
+ }
+
private:
DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper);
};