summaryrefslogtreecommitdiff
path: root/external/skia/fix-without-gl.patch.1
blob: 1f78e3ebe22d36dc0735676d79c8e090cf131243 (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
diff -ur skia.org/include/gpu/gl/GrGLInterface.h skia/include/gpu/gl/GrGLInterface.h
--- skia.org/include/gpu/gl/GrGLInterface.h	2024-10-04 15:33:38.063875425 +0200
+++ skia/include/gpu/gl/GrGLInterface.h	2024-10-04 15:34:00.073017585 +0200
@@ -83,7 +83,9 @@

     GrGLExtensions fExtensions;

+#ifdef SK_GL
     bool hasExtension(const char ext[]) const { return fExtensions.has(ext); }
+#endif

     /**
      * The function pointers are in a struct so that we can have a compiler generated assignment
diff -ur skia.org/src/gpu/ganesh/gl/GrGLContext.h skia/src/gpu/ganesh/gl/GrGLContext.h
--- skia.org/src/gpu/ganesh/gl/GrGLContext.h	2024-10-04 15:33:38.116875769 +0200
+++ skia/src/gpu/ganesh/gl/GrGLContext.h	2024-10-04 15:34:36.192247894 +0200
@@ -69,9 +69,11 @@
     const GrGLCaps* caps() const { return fGLCaps.get(); }
     GrGLCaps* caps() { return fGLCaps.get(); }

+#ifdef SK_GL
     bool hasExtension(const char* ext) const {
         return fInterface->hasExtension(ext);
     }
+#endif

     const GrGLExtensions& extensions() const { return fInterface->fExtensions; }

diff -ur skia.org/src/gpu/ganesh/gl/GrGLGpu.h skia/src/gpu/ganesh/gl/GrGLGpu.h
--- skia.org/src/gpu/ganesh/gl/GrGLGpu.h	2024-10-04 15:33:38.116875769 +0200
+++ skia/src/gpu/ganesh/gl/GrGLGpu.h	2024-10-04 15:35:07.627445512 +0200
@@ -291,6 +291,7 @@
     // compatible stencil format, or negative if there is no compatible stencil format.
     int getCompatibleStencilIndex(GrGLFormat format);

+#ifdef SK_GL
     GrBackendFormat getPreferredStencilFormat(const GrBackendFormat& format) override {
         int idx = this->getCompatibleStencilIndex(GrBackendFormats::AsGLFormat(format));
         if (idx < 0) {
@@ -299,6 +300,7 @@
         return GrBackendFormats::MakeGL(GrGLFormatToEnum(this->glCaps().stencilFormats()[idx]),
                                         GR_GL_TEXTURE_NONE);
     }
+#endif

     void onFBOChanged();