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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/common/gpu_command_buffer_traits_multi.h
diff --git a/gpu/ipc/common/gpu_command_buffer_traits_multi.h b/gpu/ipc/common/gpu_command_buffer_traits_multi.h
index 4994e4224a8fa65022cc19d3d006577ab1508e4c..2b893b4a30ae168765615c8092f653865dc36b82 100644
--- a/gpu/ipc/common/gpu_command_buffer_traits_multi.h
+++ b/gpu/ipc/common/gpu_command_buffer_traits_multi.h
@@ -6,9 +6,12 @@
#include "gpu/command_buffer/common/capabilities.h"
#include "gpu/command_buffer/common/constants.h"
+#include "gpu/command_buffer/common/gles2_cmd_utils.h"
#include "gpu/gpu_export.h"
#include "ipc/ipc_message_utils.h"
#include "ipc/param_traits_macros.h"
+#include "ui/gfx/ipc/geometry/gfx_param_traits.h"
+#include "ui/gl/gpu_preference.h"
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT GPU_EXPORT
@@ -18,6 +21,9 @@ IPC_ENUM_TRAITS_MIN_MAX_VALUE(
gpu::CommandBufferNamespace,
gpu::CommandBufferNamespace::INVALID,
gpu::CommandBufferNamespace::NUM_COMMAND_BUFFER_NAMESPACES - 1)
+IPC_ENUM_TRAITS_MAX_VALUE(gl::GpuPreference, gl::GpuPreferenceLast)
+IPC_ENUM_TRAITS_MAX_VALUE(gpu::gles2::ContextType,
+ gpu::gles2::CONTEXT_TYPE_LAST)
IPC_STRUCT_TRAITS_BEGIN(gpu::Capabilities::ShaderPrecision)
IPC_STRUCT_TRAITS_MEMBER(min_range)
@@ -120,3 +126,22 @@ IPC_STRUCT_TRAITS_BEGIN(gpu::Capabilities)
IPC_STRUCT_TRAITS_MEMBER(major_version)
IPC_STRUCT_TRAITS_MEMBER(minor_version)
IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(gpu::gles2::ContextCreationAttribHelper)
+ IPC_STRUCT_TRAITS_MEMBER(offscreen_framebuffer_size)
+ IPC_STRUCT_TRAITS_MEMBER(gpu_preference)
+ IPC_STRUCT_TRAITS_MEMBER(alpha_size)
+ IPC_STRUCT_TRAITS_MEMBER(blue_size)
+ IPC_STRUCT_TRAITS_MEMBER(green_size)
+ IPC_STRUCT_TRAITS_MEMBER(red_size)
+ IPC_STRUCT_TRAITS_MEMBER(depth_size)
+ IPC_STRUCT_TRAITS_MEMBER(stencil_size)
+ IPC_STRUCT_TRAITS_MEMBER(samples)
+ IPC_STRUCT_TRAITS_MEMBER(sample_buffers)
+ IPC_STRUCT_TRAITS_MEMBER(buffer_preserved)
+ IPC_STRUCT_TRAITS_MEMBER(bind_generates_resource)
+ IPC_STRUCT_TRAITS_MEMBER(fail_if_major_perf_caveat)
+ IPC_STRUCT_TRAITS_MEMBER(lose_context_when_out_of_memory)
+ IPC_STRUCT_TRAITS_MEMBER(context_type)
+ IPC_STRUCT_TRAITS_MEMBER(should_use_native_gmb_for_backbuffer)
+IPC_STRUCT_TRAITS_END()
« 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