qeglfsoffscreenwindow.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/plugins/platforms/eglfs/qeglfsoffscreenwindow.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3QEglFSOffscreenWindow::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_window
!m_windowDescription
TRUEnever evaluated
FALSEnever 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)
m_surface != ((EGLSurface)0)Description
TRUEnever evaluated
FALSEnever 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-
21QEglFSOffscreenWindow::~QEglFSOffscreenWindow()-
22{-
23 if (m_surface != ((EGLSurface)0)
m_surface != ((EGLSurface)0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
24 eglDestroySurface(m_display, m_surface);
never executed: eglDestroySurface(m_display, m_surface);
0
25 if (m_window
m_windowDescription
TRUEnever evaluated
FALSEnever 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-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9