Index: components/mus/common/gpu_type_converters.h |
diff --git a/components/mus/gpu/gpu_type_converters.h b/components/mus/common/gpu_type_converters.h |
similarity index 57% |
rename from components/mus/gpu/gpu_type_converters.h |
rename to components/mus/common/gpu_type_converters.h |
index c3424386c9509bb35eda526e7e40361eb2ab0019..43346e1ef9578631faa8b52ee888b0a5ddf94b30 100644 |
--- a/components/mus/gpu/gpu_type_converters.h |
+++ b/components/mus/common/gpu_type_converters.h |
@@ -2,10 +2,11 @@ |
// 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_ |
+#ifndef COMPONENTS_MUS_COMMON_GPU_TYPE_CONVERTERS_H_ |
+#define COMPONENTS_MUS_COMMON_GPU_TYPE_CONVERTERS_H_ |
#include "build/build_config.h" |
+#include "components/mus/common/mus_common_export.h" |
#include "components/mus/public/interfaces/channel_handle.mojom.h" |
#include "components/mus/public/interfaces/gpu_memory_buffer.mojom.h" |
#include "mojo/public/cpp/bindings/type_converter.h" |
@@ -24,57 +25,61 @@ struct ChannelHandle; |
namespace mojo { |
template <> |
-struct TypeConverter<mus::mojom::ChannelHandlePtr, IPC::ChannelHandle> { |
+struct MUS_COMMON_EXPORT |
+ TypeConverter<mus::mojom::ChannelHandlePtr, IPC::ChannelHandle> { |
static mus::mojom::ChannelHandlePtr Convert(const IPC::ChannelHandle& handle); |
}; |
template <> |
-struct TypeConverter<IPC::ChannelHandle, mus::mojom::ChannelHandlePtr> { |
+struct MUS_COMMON_EXPORT |
+ TypeConverter<IPC::ChannelHandle, mus::mojom::ChannelHandlePtr> { |
static IPC::ChannelHandle Convert(const mus::mojom::ChannelHandlePtr& handle); |
}; |
#if defined(USE_OZONE) |
template <> |
-struct TypeConverter<mus::mojom::NativePixmapHandlePtr, |
- gfx::NativePixmapHandle> { |
+struct MUS_COMMON_EXPORT |
+ TypeConverter<mus::mojom::NativePixmapHandlePtr, gfx::NativePixmapHandle> { |
static mus::mojom::NativePixmapHandlePtr Convert( |
const gfx::NativePixmapHandle& handle); |
}; |
template <> |
-struct TypeConverter<gfx::NativePixmapHandle, |
- mus::mojom::NativePixmapHandlePtr> { |
+struct MUS_COMMON_EXPORT |
+ TypeConverter<gfx::NativePixmapHandle, mus::mojom::NativePixmapHandlePtr> { |
static gfx::NativePixmapHandle Convert( |
const mus::mojom::NativePixmapHandlePtr& handle); |
}; |
#endif |
template <> |
-struct TypeConverter<mus::mojom::GpuMemoryBufferIdPtr, gfx::GpuMemoryBufferId> { |
+struct MUS_COMMON_EXPORT |
+ TypeConverter<mus::mojom::GpuMemoryBufferIdPtr, gfx::GpuMemoryBufferId> { |
static mus::mojom::GpuMemoryBufferIdPtr Convert( |
const gfx::GpuMemoryBufferId& id); |
}; |
template <> |
-struct TypeConverter<gfx::GpuMemoryBufferId, mus::mojom::GpuMemoryBufferIdPtr> { |
+struct MUS_COMMON_EXPORT |
+ TypeConverter<gfx::GpuMemoryBufferId, mus::mojom::GpuMemoryBufferIdPtr> { |
static gfx::GpuMemoryBufferId Convert( |
const mus::mojom::GpuMemoryBufferIdPtr& id); |
}; |
template <> |
-struct TypeConverter<mus::mojom::GpuMemoryBufferHandlePtr, |
- gfx::GpuMemoryBufferHandle> { |
+struct MUS_COMMON_EXPORT TypeConverter<mus::mojom::GpuMemoryBufferHandlePtr, |
+ gfx::GpuMemoryBufferHandle> { |
static mus::mojom::GpuMemoryBufferHandlePtr Convert( |
const gfx::GpuMemoryBufferHandle& handle); |
}; |
template <> |
-struct TypeConverter<gfx::GpuMemoryBufferHandle, |
- mus::mojom::GpuMemoryBufferHandlePtr> { |
+struct MUS_COMMON_EXPORT TypeConverter<gfx::GpuMemoryBufferHandle, |
+ mus::mojom::GpuMemoryBufferHandlePtr> { |
static gfx::GpuMemoryBufferHandle Convert( |
const mus::mojom::GpuMemoryBufferHandlePtr& handle); |
}; |
} // namespace mojo |
-#endif // COMPONENTS_MUS_GPU_GPU_TYPE_CONVERTERS_H_ |
+#endif // COMPONENTS_MUS_COMMON_GPU_TYPE_CONVERTERS_H_ |