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

Unified Diff: gpu/command_buffer/common/gles2_cmd_format.h

Issue 152263002: Changed pack alignment of GPU command buffer commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/common/gles2_cmd_format.h
diff --git a/gpu/command_buffer/common/gles2_cmd_format.h b/gpu/command_buffer/common/gles2_cmd_format.h
index 252aafd06cf800695b969d1518bb344dcdacfe05..8154e2047b590c9cfa1c373dc97518496d189e11 100644
--- a/gpu/command_buffer/common/gles2_cmd_format.h
+++ b/gpu/command_buffer/common/gles2_cmd_format.h
@@ -42,7 +42,8 @@ typedef khronos_ssize_t GLsizeiptr;
namespace gpu {
namespace gles2 {
-#pragma pack(push, 1)
+// Command buffer is 4 byte aligned.
+#pragma pack(push, 4)
namespace id_namespaces {

Powered by Google App Engine
This is Rietveld 408576698