OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_ | 5 #ifndef GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_ |
6 #define GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_ | 6 #define GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_ |
7 | 7 |
8 #include "gpu/command_buffer/common/constants.h" | 8 #include "gpu/command_buffer/common/constants.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
10 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 10 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 IPC_STRUCT_TRAITS_MEMBER(flags) | 32 IPC_STRUCT_TRAITS_MEMBER(flags) |
33 IPC_STRUCT_TRAITS_END() | 33 IPC_STRUCT_TRAITS_END() |
34 | 34 |
35 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoEncodeAcceleratorSupportedProfile) | 35 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoEncodeAcceleratorSupportedProfile) |
36 IPC_STRUCT_TRAITS_MEMBER(profile) | 36 IPC_STRUCT_TRAITS_MEMBER(profile) |
37 IPC_STRUCT_TRAITS_MEMBER(max_resolution) | 37 IPC_STRUCT_TRAITS_MEMBER(max_resolution) |
38 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) | 38 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) |
39 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) | 39 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) |
40 IPC_STRUCT_TRAITS_END() | 40 IPC_STRUCT_TRAITS_END() |
41 | 41 |
42 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuPreference, gfx::GpuPreferenceLast) | 42 IPC_ENUM_TRAITS_MAX_VALUE(gl::GpuPreference, gl::GpuPreferenceLast) |
43 IPC_ENUM_TRAITS_MAX_VALUE(gpu::GpuStreamPriority, gpu::GpuStreamPriority::LAST) | 43 IPC_ENUM_TRAITS_MAX_VALUE(gpu::GpuStreamPriority, gpu::GpuStreamPriority::LAST) |
44 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff, | 44 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff, |
45 gpu::MemoryAllocation::CUTOFF_LAST) | 45 gpu::MemoryAllocation::CUTOFF_LAST) |
46 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason, | 46 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason, |
47 gpu::error::kContextLostReasonLast) | 47 gpu::error::kContextLostReasonLast) |
48 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::CollectInfoResult, | 48 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::CollectInfoResult, |
49 gpu::kCollectInfoNone, | 49 gpu::kCollectInfoNone, |
50 gpu::kCollectInfoFatalFailure) | 50 gpu::kCollectInfoFatalFailure) |
51 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::VideoCodecProfile, | 51 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::VideoCodecProfile, |
52 gpu::VIDEO_CODEC_PROFILE_MIN, | 52 gpu::VIDEO_CODEC_PROFILE_MIN, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 IPC_STRUCT_TRAITS_MEMBER(sample_buffers) | 124 IPC_STRUCT_TRAITS_MEMBER(sample_buffers) |
125 IPC_STRUCT_TRAITS_MEMBER(buffer_preserved) | 125 IPC_STRUCT_TRAITS_MEMBER(buffer_preserved) |
126 IPC_STRUCT_TRAITS_MEMBER(bind_generates_resource) | 126 IPC_STRUCT_TRAITS_MEMBER(bind_generates_resource) |
127 IPC_STRUCT_TRAITS_MEMBER(fail_if_major_perf_caveat) | 127 IPC_STRUCT_TRAITS_MEMBER(fail_if_major_perf_caveat) |
128 IPC_STRUCT_TRAITS_MEMBER(lose_context_when_out_of_memory) | 128 IPC_STRUCT_TRAITS_MEMBER(lose_context_when_out_of_memory) |
129 IPC_STRUCT_TRAITS_MEMBER(context_type) | 129 IPC_STRUCT_TRAITS_MEMBER(context_type) |
130 IPC_STRUCT_TRAITS_END() | 130 IPC_STRUCT_TRAITS_END() |
131 | 131 |
132 | 132 |
133 #endif // GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_ | 133 #endif // GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_ |
OLD | NEW |