Changeset View
Changeset View
Standalone View
Standalone View
abstract_egl_backend.h
Show All 33 Lines | 31 | public: | |||
---|---|---|---|---|---|
34 | void doneCurrent() override; | 34 | void doneCurrent() override; | ||
35 | 35 | | |||
36 | EGLDisplay eglDisplay() const { | 36 | EGLDisplay eglDisplay() const { | ||
37 | return m_display; | 37 | return m_display; | ||
38 | } | 38 | } | ||
39 | EGLContext context() const { | 39 | EGLContext context() const { | ||
40 | return m_context; | 40 | return m_context; | ||
41 | } | 41 | } | ||
42 | | ||||
43 | static void unbindWaylandDisplay(); | | |||
44 | | ||||
45 | protected: | | |||
46 | AbstractEglBackend(); | | |||
47 | EGLSurface surface() const { | 42 | EGLSurface surface() const { | ||
48 | return m_surface; | 43 | return m_surface; | ||
49 | } | 44 | } | ||
50 | EGLConfig config() const { | 45 | EGLConfig config() const { | ||
51 | return m_config; | 46 | return m_config; | ||
52 | } | 47 | } | ||
48 | | ||||
49 | static void unbindWaylandDisplay(); | ||||
50 | | ||||
51 | protected: | ||||
52 | AbstractEglBackend(); | ||||
53 | void setEglDisplay(const EGLDisplay &display); | 53 | void setEglDisplay(const EGLDisplay &display); | ||
54 | void setSurface(const EGLSurface &surface) { | 54 | void setSurface(const EGLSurface &surface) { | ||
55 | m_surface = surface; | 55 | m_surface = surface; | ||
56 | } | 56 | } | ||
57 | void setConfig(const EGLConfig &config) { | 57 | void setConfig(const EGLConfig &config) { | ||
58 | m_config = config; | 58 | m_config = config; | ||
59 | } | 59 | } | ||
60 | void cleanup(); | 60 | void cleanup(); | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |