2020-08-26 17:08:12 +02:00
|
|
|
--- a/tools/sk_app/WindowContext.h
|
|
|
|
+++ b/tools/sk_app/WindowContext.h
|
2021-08-12 13:24:07 +02:00
|
|
|
@@ -18,7 +18,7 @@
|
2020-08-26 17:08:12 +02:00
|
|
|
|
|
|
|
namespace sk_app {
|
|
|
|
|
|
|
|
-class WindowContext {
|
2021-08-12 13:24:07 +02:00
|
|
|
+class SK_API WindowContext {
|
2020-08-26 17:08:12 +02:00
|
|
|
public:
|
|
|
|
WindowContext(const DisplayParams&);
|
|
|
|
|
2019-10-21 13:04:49 +02:00
|
|
|
diff --git a/tools/sk_app/unix/WindowContextFactory_unix.h b/tools/sk_app/unix/WindowContextFactory_unix.h
|
2020-06-30 17:58:12 +02:00
|
|
|
index 11bd2d2ac2..09c92dc417 100644
|
2019-10-21 13:04:49 +02:00
|
|
|
--- a/tools/sk_app/unix/WindowContextFactory_unix.h
|
|
|
|
+++ b/tools/sk_app/unix/WindowContextFactory_unix.h
|
|
|
|
@@ -36,15 +36,15 @@ struct XlibWindowInfo {
|
|
|
|
int fHeight;
|
|
|
|
};
|
|
|
|
|
|
|
|
-std::unique_ptr<WindowContext> MakeVulkanForXlib(const XlibWindowInfo&, const DisplayParams&);
|
|
|
|
+SK_API std::unique_ptr<WindowContext> MakeVulkanForXlib(const XlibWindowInfo&, const DisplayParams&);
|
|
|
|
|
|
|
|
-std::unique_ptr<WindowContext> MakeGLForXlib(const XlibWindowInfo&, const DisplayParams&);
|
|
|
|
+SK_API std::unique_ptr<WindowContext> MakeGLForXlib(const XlibWindowInfo&, const DisplayParams&);
|
|
|
|
|
|
|
|
#ifdef SK_DAWN
|
|
|
|
-std::unique_ptr<WindowContext> MakeDawnVulkanForXlib(const XlibWindowInfo&, const DisplayParams&);
|
|
|
|
+SK_API std::unique_ptr<WindowContext> MakeDawnVulkanForXlib(const XlibWindowInfo&, const DisplayParams&);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
-std::unique_ptr<WindowContext> MakeRasterForXlib(const XlibWindowInfo&, const DisplayParams&);
|
|
|
|
+SK_API std::unique_ptr<WindowContext> MakeRasterForXlib(const XlibWindowInfo&, const DisplayParams&);
|
|
|
|
|
|
|
|
} // namespace window_context_factory
|
|
|
|
|
|
|
|
diff --git a/tools/sk_app/win/WindowContextFactory_win.h b/tools/sk_app/win/WindowContextFactory_win.h
|
2020-06-30 17:58:12 +02:00
|
|
|
index c05a4f0acf..fc27cd2afb 100644
|
2019-10-21 13:04:49 +02:00
|
|
|
--- a/tools/sk_app/win/WindowContextFactory_win.h
|
|
|
|
+++ b/tools/sk_app/win/WindowContextFactory_win.h
|
2020-06-30 17:58:12 +02:00
|
|
|
@@ -20,21 +20,21 @@ struct DisplayParams;
|
2019-10-21 13:04:49 +02:00
|
|
|
|
|
|
|
namespace window_context_factory {
|
|
|
|
|
|
|
|
-std::unique_ptr<WindowContext> MakeVulkanForWin(HWND, const DisplayParams&);
|
|
|
|
+SK_API std::unique_ptr<WindowContext> MakeVulkanForWin(HWND, const DisplayParams&);
|
|
|
|
|
|
|
|
-std::unique_ptr<WindowContext> MakeGLForWin(HWND, const DisplayParams&);
|
|
|
|
+SK_API std::unique_ptr<WindowContext> MakeGLForWin(HWND, const DisplayParams&);
|
|
|
|
|
|
|
|
-std::unique_ptr<WindowContext> MakeANGLEForWin(HWND, const DisplayParams&);
|
|
|
|
+SK_API std::unique_ptr<WindowContext> MakeANGLEForWin(HWND, const DisplayParams&);
|
|
|
|
|
2020-06-30 17:58:12 +02:00
|
|
|
#ifdef SK_DIRECT3D
|
|
|
|
-std::unique_ptr<WindowContext> MakeD3D12ForWin(HWND, const DisplayParams&);
|
|
|
|
+SK_API std::unique_ptr<WindowContext> MakeD3D12ForWin(HWND, const DisplayParams&);
|
|
|
|
#endif
|
|
|
|
|
2019-10-21 13:04:49 +02:00
|
|
|
#ifdef SK_DAWN
|
|
|
|
-std::unique_ptr<WindowContext> MakeDawnD3D12ForWin(HWND, const DisplayParams&);
|
|
|
|
+SK_API std::unique_ptr<WindowContext> MakeDawnD3D12ForWin(HWND, const DisplayParams&);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
-std::unique_ptr<WindowContext> MakeRasterForWin(HWND, const DisplayParams&);
|
|
|
|
+SK_API std::unique_ptr<WindowContext> MakeRasterForWin(HWND, const DisplayParams&);
|
|
|
|
|
|
|
|
} // namespace window_context_factory
|
|
|
|
|
2021-08-18 19:26:45 +02:00
|
|
|
diff --git a/tools/sk_app/mac/WindowContextFactory_mac.h b/tools/sk_app/mac/WindowContextFactory_mac.h
|
|
|
|
index acf860ae4b..cdb2ee8027 100644
|
|
|
|
--- a/tools/sk_app/mac/WindowContextFactory_mac.h
|
|
|
|
+++ b/tools/sk_app/mac/WindowContextFactory_mac.h
|
|
|
|
@@ -48,7 +48,7 @@ std::unique_ptr<WindowContext> MakeDawnMTLForMac(const MacWindowInfo&, const Dis
|
|
|
|
|
|
|
|
std::unique_ptr<WindowContext> MakeRasterForMac(const MacWindowInfo&, const DisplayParams&);
|
|
|
|
#ifdef SK_METAL
|
|
|
|
-std::unique_ptr<WindowContext> MakeMetalForMac(const MacWindowInfo&, const DisplayParams&);
|
|
|
|
+SK_API std::unique_ptr<WindowContext> MakeMetalForMac(const MacWindowInfo&, const DisplayParams&);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
} // namespace window_context_factory
|