31 bool makeCurrent(EGLSurface surface = EGL_NO_SURFACE)
const;
32 void doneCurrent()
const;
33 std::shared_ptr<GLTexture> importDmaBufAsTexture(
const DmaBufAttributes &attributes)
const;
36 ::EGLContext handle()
const;
37 EGLConfig config()
const;
41 static std::unique_ptr<EglContext> create(
EglDisplay *display, EGLConfig config, ::EGLContext sharedContext);
44 static ::EGLContext createContext(
EglDisplay *display, EGLConfig config, ::EGLContext sharedContext);
47 const ::EGLContext m_handle;
48 const EGLConfig m_config;
49 std::unique_ptr<ShaderManager> m_shaderManager;