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

Unified 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, 12 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 35431)
+++ gpu/command_buffer/client/gles2_cmd_helper_autogen.h (working copy)
@@ -1,3 +1,12 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file is auto-generated. DO NOT EDIT!
+
+#ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
+#define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
+
void ActiveTexture(GLenum texture) {
gles2::ActiveTexture& c = GetCmdSpace<gles2::ActiveTexture>();
c.Init(texture);
@@ -17,11 +26,10 @@
void BindAttribLocationImmediate(
GLuint program, GLuint index, const char* name) {
- const uint32 size = gles2::BindAttribLocationImmediate::ComputeSize(name);
+ const uint32 data_size = strlen(name);
gles2::BindAttribLocationImmediate& c =
- GetImmediateCmdSpaceTotalSize<gles2::BindAttribLocationImmediate>(
- size);
- c.Init(program, index, name);
+ GetImmediateCmdSpace<gles2::BindAttribLocationImmediate>(data_size);
+ c.Init(program, index, name, data_size);
}
void BindBuffer(GLenum target, GLuint buffer) {
@@ -1112,3 +1120,5 @@
c.Init();
}
+#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