| 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_
|
|
|