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

Unified Diff: components/mus/public/cpp/property_type_converters.h

Issue 1976703003: Impl mus::mojom::GpuService to enable using Chrome IPC version gpu CmdBuf in mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 7 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
Index: components/mus/public/cpp/property_type_converters.h
diff --git a/components/mus/public/cpp/property_type_converters.h b/components/mus/public/cpp/property_type_converters.h
index 5676253e8108fc3a53746a9f5f2127f92b002ef0..335fa4b4a0382e72d41ae7c5e57ab2c40fbc3103 100644
--- a/components/mus/public/cpp/property_type_converters.h
+++ b/components/mus/public/cpp/property_type_converters.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/strings/string16.h"
+#include "components/mus/public/cpp/mus_public_export.h"
#include "mojo/public/cpp/bindings/type_converter.h"
class SkBitmap;
@@ -27,67 +28,67 @@ namespace mojo {
// replaced with the skia.Bitmap mojom struct serialization.
template <>
-struct TypeConverter<std::vector<uint8_t>, gfx::Rect> {
+struct MUS_PUBLIC_EXPORT TypeConverter<std::vector<uint8_t>, gfx::Rect> {
static std::vector<uint8_t> Convert(const gfx::Rect& input);
};
template <>
-struct TypeConverter<gfx::Rect, std::vector<uint8_t>> {
+struct MUS_PUBLIC_EXPORT TypeConverter<gfx::Rect, std::vector<uint8_t>> {
static gfx::Rect Convert(const std::vector<uint8_t>& input);
};
template <>
-struct TypeConverter<std::vector<uint8_t>, gfx::Size> {
+struct MUS_PUBLIC_EXPORT TypeConverter<std::vector<uint8_t>, gfx::Size> {
static std::vector<uint8_t> Convert(const gfx::Size& input);
};
template <>
-struct TypeConverter<gfx::Size, std::vector<uint8_t>> {
+struct MUS_PUBLIC_EXPORT TypeConverter<gfx::Size, std::vector<uint8_t>> {
static gfx::Size Convert(const std::vector<uint8_t>& input);
};
template <>
-struct TypeConverter<std::vector<uint8_t>, int32_t> {
+struct MUS_PUBLIC_EXPORT TypeConverter<std::vector<uint8_t>, int32_t> {
static std::vector<uint8_t> Convert(const int32_t& input);
};
template <>
-struct TypeConverter<int32_t, std::vector<uint8_t>> {
+struct MUS_PUBLIC_EXPORT TypeConverter<int32_t, std::vector<uint8_t>> {
static int32_t Convert(const std::vector<uint8_t>& input);
};
template <>
-struct TypeConverter<std::vector<uint8_t>, base::string16> {
+struct MUS_PUBLIC_EXPORT TypeConverter<std::vector<uint8_t>, base::string16> {
static std::vector<uint8_t> Convert(const base::string16& input);
};
template <>
-struct TypeConverter<base::string16, std::vector<uint8_t>> {
+struct MUS_PUBLIC_EXPORT TypeConverter<base::string16, std::vector<uint8_t>> {
static base::string16 Convert(const std::vector<uint8_t>& input);
};
template <>
-struct TypeConverter<std::vector<uint8_t>, std::string> {
+struct MUS_PUBLIC_EXPORT TypeConverter<std::vector<uint8_t>, std::string> {
static std::vector<uint8_t> Convert(const std::string& input);
};
template <>
-struct TypeConverter<std::string, std::vector<uint8_t>> {
+struct MUS_PUBLIC_EXPORT TypeConverter<std::string, std::vector<uint8_t>> {
static std::string Convert(const std::vector<uint8_t>& input);
};
// NOTE: These methods only serialize and deserialize the common case of RGBA
// 8888 bitmaps with premultiplied alpha.
template <>
-struct TypeConverter<std::vector<uint8_t>, SkBitmap> {
+struct MUS_PUBLIC_EXPORT TypeConverter<std::vector<uint8_t>, SkBitmap> {
static std::vector<uint8_t> Convert(const SkBitmap& input);
};
template <>
-struct TypeConverter<SkBitmap, std::vector<uint8_t>> {
+struct MUS_PUBLIC_EXPORT TypeConverter<SkBitmap, std::vector<uint8_t>> {
static SkBitmap Convert(const std::vector<uint8_t>& input);
};
template <>
-struct TypeConverter<std::vector<uint8_t>, bool> {
+struct MUS_PUBLIC_EXPORT TypeConverter<std::vector<uint8_t>, bool> {
static std::vector<uint8_t> Convert(bool input);
};
template <>
-struct TypeConverter<bool, std::vector<uint8_t>> {
+struct MUS_PUBLIC_EXPORT TypeConverter<bool, std::vector<uint8_t>> {
static bool Convert(const std::vector<uint8_t>& input);
};

Powered by Google App Engine
This is Rietveld 408576698