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

Unified Diff: ui/gfx/ipc/color/gfx_param_traits.h

Issue 2150013003: Add IPC support for gfx::ColorSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl try 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 | « ui/gfx/ipc/color/gfx_ipc_color_export.h ('k') | ui/gfx/ipc/color/gfx_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/ipc/color/gfx_param_traits.h
diff --git a/media/gpu/ipc/common/media_param_traits.h b/ui/gfx/ipc/color/gfx_param_traits.h
similarity index 53%
copy from media/gpu/ipc/common/media_param_traits.h
copy to ui/gfx/ipc/color/gfx_param_traits.h
index cd7154604bc2f007157d2d45ead9317a6c8c196b..9fa41f36f92349203dbc2bbbf0445c1aad81c90e 100644
--- a/media/gpu/ipc/common/media_param_traits.h
+++ b/ui/gfx/ipc/color/gfx_param_traits.h
@@ -2,17 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MEDIA_GPU_IPC_COMMON_MEDIA_PARAM_TRAITS_H_
-#define MEDIA_GPU_IPC_COMMON_MEDIA_PARAM_TRAITS_H_
+#ifndef UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_H_
+#define UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_H_
-#include "media/base/bitstream_buffer.h"
-#include "media/gpu/ipc/common/media_param_traits_macros.h"
+#include "ipc/ipc_message_utils.h"
+#include "ipc/param_traits_macros.h"
+#include "ipc/ipc_message_macros.h"
+#include "ui/gfx/color_space.h"
+#include "ui/gfx/ipc/color/gfx_ipc_color_export.h"
+
+namespace gfx {
+class ColorSpace;
+}
namespace IPC {
template <>
-struct ParamTraits<media::BitstreamBuffer> {
- using param_type = media::BitstreamBuffer;
+struct GFX_IPC_COLOR_EXPORT ParamTraits<gfx::ColorSpace> {
+ typedef gfx::ColorSpace param_type;
static void GetSize(base::PickleSizer* s, const param_type& p);
static void Write(base::Pickle* m, const param_type& p);
static bool Read(const base::Pickle* m,
@@ -23,4 +30,4 @@ struct ParamTraits<media::BitstreamBuffer> {
} // namespace IPC
-#endif // MEDIA_GPU_IPC_COMMON_MEDIA_PARAM_TRAITS_H_
+#endif // UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_H_
« no previous file with comments | « ui/gfx/ipc/color/gfx_ipc_color_export.h ('k') | ui/gfx/ipc/color/gfx_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698