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

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

Issue 2129803002: Revert of pepper: parse context creation attrib list on the plugin side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gpu_pref_size_in_attrs
Patch Set: Created 4 years, 5 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/BUILD.gn ('k') | gpu/ipc/common/gpu_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Multiply-included message file, hence no include guard here. 5 // Multiply-included message file, hence no include guard here.
6 6
7 #include "gpu/command_buffer/common/capabilities.h" 7 #include "gpu/command_buffer/common/capabilities.h"
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/gpu_export.h" 9 #include "gpu/gpu_export.h"
11 #include "ipc/ipc_message_utils.h" 10 #include "ipc/ipc_message_utils.h"
12 #include "ipc/param_traits_macros.h" 11 #include "ipc/param_traits_macros.h"
13 #include "ui/gfx/ipc/geometry/gfx_param_traits.h"
14 #include "ui/gl/gpu_preference.h"
15 12
16 #undef IPC_MESSAGE_EXPORT 13 #undef IPC_MESSAGE_EXPORT
17 #define IPC_MESSAGE_EXPORT GPU_EXPORT 14 #define IPC_MESSAGE_EXPORT GPU_EXPORT
18 15
19 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::Error, gpu::error::kErrorLast) 16 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::Error, gpu::error::kErrorLast)
20 IPC_ENUM_TRAITS_MIN_MAX_VALUE( 17 IPC_ENUM_TRAITS_MIN_MAX_VALUE(
21 gpu::CommandBufferNamespace, 18 gpu::CommandBufferNamespace,
22 gpu::CommandBufferNamespace::INVALID, 19 gpu::CommandBufferNamespace::INVALID,
23 gpu::CommandBufferNamespace::NUM_COMMAND_BUFFER_NAMESPACES - 1) 20 gpu::CommandBufferNamespace::NUM_COMMAND_BUFFER_NAMESPACES - 1)
24 IPC_ENUM_TRAITS_MAX_VALUE(gl::GpuPreference, gl::GpuPreferenceLast)
25 IPC_ENUM_TRAITS_MAX_VALUE(gpu::gles2::ContextType,
26 gpu::gles2::CONTEXT_TYPE_LAST)
27 21
28 IPC_STRUCT_TRAITS_BEGIN(gpu::Capabilities::ShaderPrecision) 22 IPC_STRUCT_TRAITS_BEGIN(gpu::Capabilities::ShaderPrecision)
29 IPC_STRUCT_TRAITS_MEMBER(min_range) 23 IPC_STRUCT_TRAITS_MEMBER(min_range)
30 IPC_STRUCT_TRAITS_MEMBER(max_range) 24 IPC_STRUCT_TRAITS_MEMBER(max_range)
31 IPC_STRUCT_TRAITS_MEMBER(precision) 25 IPC_STRUCT_TRAITS_MEMBER(precision)
32 IPC_STRUCT_TRAITS_END() 26 IPC_STRUCT_TRAITS_END()
33 27
34 IPC_STRUCT_TRAITS_BEGIN(gpu::Capabilities::PerStagePrecisions) 28 IPC_STRUCT_TRAITS_BEGIN(gpu::Capabilities::PerStagePrecisions)
35 IPC_STRUCT_TRAITS_MEMBER(low_int) 29 IPC_STRUCT_TRAITS_MEMBER(low_int)
36 IPC_STRUCT_TRAITS_MEMBER(medium_int) 30 IPC_STRUCT_TRAITS_MEMBER(medium_int)
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 IPC_STRUCT_TRAITS_MEMBER(flips_vertically) 113 IPC_STRUCT_TRAITS_MEMBER(flips_vertically)
120 IPC_STRUCT_TRAITS_MEMBER(disable_webgl_multisampling_color_mask_usage) 114 IPC_STRUCT_TRAITS_MEMBER(disable_webgl_multisampling_color_mask_usage)
121 IPC_STRUCT_TRAITS_MEMBER(disable_webgl_rgb_multisampling_usage) 115 IPC_STRUCT_TRAITS_MEMBER(disable_webgl_rgb_multisampling_usage)
122 IPC_STRUCT_TRAITS_MEMBER(msaa_is_slow) 116 IPC_STRUCT_TRAITS_MEMBER(msaa_is_slow)
123 IPC_STRUCT_TRAITS_MEMBER(chromium_image_rgb_emulation) 117 IPC_STRUCT_TRAITS_MEMBER(chromium_image_rgb_emulation)
124 IPC_STRUCT_TRAITS_MEMBER(emulate_rgb_buffer_with_rgba) 118 IPC_STRUCT_TRAITS_MEMBER(emulate_rgb_buffer_with_rgba)
125 119
126 IPC_STRUCT_TRAITS_MEMBER(major_version) 120 IPC_STRUCT_TRAITS_MEMBER(major_version)
127 IPC_STRUCT_TRAITS_MEMBER(minor_version) 121 IPC_STRUCT_TRAITS_MEMBER(minor_version)
128 IPC_STRUCT_TRAITS_END() 122 IPC_STRUCT_TRAITS_END()
129
130 IPC_STRUCT_TRAITS_BEGIN(gpu::gles2::ContextCreationAttribHelper)
131 IPC_STRUCT_TRAITS_MEMBER(offscreen_framebuffer_size)
132 IPC_STRUCT_TRAITS_MEMBER(gpu_preference)
133 IPC_STRUCT_TRAITS_MEMBER(alpha_size)
134 IPC_STRUCT_TRAITS_MEMBER(blue_size)
135 IPC_STRUCT_TRAITS_MEMBER(green_size)
136 IPC_STRUCT_TRAITS_MEMBER(red_size)
137 IPC_STRUCT_TRAITS_MEMBER(depth_size)
138 IPC_STRUCT_TRAITS_MEMBER(stencil_size)
139 IPC_STRUCT_TRAITS_MEMBER(samples)
140 IPC_STRUCT_TRAITS_MEMBER(sample_buffers)
141 IPC_STRUCT_TRAITS_MEMBER(buffer_preserved)
142 IPC_STRUCT_TRAITS_MEMBER(bind_generates_resource)
143 IPC_STRUCT_TRAITS_MEMBER(fail_if_major_perf_caveat)
144 IPC_STRUCT_TRAITS_MEMBER(lose_context_when_out_of_memory)
145 IPC_STRUCT_TRAITS_MEMBER(context_type)
146 IPC_STRUCT_TRAITS_END()
OLDNEW
« no previous file with comments | « gpu/ipc/common/BUILD.gn ('k') | gpu/ipc/common/gpu_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698