| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 | 32 |
| 33 // This file contains the common parts of command buffer formats. | 33 // This file contains the common parts of command buffer formats. |
| 34 | 34 |
| 35 #ifndef GPU_COMMAND_BUFFER_COMMON_CROSS_CMD_BUFFER_COMMON_H_ | 35 #ifndef GPU_COMMAND_BUFFER_COMMON_CMD_BUFFER_COMMON_H_ |
| 36 #define GPU_COMMAND_BUFFER_COMMON_CROSS_CMD_BUFFER_COMMON_H_ | 36 #define GPU_COMMAND_BUFFER_COMMON_CMD_BUFFER_COMMON_H_ |
| 37 | 37 |
| 38 #include "base/basictypes.h" | 38 #include "base/basictypes.h" |
| 39 #include "gpu/command_buffer/common/types.h" | 39 #include "gpu/command_buffer/common/types.h" |
| 40 #include "gpu/command_buffer/common/bitfield_helpers.h" | 40 #include "gpu/command_buffer/common/bitfield_helpers.h" |
| 41 #include "gpu/command_buffer/common/logging.h" | 41 #include "gpu/command_buffer/common/logging.h" |
| 42 | 42 |
| 43 namespace command_buffer { | 43 namespace gpu { |
| 44 | 44 |
| 45 namespace cmd { | 45 namespace cmd { |
| 46 enum ArgFlags { | 46 enum ArgFlags { |
| 47 kFixed = 0x0, | 47 kFixed = 0x0, |
| 48 kAtLeastN = 0x1, | 48 kAtLeastN = 0x1, |
| 49 }; | 49 }; |
| 50 } // namespace cmd | 50 } // namespace cmd |
| 51 | 51 |
| 52 // Computes the number of command buffer entries needed for a certain size. In | 52 // Computes the number of command buffer entries needed for a certain size. In |
| 53 // other words it rounds up to a multiple of entries. | 53 // other words it rounds up to a multiple of entries. |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 Offsetof_GetBucketData_size_not_12); | 673 Offsetof_GetBucketData_size_not_12); |
| 674 COMPILE_ASSERT(offsetof(GetBucketData, shared_memory_id) == 16, | 674 COMPILE_ASSERT(offsetof(GetBucketData, shared_memory_id) == 16, |
| 675 Offsetof_GetBucketData_shared_memory_id_not_16); | 675 Offsetof_GetBucketData_shared_memory_id_not_16); |
| 676 COMPILE_ASSERT(offsetof(GetBucketData, shared_memory_offset) == 20, | 676 COMPILE_ASSERT(offsetof(GetBucketData, shared_memory_offset) == 20, |
| 677 Offsetof_GetBucketData_shared_memory_offset_not_20); | 677 Offsetof_GetBucketData_shared_memory_offset_not_20); |
| 678 | 678 |
| 679 } // namespace cmd | 679 } // namespace cmd |
| 680 | 680 |
| 681 #pragma pack(pop) | 681 #pragma pack(pop) |
| 682 | 682 |
| 683 } // namespace command_buffer | 683 } // namespace gpu |
| 684 | 684 |
| 685 #endif // GPU_COMMAND_BUFFER_COMMON_CROSS_CMD_BUFFER_COMMON_H_ | 685 #endif // GPU_COMMAND_BUFFER_COMMON_CMD_BUFFER_COMMON_H_ |
| 686 | 686 |
| OLD | NEW |