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

Side by Side 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: #pragma pack value must be literal. Created 6 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file defines the GLES2 command buffer commands. 5 // This file defines the GLES2 command buffer commands.
6 6
7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_
8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_
9 9
10 10
(...skipping 24 matching lines...) Expand all
35 typedef float GLclampf; 35 typedef float GLclampf;
36 typedef double GLdouble; 36 typedef double GLdouble;
37 typedef double GLclampd; 37 typedef double GLclampd;
38 typedef void GLvoid; 38 typedef void GLvoid;
39 typedef khronos_intptr_t GLintptr; 39 typedef khronos_intptr_t GLintptr;
40 typedef khronos_ssize_t GLsizeiptr; 40 typedef khronos_ssize_t GLsizeiptr;
41 41
42 namespace gpu { 42 namespace gpu {
43 namespace gles2 { 43 namespace gles2 {
44 44
45 #pragma pack(push, 1) 45 // Command buffer is GPU_COMMAND_BUFFER_ENTRY_ALIGNMENT byte aligned.
46 #pragma pack(push, GPU_COMMAND_BUFFER_ENTRY_ALIGNMENT)
46 47
47 namespace id_namespaces { 48 namespace id_namespaces {
48 49
49 // These are used when contexts share resources. 50 // These are used when contexts share resources.
50 enum IdNamespaces { 51 enum IdNamespaces {
51 kBuffers, 52 kBuffers,
52 kFramebuffers, 53 kFramebuffers,
53 kProgramsAndShaders, 54 kProgramsAndShaders,
54 kRenderbuffers, 55 kRenderbuffers,
55 kTextures, 56 kTextures,
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 CommandHeader header; 439 CommandHeader header;
439 }; 440 };
440 441
441 #pragma pack(pop) 442 #pragma pack(pop)
442 443
443 } // namespace cmd 444 } // namespace cmd
444 } // namespace gles2 445 } // namespace gles2
445 } // namespace gpu 446 } // namespace gpu
446 447
447 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ 448 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/cmd_buffer_common.h ('k') | gpu/command_buffer/service/transfer_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698