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

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

Issue 2104403003: 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: rebase 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"
9 #include "gpu/gpu_export.h" 10 #include "gpu/gpu_export.h"
10 #include "ipc/ipc_message_utils.h" 11 #include "ipc/ipc_message_utils.h"
11 #include "ipc/param_traits_macros.h" 12 #include "ipc/param_traits_macros.h"
13 #include "ui/gfx/ipc/geometry/gfx_param_traits.h"
14 #include "ui/gl/gpu_preference.h"
12 15
13 #undef IPC_MESSAGE_EXPORT 16 #undef IPC_MESSAGE_EXPORT
14 #define IPC_MESSAGE_EXPORT GPU_EXPORT 17 #define IPC_MESSAGE_EXPORT GPU_EXPORT
15 18
16 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::Error, gpu::error::kErrorLast) 19 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::Error, gpu::error::kErrorLast)
17 IPC_ENUM_TRAITS_MIN_MAX_VALUE( 20 IPC_ENUM_TRAITS_MIN_MAX_VALUE(
18 gpu::CommandBufferNamespace, 21 gpu::CommandBufferNamespace,
19 gpu::CommandBufferNamespace::INVALID, 22 gpu::CommandBufferNamespace::INVALID,
20 gpu::CommandBufferNamespace::NUM_COMMAND_BUFFER_NAMESPACES - 1) 23 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)
21 27
22 IPC_STRUCT_TRAITS_BEGIN(gpu::Capabilities::ShaderPrecision) 28 IPC_STRUCT_TRAITS_BEGIN(gpu::Capabilities::ShaderPrecision)
23 IPC_STRUCT_TRAITS_MEMBER(min_range) 29 IPC_STRUCT_TRAITS_MEMBER(min_range)
24 IPC_STRUCT_TRAITS_MEMBER(max_range) 30 IPC_STRUCT_TRAITS_MEMBER(max_range)
25 IPC_STRUCT_TRAITS_MEMBER(precision) 31 IPC_STRUCT_TRAITS_MEMBER(precision)
26 IPC_STRUCT_TRAITS_END() 32 IPC_STRUCT_TRAITS_END()
27 33
28 IPC_STRUCT_TRAITS_BEGIN(gpu::Capabilities::PerStagePrecisions) 34 IPC_STRUCT_TRAITS_BEGIN(gpu::Capabilities::PerStagePrecisions)
29 IPC_STRUCT_TRAITS_MEMBER(low_int) 35 IPC_STRUCT_TRAITS_MEMBER(low_int)
30 IPC_STRUCT_TRAITS_MEMBER(medium_int) 36 IPC_STRUCT_TRAITS_MEMBER(medium_int)
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 IPC_STRUCT_TRAITS_MEMBER(flips_vertically) 119 IPC_STRUCT_TRAITS_MEMBER(flips_vertically)
114 IPC_STRUCT_TRAITS_MEMBER(disable_multisampling_color_mask_usage) 120 IPC_STRUCT_TRAITS_MEMBER(disable_multisampling_color_mask_usage)
115 IPC_STRUCT_TRAITS_MEMBER(disable_webgl_rgb_multisampling_usage) 121 IPC_STRUCT_TRAITS_MEMBER(disable_webgl_rgb_multisampling_usage)
116 IPC_STRUCT_TRAITS_MEMBER(msaa_is_slow) 122 IPC_STRUCT_TRAITS_MEMBER(msaa_is_slow)
117 IPC_STRUCT_TRAITS_MEMBER(chromium_image_rgb_emulation) 123 IPC_STRUCT_TRAITS_MEMBER(chromium_image_rgb_emulation)
118 IPC_STRUCT_TRAITS_MEMBER(emulate_rgb_buffer_with_rgba) 124 IPC_STRUCT_TRAITS_MEMBER(emulate_rgb_buffer_with_rgba)
119 125
120 IPC_STRUCT_TRAITS_MEMBER(major_version) 126 IPC_STRUCT_TRAITS_MEMBER(major_version)
121 IPC_STRUCT_TRAITS_MEMBER(minor_version) 127 IPC_STRUCT_TRAITS_MEMBER(minor_version)
122 IPC_STRUCT_TRAITS_END() 128 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_MEMBER(should_use_native_gmb_for_backbuffer)
147 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