1 diff -ur skia.org/include/gpu/ganesh/gl/GrGLInterface.h skia/include/gpu/ganesh/gl/GrGLInterface.h
2 --- skia.org/include/gpu/ganesh/gl/GrGLInterface.h 2024-10-10 14:54:07.470413121 +0200
3 +++ skia/include/gpu/ganesh/gl/GrGLInterface.h 2024-10-10 14:54:43.609667653 +0200
5 GrGLStandard fStandard;
6 GrGLExtensions fExtensions;
9 bool hasExtension(const char ext[]) const { return fExtensions.has(ext); }
13 * The function pointers are in a struct so that we can have a compiler generated assignment
14 diff -ur skia.org/src/gpu/ganesh/gl/GrGLContext.h skia/src/gpu/ganesh/gl/GrGLContext.h
15 --- skia.org/src/gpu/ganesh/gl/GrGLContext.h 2024-10-10 14:54:07.528413530 +0200
16 +++ skia/src/gpu/ganesh/gl/GrGLContext.h 2024-10-10 14:54:20.569505434 +0200
18 const GrGLCaps* caps() const { return fGLCaps.get(); }
19 GrGLCaps* caps() { return fGLCaps.get(); }
22 bool hasExtension(const char* ext) const {
23 return fInterface->hasExtension(ext);
27 const GrGLExtensions& extensions() const { return fInterface->fExtensions; }
29 diff -ur skia.org/src/gpu/ganesh/gl/GrGLGpu.h skia/src/gpu/ganesh/gl/GrGLGpu.h
30 --- skia.org/src/gpu/ganesh/gl/GrGLGpu.h 2024-10-10 14:54:07.529413537 +0200
31 +++ skia/src/gpu/ganesh/gl/GrGLGpu.h 2024-10-10 14:54:20.569505434 +0200
33 // compatible stencil format, or negative if there is no compatible stencil format.
34 int getCompatibleStencilIndex(GrGLFormat format);
37 GrBackendFormat getPreferredStencilFormat(const GrBackendFormat& format) override {
38 int idx = this->getCompatibleStencilIndex(GrBackendFormats::AsGLFormat(format));
41 return GrBackendFormats::MakeGL(GrGLFormatToEnum(this->glCaps().stencilFormats()[idx]),