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

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

Issue 1936103003: gpu traits: Move gfx::SwapResult trait to ui/gfx/ipc where it belongs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | ui/gfx/ipc/gfx_param_traits_macros.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 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/gpu_memory_allocation.h" 9 #include "gpu/command_buffer/common/gpu_memory_allocation.h"
10 #include "gpu/config/gpu_info.h" 10 #include "gpu/config/gpu_info.h"
11 #include "gpu/gpu_export.h" 11 #include "gpu/gpu_export.h"
12 #include "gpu/ipc/common/gpu_stream_constants.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/ipc/geometry/gfx_param_traits.h" 14 #include "ui/gfx/ipc/geometry/gfx_param_traits.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"
17 #include "ui/gl/gpu_preference.h" 16 #include "ui/gl/gpu_preference.h"
18 #include "url/ipc/url_param_traits.h" 17 #include "url/ipc/url_param_traits.h"
19 18
20 #undef IPC_MESSAGE_EXPORT 19 #undef IPC_MESSAGE_EXPORT
21 #define IPC_MESSAGE_EXPORT GPU_EXPORT 20 #define IPC_MESSAGE_EXPORT GPU_EXPORT
22 21
23 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorSupportedProfile) 22 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorSupportedProfile)
24 IPC_STRUCT_TRAITS_MEMBER(profile) 23 IPC_STRUCT_TRAITS_MEMBER(profile)
25 IPC_STRUCT_TRAITS_MEMBER(max_resolution) 24 IPC_STRUCT_TRAITS_MEMBER(max_resolution)
26 IPC_STRUCT_TRAITS_MEMBER(min_resolution) 25 IPC_STRUCT_TRAITS_MEMBER(min_resolution)
27 IPC_STRUCT_TRAITS_MEMBER(encrypted_only) 26 IPC_STRUCT_TRAITS_MEMBER(encrypted_only)
28 IPC_STRUCT_TRAITS_END() 27 IPC_STRUCT_TRAITS_END()
29 28
30 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorCapabilities) 29 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorCapabilities)
31 IPC_STRUCT_TRAITS_MEMBER(supported_profiles) 30 IPC_STRUCT_TRAITS_MEMBER(supported_profiles)
32 IPC_STRUCT_TRAITS_MEMBER(flags) 31 IPC_STRUCT_TRAITS_MEMBER(flags)
33 IPC_STRUCT_TRAITS_END() 32 IPC_STRUCT_TRAITS_END()
34 33
35 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoEncodeAcceleratorSupportedProfile) 34 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoEncodeAcceleratorSupportedProfile)
36 IPC_STRUCT_TRAITS_MEMBER(profile) 35 IPC_STRUCT_TRAITS_MEMBER(profile)
37 IPC_STRUCT_TRAITS_MEMBER(max_resolution) 36 IPC_STRUCT_TRAITS_MEMBER(max_resolution)
38 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) 37 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator)
39 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) 38 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator)
40 IPC_STRUCT_TRAITS_END() 39 IPC_STRUCT_TRAITS_END()
41 40
42 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuPreference, gfx::GpuPreferenceLast) 41 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuPreference, gfx::GpuPreferenceLast)
43 IPC_ENUM_TRAITS_MAX_VALUE(gpu::GpuStreamPriority, gpu::GpuStreamPriority::LAST) 42 IPC_ENUM_TRAITS_MAX_VALUE(gpu::GpuStreamPriority, gpu::GpuStreamPriority::LAST)
44 IPC_ENUM_TRAITS_MAX_VALUE(gfx::SwapResult, gfx::SwapResult::SWAP_RESULT_LAST)
45 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff, 43 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff,
46 gpu::MemoryAllocation::CUTOFF_LAST) 44 gpu::MemoryAllocation::CUTOFF_LAST)
47 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason, 45 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason,
48 gpu::error::kContextLostReasonLast) 46 gpu::error::kContextLostReasonLast)
49 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::CollectInfoResult, 47 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::CollectInfoResult,
50 gpu::kCollectInfoNone, 48 gpu::kCollectInfoNone,
51 gpu::kCollectInfoFatalFailure) 49 gpu::kCollectInfoFatalFailure)
52 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::VideoCodecProfile, 50 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::VideoCodecProfile,
53 gpu::VIDEO_CODEC_PROFILE_MIN, 51 gpu::VIDEO_CODEC_PROFILE_MIN,
54 gpu::VIDEO_CODEC_PROFILE_MAX) 52 gpu::VIDEO_CODEC_PROFILE_MAX)
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles) 104 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles)
107 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported) 105 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported)
108 IPC_STRUCT_TRAITS_END() 106 IPC_STRUCT_TRAITS_END()
109 107
110 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation) 108 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation)
111 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) 109 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible)
112 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible) 110 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible)
113 IPC_STRUCT_TRAITS_END() 111 IPC_STRUCT_TRAITS_END()
114 112
115 #endif // GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_ 113 #endif // GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/ipc/gfx_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698