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

Side by Side Diff: gpu/ipc/common/gpu_param_traits_macros.h

Issue 1809183002: gpu_messages.h => gpu/ipc/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make win_clang_x64_dbg happy by making command_buffer_traits an alias to gpu component on compnet b… Created 4 years, 9 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
« no previous file with comments | « gpu/ipc/common/gpu_param_traits.cc ('k') | gpu/ipc/common/gpu_stream_constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CONTENT_COMMON_GPU_GPU_PARAM_TRAITS_MACROS_H_ 5 #ifndef GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_
6 #define CONTENT_COMMON_GPU_GPU_PARAM_TRAITS_MACROS_H_ 6 #define GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_
7 7
8 #include "content/common/content_export.h"
9 #include "content/common/gpu/gpu_stream_constants.h"
10 #include "gpu/command_buffer/common/constants.h" 8 #include "gpu/command_buffer/common/constants.h"
11 #include "gpu/command_buffer/common/gpu_memory_allocation.h" 9 #include "gpu/command_buffer/common/gpu_memory_allocation.h"
12 #include "gpu/config/gpu_info.h" 10 #include "gpu/config/gpu_info.h"
11 #include "gpu/gpu_export.h"
12 #include "gpu/ipc/common/gpu_stream_constants.h"
13 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 #include "ui/gfx/gpu_memory_buffer.h" 14 #include "ui/gfx/gpu_memory_buffer.h"
15 #include "ui/gfx/ipc/gfx_param_traits.h" 15 #include "ui/gfx/ipc/gfx_param_traits.h"
16 #include "ui/gfx/swap_result.h" 16 #include "ui/gfx/swap_result.h"
17 #include "ui/gl/gpu_preference.h" 17 #include "ui/gl/gpu_preference.h"
18 #include "url/ipc/url_param_traits.h" 18 #include "url/ipc/url_param_traits.h"
19 19
20 #undef IPC_MESSAGE_EXPORT 20 #undef IPC_MESSAGE_EXPORT
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 21 #define IPC_MESSAGE_EXPORT GPU_EXPORT
22 22
23 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorSupportedProfile) 23 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorSupportedProfile)
24 IPC_STRUCT_TRAITS_MEMBER(profile) 24 IPC_STRUCT_TRAITS_MEMBER(profile)
25 IPC_STRUCT_TRAITS_MEMBER(max_resolution) 25 IPC_STRUCT_TRAITS_MEMBER(max_resolution)
26 IPC_STRUCT_TRAITS_MEMBER(min_resolution) 26 IPC_STRUCT_TRAITS_MEMBER(min_resolution)
27 IPC_STRUCT_TRAITS_MEMBER(encrypted_only) 27 IPC_STRUCT_TRAITS_MEMBER(encrypted_only)
28 IPC_STRUCT_TRAITS_END() 28 IPC_STRUCT_TRAITS_END()
29 29
30 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorCapabilities) 30 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorCapabilities)
31 IPC_STRUCT_TRAITS_MEMBER(supported_profiles) 31 IPC_STRUCT_TRAITS_MEMBER(supported_profiles)
(...skipping 21 matching lines...) Expand all
53 #elif defined(OS_MACOSX) 53 #elif defined(OS_MACOSX)
54 IPC_STRUCT_TRAITS_MEMBER(mach_port) 54 IPC_STRUCT_TRAITS_MEMBER(mach_port)
55 #endif 55 #endif
56 IPC_STRUCT_TRAITS_END() 56 IPC_STRUCT_TRAITS_END()
57 57
58 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferId) 58 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferId)
59 IPC_STRUCT_TRAITS_MEMBER(id) 59 IPC_STRUCT_TRAITS_MEMBER(id)
60 IPC_STRUCT_TRAITS_END() 60 IPC_STRUCT_TRAITS_END()
61 61
62 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuPreference, gfx::GpuPreferenceLast) 62 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuPreference, gfx::GpuPreferenceLast)
63 IPC_ENUM_TRAITS_MAX_VALUE(content::GpuStreamPriority, 63 IPC_ENUM_TRAITS_MAX_VALUE(gpu::GpuStreamPriority, gpu::GpuStreamPriority::LAST)
64 content::GpuStreamPriority::LAST)
65 IPC_ENUM_TRAITS_MAX_VALUE(gfx::SwapResult, gfx::SwapResult::SWAP_RESULT_LAST) 64 IPC_ENUM_TRAITS_MAX_VALUE(gfx::SwapResult, gfx::SwapResult::SWAP_RESULT_LAST)
66 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff, 65 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff,
67 gpu::MemoryAllocation::CUTOFF_LAST) 66 gpu::MemoryAllocation::CUTOFF_LAST)
68 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason, 67 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason,
69 gpu::error::kContextLostReasonLast) 68 gpu::error::kContextLostReasonLast)
70 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::CollectInfoResult, 69 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::CollectInfoResult,
71 gpu::kCollectInfoNone, 70 gpu::kCollectInfoNone,
72 gpu::kCollectInfoFatalFailure) 71 gpu::kCollectInfoFatalFailure)
73 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::VideoCodecProfile, 72 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::VideoCodecProfile,
74 gpu::VIDEO_CODEC_PROFILE_MIN, 73 gpu::VIDEO_CODEC_PROFILE_MIN,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 IPC_STRUCT_TRAITS_MEMBER(video_decode_accelerator_capabilities) 125 IPC_STRUCT_TRAITS_MEMBER(video_decode_accelerator_capabilities)
127 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles) 126 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles)
128 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported) 127 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported)
129 IPC_STRUCT_TRAITS_END() 128 IPC_STRUCT_TRAITS_END()
130 129
131 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation) 130 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation)
132 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) 131 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible)
133 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible) 132 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible)
134 IPC_STRUCT_TRAITS_END() 133 IPC_STRUCT_TRAITS_END()
135 134
136 #endif // CONTENT_COMMON_GPU_GPU_PARAM_TRAITS_MACROS_H_ 135 #endif // GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « gpu/ipc/common/gpu_param_traits.cc ('k') | gpu/ipc/common/gpu_stream_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698