| Index: gpu/ipc/common/gpu_info_struct_traits.h
|
| diff --git a/gpu/ipc/common/gpu_info_struct_traits.h b/gpu/ipc/common/gpu_info_struct_traits.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..23a3f17b5da6d488bc7bf4115fa17a02e0fc69d5
|
| --- /dev/null
|
| +++ b/gpu/ipc/common/gpu_info_struct_traits.h
|
| @@ -0,0 +1,38 @@
|
| +// 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 CC_IPC_GPU_STRUCT_TRAITS_H_
|
| +#define CC_IPC_GPU_STRUCT_TRAITS_H_
|
| +
|
| +#include "gpu/ipc/common/gpu_info.mojom.h"
|
| +
|
| +namespace gpu {
|
| +struct GPUInfo;
|
| +struct GPUDevice;
|
| +}
|
| +
|
| +namespace mojo {
|
| +
|
| +template <>
|
| +struct StructTraits<gpu::mojom::GpuDevice, gpu::GPUInfo::GPUDevice> {
|
| + static bool Read(gpu::mojom::GpuDeviceDataView data,
|
| + gpu::GPUInfo::GPUDevice* out);
|
| +};
|
| +
|
| +template <>
|
| +struct EnumTraits<gpu::mojom::CollectInfoResult, gpu::CollectInfoResult> {
|
| + static gpu::mojom::CollectInfoResult ToMojom(
|
| + gpu::CollectInfoResult collect_info_result);
|
| +
|
| + static bool FromMojom(gpu::mojom::CollectInfoResult input,
|
| + gpu::CollectInfoResult* out);
|
| +};
|
| +
|
| +template <>
|
| +struct StructTraits<gpu::mojom::GpuInfo, gpu::GPUInfo> {
|
| + static bool Read(gpu::mojom::GpuInfoDataView data, gpu::GPUInfo* out);
|
| +};
|
| +
|
| +} // namespace mojo
|
| +#endif // CC_IPC_GPU_STRUCT_TRAITS_H_
|
|
|