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

Side by Side Diff: gpu/command_buffer/client/gles2_cmd_helper_autogen.h

Issue 521018: A bunch of unit tests for GLES2 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file is auto-generated. DO NOT EDIT!
6
7 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
8 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
9
1 void ActiveTexture(GLenum texture) { 10 void ActiveTexture(GLenum texture) {
2 gles2::ActiveTexture& c = GetCmdSpace<gles2::ActiveTexture>(); 11 gles2::ActiveTexture& c = GetCmdSpace<gles2::ActiveTexture>();
3 c.Init(texture); 12 c.Init(texture);
4 } 13 }
5 14
6 void AttachShader(GLuint program, GLuint shader) { 15 void AttachShader(GLuint program, GLuint shader) {
7 gles2::AttachShader& c = GetCmdSpace<gles2::AttachShader>(); 16 gles2::AttachShader& c = GetCmdSpace<gles2::AttachShader>();
8 c.Init(program, shader); 17 c.Init(program, shader);
9 } 18 }
10 19
11 void BindAttribLocation( 20 void BindAttribLocation(
12 GLuint program, GLuint index, uint32 name_shm_id, uint32 name_shm_offset, 21 GLuint program, GLuint index, uint32 name_shm_id, uint32 name_shm_offset,
13 uint32 data_size) { 22 uint32 data_size) {
14 gles2::BindAttribLocation& c = GetCmdSpace<gles2::BindAttribLocation>(); 23 gles2::BindAttribLocation& c = GetCmdSpace<gles2::BindAttribLocation>();
15 c.Init(program, index, name_shm_id, name_shm_offset, data_size); 24 c.Init(program, index, name_shm_id, name_shm_offset, data_size);
16 } 25 }
17 26
18 void BindAttribLocationImmediate( 27 void BindAttribLocationImmediate(
19 GLuint program, GLuint index, const char* name) { 28 GLuint program, GLuint index, const char* name) {
20 const uint32 size = gles2::BindAttribLocationImmediate::ComputeSize(name); 29 const uint32 data_size = strlen(name);
21 gles2::BindAttribLocationImmediate& c = 30 gles2::BindAttribLocationImmediate& c =
22 GetImmediateCmdSpaceTotalSize<gles2::BindAttribLocationImmediate>( 31 GetImmediateCmdSpace<gles2::BindAttribLocationImmediate>(data_size);
23 size); 32 c.Init(program, index, name, data_size);
24 c.Init(program, index, name);
25 } 33 }
26 34
27 void BindBuffer(GLenum target, GLuint buffer) { 35 void BindBuffer(GLenum target, GLuint buffer) {
28 gles2::BindBuffer& c = GetCmdSpace<gles2::BindBuffer>(); 36 gles2::BindBuffer& c = GetCmdSpace<gles2::BindBuffer>();
29 c.Init(target, buffer); 37 c.Init(target, buffer);
30 } 38 }
31 39
32 void BindFramebuffer(GLenum target, GLuint framebuffer) { 40 void BindFramebuffer(GLenum target, GLuint framebuffer) {
33 gles2::BindFramebuffer& c = GetCmdSpace<gles2::BindFramebuffer>(); 41 gles2::BindFramebuffer& c = GetCmdSpace<gles2::BindFramebuffer>();
34 c.Init(target, framebuffer); 42 c.Init(target, framebuffer);
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) { 1113 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) {
1106 gles2::Viewport& c = GetCmdSpace<gles2::Viewport>(); 1114 gles2::Viewport& c = GetCmdSpace<gles2::Viewport>();
1107 c.Init(x, y, width, height); 1115 c.Init(x, y, width, height);
1108 } 1116 }
1109 1117
1110 void SwapBuffers() { 1118 void SwapBuffers() {
1111 gles2::SwapBuffers& c = GetCmdSpace<gles2::SwapBuffers>(); 1119 gles2::SwapBuffers& c = GetCmdSpace<gles2::SwapBuffers>();
1112 c.Init(); 1120 c.Init();
1113 } 1121 }
1114 1122
1123 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
1124
OLDNEW
« 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