| Index: components/mus/gpu/gpu_type_converters.h
|
| diff --git a/components/mus/gpu/gpu_type_converters.h b/components/mus/gpu/gpu_type_converters.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6de95fd7c1a46fa8bc4b4287c9a2ac8ee9cef48c
|
| --- /dev/null
|
| +++ b/components/mus/gpu/gpu_type_converters.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_MUS_GPU_GPU_TYPE_CONVERTERS_H_
|
| +#define COMPONENTS_MUS_GPU_GPU_TYPE_CONVERTERS_H_
|
| +
|
| +#include "components/mus/public/interfaces/channel_handle.mojom.h"
|
| +#include "mojo/public/cpp/bindings/type_converter.h"
|
| +
|
| +namespace IPC {
|
| +struct ChannelHandle;
|
| +}
|
| +
|
| +namespace mojo {
|
| +
|
| +template <>
|
| +struct TypeConverter<mus::mojom::ChannelHandlePtr, IPC::ChannelHandle> {
|
| + static mus::mojom::ChannelHandlePtr Convert(const IPC::ChannelHandle& handle);
|
| +};
|
| +
|
| +template <>
|
| +struct TypeConverter<IPC::ChannelHandle, mus::mojom::ChannelHandlePtr> {
|
| + static IPC::ChannelHandle Convert(const mus::mojom::ChannelHandlePtr& handle);
|
| +};
|
| +
|
| +} // namespace mojo
|
| +
|
| +#endif // COMPONENTS_MUS_GPU_GPU_TYPE_CONVERTERS_H_
|
|
|