1 --- a/tools/sk_app/WindowContext.h
2 +++ b/tools/sk_app/WindowContext.h
9 +#if defined __clang__ && !defined _MSC_VER
10 +__attribute__((type_visibility("default")))
14 WindowContext(const DisplayParams&);
16 diff --git a/tools/sk_app/unix/WindowContextFactory_unix.h b/tools/sk_app/unix/WindowContextFactory_unix.h
17 index 11bd2d2ac2..09c92dc417 100644
18 --- a/tools/sk_app/unix/WindowContextFactory_unix.h
19 +++ b/tools/sk_app/unix/WindowContextFactory_unix.h
20 @@ -36,15 +36,15 @@ struct XlibWindowInfo {
24 -std::unique_ptr<WindowContext> MakeVulkanForXlib(const XlibWindowInfo&, const DisplayParams&);
25 +SK_API std::unique_ptr<WindowContext> MakeVulkanForXlib(const XlibWindowInfo&, const DisplayParams&);
27 -std::unique_ptr<WindowContext> MakeGLForXlib(const XlibWindowInfo&, const DisplayParams&);
28 +SK_API std::unique_ptr<WindowContext> MakeGLForXlib(const XlibWindowInfo&, const DisplayParams&);
31 -std::unique_ptr<WindowContext> MakeDawnVulkanForXlib(const XlibWindowInfo&, const DisplayParams&);
32 +SK_API std::unique_ptr<WindowContext> MakeDawnVulkanForXlib(const XlibWindowInfo&, const DisplayParams&);
35 -std::unique_ptr<WindowContext> MakeRasterForXlib(const XlibWindowInfo&, const DisplayParams&);
36 +SK_API std::unique_ptr<WindowContext> MakeRasterForXlib(const XlibWindowInfo&, const DisplayParams&);
38 } // namespace window_context_factory
40 diff --git a/tools/sk_app/win/WindowContextFactory_win.h b/tools/sk_app/win/WindowContextFactory_win.h
41 index c05a4f0acf..fc27cd2afb 100644
42 --- a/tools/sk_app/win/WindowContextFactory_win.h
43 +++ b/tools/sk_app/win/WindowContextFactory_win.h
44 @@ -20,21 +20,21 @@ struct DisplayParams;
46 namespace window_context_factory {
48 -std::unique_ptr<WindowContext> MakeVulkanForWin(HWND, const DisplayParams&);
49 +SK_API std::unique_ptr<WindowContext> MakeVulkanForWin(HWND, const DisplayParams&);
51 -std::unique_ptr<WindowContext> MakeGLForWin(HWND, const DisplayParams&);
52 +SK_API std::unique_ptr<WindowContext> MakeGLForWin(HWND, const DisplayParams&);
54 -std::unique_ptr<WindowContext> MakeANGLEForWin(HWND, const DisplayParams&);
55 +SK_API std::unique_ptr<WindowContext> MakeANGLEForWin(HWND, const DisplayParams&);
58 -std::unique_ptr<WindowContext> MakeD3D12ForWin(HWND, const DisplayParams&);
59 +SK_API std::unique_ptr<WindowContext> MakeD3D12ForWin(HWND, const DisplayParams&);
63 -std::unique_ptr<WindowContext> MakeDawnD3D12ForWin(HWND, const DisplayParams&);
64 +SK_API std::unique_ptr<WindowContext> MakeDawnD3D12ForWin(HWND, const DisplayParams&);
67 -std::unique_ptr<WindowContext> MakeRasterForWin(HWND, const DisplayParams&);
68 +SK_API std::unique_ptr<WindowContext> MakeRasterForWin(HWND, const DisplayParams&);
70 } // namespace window_context_factory