52 bool makeCurrent(QPlatformSurface *surface)
override;
54 QSurfaceFormat
format()
const override;
59 void swapBuffers(QPlatformSurface *surface)
override;
62 void create(
const QSurfaceFormat &
format, ::EGLContext shareContext);
63 void updateFormatFromContext();
66 QSurfaceFormat m_format;
67 EGLConfig m_config = EGL_NO_CONFIG_KHR;
68 std::unique_ptr<EglContext> m_eglContext;
69 std::unordered_map<GraphicsBuffer *, std::shared_ptr<EGLRenderTarget>> m_renderTargets;
70 std::vector<std::shared_ptr<EGLRenderTarget>> m_zombieRenderTargets;
71 std::shared_ptr<EGLRenderTarget> m_current;