| 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" | |
| 10 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 9 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
| 11 #include "gpu/config/gpu_info.h" | 10 #include "gpu/config/gpu_info.h" |
| 12 #include "gpu/gpu_export.h" | 11 #include "gpu/gpu_export.h" |
| 13 #include "gpu/ipc/common/gpu_stream_constants.h" | 12 #include "gpu/ipc/common/gpu_stream_constants.h" |
| 14 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
| 15 #include "ui/gfx/ipc/geometry/gfx_param_traits.h" | 14 #include "ui/gfx/ipc/geometry/gfx_param_traits.h" |
| 16 #include "ui/gfx/ipc/gfx_param_traits.h" | 15 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 17 #include "ui/gl/gpu_preference.h" | |
| 18 #include "url/ipc/url_param_traits.h" | 16 #include "url/ipc/url_param_traits.h" |
| 19 | 17 |
| 20 #undef IPC_MESSAGE_EXPORT | 18 #undef IPC_MESSAGE_EXPORT |
| 21 #define IPC_MESSAGE_EXPORT GPU_EXPORT | 19 #define IPC_MESSAGE_EXPORT GPU_EXPORT |
| 22 | 20 |
| 23 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorSupportedProfile) | 21 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorSupportedProfile) |
| 24 IPC_STRUCT_TRAITS_MEMBER(profile) | 22 IPC_STRUCT_TRAITS_MEMBER(profile) |
| 25 IPC_STRUCT_TRAITS_MEMBER(max_resolution) | 23 IPC_STRUCT_TRAITS_MEMBER(max_resolution) |
| 26 IPC_STRUCT_TRAITS_MEMBER(min_resolution) | 24 IPC_STRUCT_TRAITS_MEMBER(min_resolution) |
| 27 IPC_STRUCT_TRAITS_MEMBER(encrypted_only) | 25 IPC_STRUCT_TRAITS_MEMBER(encrypted_only) |
| 28 IPC_STRUCT_TRAITS_END() | 26 IPC_STRUCT_TRAITS_END() |
| 29 | 27 |
| 30 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorCapabilities) | 28 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorCapabilities) |
| 31 IPC_STRUCT_TRAITS_MEMBER(supported_profiles) | 29 IPC_STRUCT_TRAITS_MEMBER(supported_profiles) |
| 32 IPC_STRUCT_TRAITS_MEMBER(flags) | 30 IPC_STRUCT_TRAITS_MEMBER(flags) |
| 33 IPC_STRUCT_TRAITS_END() | 31 IPC_STRUCT_TRAITS_END() |
| 34 | 32 |
| 35 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoEncodeAcceleratorSupportedProfile) | 33 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoEncodeAcceleratorSupportedProfile) |
| 36 IPC_STRUCT_TRAITS_MEMBER(profile) | 34 IPC_STRUCT_TRAITS_MEMBER(profile) |
| 37 IPC_STRUCT_TRAITS_MEMBER(max_resolution) | 35 IPC_STRUCT_TRAITS_MEMBER(max_resolution) |
| 38 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) | 36 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) |
| 39 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) | 37 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) |
| 40 IPC_STRUCT_TRAITS_END() | 38 IPC_STRUCT_TRAITS_END() |
| 41 | 39 |
| 42 IPC_ENUM_TRAITS_MAX_VALUE(gl::GpuPreference, gl::GpuPreferenceLast) | |
| 43 IPC_ENUM_TRAITS_MAX_VALUE(gpu::GpuStreamPriority, gpu::GpuStreamPriority::LAST) | 40 IPC_ENUM_TRAITS_MAX_VALUE(gpu::GpuStreamPriority, gpu::GpuStreamPriority::LAST) |
| 44 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff, | 41 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff, |
| 45 gpu::MemoryAllocation::CUTOFF_LAST) | 42 gpu::MemoryAllocation::CUTOFF_LAST) |
| 46 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason, | 43 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason, |
| 47 gpu::error::kContextLostReasonLast) | 44 gpu::error::kContextLostReasonLast) |
| 48 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::CollectInfoResult, | 45 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::CollectInfoResult, |
| 49 gpu::kCollectInfoNone, | 46 gpu::kCollectInfoNone, |
| 50 gpu::kCollectInfoFatalFailure) | 47 gpu::kCollectInfoFatalFailure) |
| 51 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::VideoCodecProfile, | 48 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::VideoCodecProfile, |
| 52 gpu::VIDEO_CODEC_PROFILE_MIN, | 49 gpu::VIDEO_CODEC_PROFILE_MIN, |
| 53 gpu::VIDEO_CODEC_PROFILE_MAX) | 50 gpu::VIDEO_CODEC_PROFILE_MAX) |
| 54 IPC_ENUM_TRAITS_MAX_VALUE(gpu::gles2::ContextType, | |
| 55 gpu::gles2::CONTEXT_TYPE_LAST) | |
| 56 | 51 |
| 57 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode) | 52 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode) |
| 58 IPC_STRUCT_TRAITS_MEMBER(values) | 53 IPC_STRUCT_TRAITS_MEMBER(values) |
| 59 IPC_STRUCT_TRAITS_MEMBER(children) | 54 IPC_STRUCT_TRAITS_MEMBER(children) |
| 60 IPC_STRUCT_TRAITS_END() | 55 IPC_STRUCT_TRAITS_END() |
| 61 | 56 |
| 62 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo::GPUDevice) | 57 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo::GPUDevice) |
| 63 IPC_STRUCT_TRAITS_MEMBER(vendor_id) | 58 IPC_STRUCT_TRAITS_MEMBER(vendor_id) |
| 64 IPC_STRUCT_TRAITS_MEMBER(device_id) | 59 IPC_STRUCT_TRAITS_MEMBER(device_id) |
| 65 IPC_STRUCT_TRAITS_MEMBER(active) | 60 IPC_STRUCT_TRAITS_MEMBER(active) |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 IPC_STRUCT_TRAITS_MEMBER(video_decode_accelerator_capabilities) | 101 IPC_STRUCT_TRAITS_MEMBER(video_decode_accelerator_capabilities) |
| 107 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles) | 102 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles) |
| 108 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported) | 103 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported) |
| 109 IPC_STRUCT_TRAITS_END() | 104 IPC_STRUCT_TRAITS_END() |
| 110 | 105 |
| 111 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation) | 106 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation) |
| 112 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) | 107 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) |
| 113 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible) | 108 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible) |
| 114 IPC_STRUCT_TRAITS_END() | 109 IPC_STRUCT_TRAITS_END() |
| 115 | 110 |
| 116 IPC_STRUCT_TRAITS_BEGIN(gpu::gles2::ContextCreationAttribHelper) | |
| 117 IPC_STRUCT_TRAITS_MEMBER(offscreen_framebuffer_size) | |
| 118 IPC_STRUCT_TRAITS_MEMBER(gpu_preference) | |
| 119 IPC_STRUCT_TRAITS_MEMBER(alpha_size) | |
| 120 IPC_STRUCT_TRAITS_MEMBER(blue_size) | |
| 121 IPC_STRUCT_TRAITS_MEMBER(green_size) | |
| 122 IPC_STRUCT_TRAITS_MEMBER(red_size) | |
| 123 IPC_STRUCT_TRAITS_MEMBER(depth_size) | |
| 124 IPC_STRUCT_TRAITS_MEMBER(stencil_size) | |
| 125 IPC_STRUCT_TRAITS_MEMBER(samples) | |
| 126 IPC_STRUCT_TRAITS_MEMBER(sample_buffers) | |
| 127 IPC_STRUCT_TRAITS_MEMBER(buffer_preserved) | |
| 128 IPC_STRUCT_TRAITS_MEMBER(bind_generates_resource) | |
| 129 IPC_STRUCT_TRAITS_MEMBER(fail_if_major_perf_caveat) | |
| 130 IPC_STRUCT_TRAITS_MEMBER(lose_context_when_out_of_memory) | |
| 131 IPC_STRUCT_TRAITS_MEMBER(context_type) | |
| 132 IPC_STRUCT_TRAITS_END() | |
| 133 | |
| 134 | 111 |
| 135 #endif // GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_ | 112 #endif // GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_ |
| OLD | NEW |