summaryrefslogtreecommitdiff
path: root/external/skia/make-api-visible.patch.1
blob: 8b8e37359ec54bd127d9f40a056a941b15339e33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
diff -ur skia.org/tools/window/mac/WindowContextFactory_mac.h skia/tools/window/mac/WindowContextFactory_mac.h
--- skia.org/tools/window/mac/WindowContextFactory_mac.h	2024-10-04 14:26:29.787526193 +0200
+++ skia/tools/window/mac/WindowContextFactory_mac.h	2024-10-04 14:28:08.353196733 +0200
@@ -53,7 +53,7 @@
 #endif

 #ifdef SK_METAL
-std::unique_ptr<WindowContext> MakeMetalForMac(const MacWindowInfo&, const DisplayParams&);
+SK_API std::unique_ptr<WindowContext> MakeMetalForMac(const MacWindowInfo&, const DisplayParams&);
 #if defined(SK_GRAPHITE)
 std::unique_ptr<WindowContext> MakeGraphiteMetalForMac(const MacWindowInfo&, const DisplayParams&);
 #endif
diff -ur skia.org/tools/window/unix/WindowContextFactory_unix.h skia/tools/window/unix/WindowContextFactory_unix.h
--- skia.org/tools/window/unix/WindowContextFactory_unix.h	2024-10-04 14:26:29.787526193 +0200
+++ skia/tools/window/unix/WindowContextFactory_unix.h	2024-10-04 14:29:16.184625681 +0200
@@ -35,7 +35,7 @@
 };

 #ifdef SK_VULKAN
-std::unique_ptr<WindowContext> MakeVulkanForXlib(const XlibWindowInfo&, const DisplayParams&);
+SK_API std::unique_ptr<WindowContext> MakeVulkanForXlib(const XlibWindowInfo&, const DisplayParams&);
 #if defined(SK_GRAPHITE)
 std::unique_ptr<WindowContext> MakeGraphiteVulkanForXlib(const XlibWindowInfo&,
                                                          const DisplayParams&);
@@ -43,11 +43,11 @@
 #endif

 #ifdef SK_GL
-std::unique_ptr<WindowContext> MakeGLForXlib(const XlibWindowInfo&, const DisplayParams&);
+SK_API std::unique_ptr<WindowContext> MakeGLForXlib(const XlibWindowInfo&, const DisplayParams&);
 #endif

 #ifdef SK_DAWN
-std::unique_ptr<WindowContext> MakeDawnVulkanForXlib(const XlibWindowInfo&, const DisplayParams&);
+SK_API std::unique_ptr<WindowContext> MakeDawnVulkanForXlib(const XlibWindowInfo&, const DisplayParams&);
 #endif

 #if defined(SK_DAWN) && defined(SK_GRAPHITE)
@@ -55,7 +55,7 @@
                                                              const DisplayParams&);
 #endif

-std::unique_ptr<WindowContext> MakeRasterForXlib(const XlibWindowInfo&, const DisplayParams&);
+SK_API std::unique_ptr<WindowContext> MakeRasterForXlib(const XlibWindowInfo&, const DisplayParams&);

 }  // namespace skwindow

diff -ur skia.org/tools/window/win/WindowContextFactory_win.h skia/tools/window/win/WindowContextFactory_win.h
--- skia.org/tools/window/win/WindowContextFactory_win.h	2024-10-04 14:26:29.787526193 +0200
+++ skia/tools/window/win/WindowContextFactory_win.h	2024-10-04 14:30:25.346039651 +0200
@@ -13,28 +13,30 @@

 #include <memory>

+#include "include/core/SkTypes.h"
+
 namespace skwindow {

 class WindowContext;
 struct DisplayParams;

 #ifdef SK_VULKAN
-std::unique_ptr<WindowContext> MakeVulkanForWin(HWND, const DisplayParams&);
+SK_API std::unique_ptr<WindowContext> MakeVulkanForWin(HWND, const DisplayParams&);
 #if defined(SK_GRAPHITE)
 std::unique_ptr<WindowContext> MakeGraphiteVulkanForWin(HWND, const DisplayParams&);
 #endif
 #endif

 #ifdef SK_GL
-std::unique_ptr<WindowContext> MakeGLForWin(HWND, const DisplayParams&);
+SK_API std::unique_ptr<WindowContext> MakeGLForWin(HWND, const DisplayParams&);
 #endif

 #ifdef SK_ANGLE
-std::unique_ptr<WindowContext> MakeANGLEForWin(HWND, const DisplayParams&);
+SK_API std::unique_ptr<WindowContext> MakeANGLEForWin(HWND, const DisplayParams&);
 #endif

 #ifdef SK_DIRECT3D
-std::unique_ptr<WindowContext> MakeD3D12ForWin(HWND, const DisplayParams&);
+SK_API std::unique_ptr<WindowContext> MakeD3D12ForWin(HWND, const DisplayParams&);
 #endif

 #ifdef SK_DAWN
@@ -44,7 +46,7 @@
 #endif
 #endif

-std::unique_ptr<WindowContext> MakeRasterForWin(HWND, const DisplayParams&);
+SK_API std::unique_ptr<WindowContext> MakeRasterForWin(HWND, const DisplayParams&);

 }  // namespace skwindow

diff -ur skia.org/tools/window/WindowContext.h skia/tools/window/WindowContext.h
--- skia.org/tools/window/WindowContext.h	2024-10-04 14:26:29.787526193 +0200
+++ skia/tools/window/WindowContext.h	2024-10-04 14:27:39.148004258 +0200
@@ -23,7 +23,7 @@

 namespace skwindow {

-class WindowContext {
+class SK_API WindowContext {
 public:
     WindowContext(const DisplayParams&);