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

Unified Diff: cc/ipc/cc_param_traits_macros.h

Issue 2088273003: Video Color Managament (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bugfix 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
Index: cc/ipc/cc_param_traits_macros.h
diff --git a/cc/ipc/cc_param_traits_macros.h b/cc/ipc/cc_param_traits_macros.h
index 655ea26ffdcd6da8d5937e42cd4d4b4a942aab23..33e32418e7e9c8604461ab6afb4b7c5d255993e8 100644
--- a/cc/ipc/cc_param_traits_macros.h
+++ b/cc/ipc/cc_param_traits_macros.h
@@ -41,6 +41,14 @@ IPC_ENUM_TRAITS_MAX_VALUE(SkXfermode::Mode, SkXfermode::kLastMode)
IPC_ENUM_TRAITS_MAX_VALUE(cc::YUVVideoDrawQuad::ColorSpace,
cc::YUVVideoDrawQuad::COLOR_SPACE_LAST)
+// TODO(hubbe): These traits belongs with media code.
+IPC_ENUM_TRAITS_MAX_VALUE(media::VideoColorSpace::PrimaryID,
+ media::VideoColorSpace::PRI_LAST);
+IPC_ENUM_TRAITS_MAX_VALUE(media::VideoColorSpace::TransferID,
+ media::VideoColorSpace::TRC_LAST);
+IPC_ENUM_TRAITS_MAX_VALUE(media::VideoColorSpace::MatrixID,
+ media::VideoColorSpace::SPC_LAST);
+
IPC_STRUCT_TRAITS_BEGIN(cc::RenderPassId)
IPC_STRUCT_TRAITS_MEMBER(layer_id)
IPC_STRUCT_TRAITS_MEMBER(index)
@@ -124,10 +132,18 @@ IPC_STRUCT_TRAITS_BEGIN(cc::YUVVideoDrawQuad)
IPC_STRUCT_TRAITS_MEMBER(ya_tex_size)
IPC_STRUCT_TRAITS_MEMBER(uv_tex_size)
IPC_STRUCT_TRAITS_MEMBER(color_space)
+ IPC_STRUCT_TRAITS_MEMBER(video_color_space)
IPC_STRUCT_TRAITS_MEMBER(resource_offset)
IPC_STRUCT_TRAITS_MEMBER(resource_multiplier)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(media::VideoColorSpace)
+ IPC_STRUCT_TRAITS_MEMBER(primaries)
+ IPC_STRUCT_TRAITS_MEMBER(transfer)
+ IPC_STRUCT_TRAITS_MEMBER(matrix)
+ IPC_STRUCT_TRAITS_MEMBER(full_range)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_TRAITS_BEGIN(cc::SharedQuadState)
IPC_STRUCT_TRAITS_MEMBER(quad_to_target_transform)
IPC_STRUCT_TRAITS_MEMBER(quad_layer_bounds)
« no previous file with comments | « cc/cc.gyp ('k') | cc/ipc/cc_param_traits_unittest.cc » ('j') | cc/output/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698