From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- gfx/gl/GLContextEAGL.h | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'gfx/gl/GLContextEAGL.h') diff --git a/gfx/gl/GLContextEAGL.h b/gfx/gl/GLContextEAGL.h index 6e137e7b70..2b062d1a0f 100644 --- a/gfx/gl/GLContextEAGL.h +++ b/gfx/gl/GLContextEAGL.h @@ -10,7 +10,11 @@ #include "GLContext.h" #include -#include +#ifdef __OBJC__ +# include +#else +typedef void EAGLContext; +#endif namespace mozilla { namespace gl { @@ -23,7 +27,7 @@ class GLContextEAGL : public GLContext { public: MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(GLContextEAGL, override) GLContextEAGL(const GLContextDesc&, EAGLContext* context, - GLContext* sharedContext, ContextProfile profile); + GLContext* sharedContext); ~GLContextEAGL(); @@ -36,8 +40,6 @@ class GLContextEAGL : public GLContext { return static_cast(gl); } - bool AttachToWindow(nsIWidget* aWidget); - EAGLContext* GetEAGLContext() const { return mContext; } virtual bool MakeCurrentImpl() const override; @@ -54,18 +56,9 @@ class GLContextEAGL : public GLContext { virtual GLuint GetDefaultFramebuffer() override { return mBackbufferFB; } - virtual bool RenewSurface(widget::CompositorWidget*) override { - // FIXME: should use the passed widget instead of the existing one. - return RecreateRB(); - } - private: GLuint mBackbufferRB = 0; GLuint mBackbufferFB = 0; - - void* mLayer = nullptr; - - bool RecreateRB(); }; } // namespace gl -- cgit v1.2.3