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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 511001: Adds a GLMock object so we can check the code is... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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
« no previous file with comments | « no previous file | gpu/command_buffer/common/gles2_cmd_format.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/build_gles2_cmd_buffer.py
===================================================================
--- gpu/command_buffer/build_gles2_cmd_buffer.py (revision 35202)
+++ gpu/command_buffer/build_gles2_cmd_buffer.py (working copy)
@@ -2449,7 +2449,7 @@
def WriteValidationCode(self, file):
file.Write(" if (!Validate%s(%s)) {\n" % (self.enum_type, self.name))
- file.Write(" SetGLError(GL_INVALID_VALUE);\n")
+ file.Write(" SetGLError(GL_INVALID_ENUM);\n")
file.Write(" return parse_error::kParseNoError;\n")
file.Write(" }\n")
@@ -3047,13 +3047,10 @@
"""Writes the command buffer format"""
file = CWriter(filename)
self.WriteHeader(file)
- file.Write("#pragma pack(push, 1)\n")
- file.Write("\n")
for func in self.functions:
func.WriteStruct(file)
- file.Write("#pragma pack(pop)\n")
file.Write("\n")
file.Close()
« no previous file with comments | « no previous file | gpu/command_buffer/common/gles2_cmd_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698