Line | Source | Count |
1 | | - |
2 | | - |
3 | QEglFSOffscreenWindow::QEglFSOffscreenWindow(EGLDisplay display, const QSurfaceFormat &format, QOffscreenSurface *offscreenSurface) | - |
4 | : QPlatformOffscreenSurface(offscreenSurface) | - |
5 | , m_format(format) | - |
6 | , m_display(display) | - |
7 | , m_surface(((EGLSurface)0)) | - |
8 | , m_window(0) | - |
9 | { | - |
10 | m_window = qt_egl_device_integration()->createNativeOffscreenWindow(format); | - |
11 | if (!m_windowTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
12 | QMessageLogger(__FILE__, 66, __PRETTY_FUNCTION__).warning("QEglFSOffscreenWindow: Failed to create native window"); | - |
13 | return; never executed: return; | 0 |
14 | } | - |
15 | EGLConfig config = q_configFromGLFormat(m_display, m_format); | - |
16 | m_surface = eglCreateWindowSurface(m_display, config, m_window, 0); | - |
17 | if (m_surface != ((EGLSurface)0)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
18 | m_format = q_glFormatFromConfig(m_display, config); never executed: m_format = q_glFormatFromConfig(m_display, config); | 0 |
19 | } never executed: end of block | 0 |
20 | | - |
21 | QEglFSOffscreenWindow::~QEglFSOffscreenWindow() | - |
22 | { | - |
23 | if (m_surface != ((EGLSurface)0)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
24 | eglDestroySurface(m_display, m_surface); never executed: eglDestroySurface(m_display, m_surface); | 0 |
25 | if (m_windowTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
26 | qt_egl_device_integration()->destroyNativeWindow(m_window); never executed: qt_egl_device_integration()->destroyNativeWindow(m_window); | 0 |
27 | } never executed: end of block | 0 |
28 | | - |
29 | | - |
| | |