OpenCoverage

qglxconvenience.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/platformsupport/glxconvenience/qglxconvenience.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9enum {-
10 XFocusOut = 10,-
11 XFocusIn = 9,-
12 XKeyPress = 2,-
13 XKeyRelease = 3,-
14 XNone = 0L,-
15 XRevertToParent = 2,-
16 XGrayScale = 1,-
17 XCursorShape = 0-
18};-
19QVector<int> qglx_buildSpec(const QSurfaceFormat &format, int drawableBit)-
20{-
21 QVector<int> spec;-
22-
23 spec << 3-
24 << 0-
25-
26 << 0x8011-
27 << 0x00000001-
28-
29 << 8-
30 << qMax(1, format.redBufferSize())-
31-
32 << 9-
33 << qMax(1, format.greenBufferSize())-
34-
35 << 10-
36 << qMax(1, format.blueBufferSize())-
37-
38 << 11-
39 << qMax(0, format.alphaBufferSize());-
40-
41 if (format.swapBehavior() != QSurfaceFormat::SingleBuffer
format.swapBeh...::SingleBufferDescription
TRUEevaluated 4057 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
)
0-4057
42 spec << 5
executed 4057 times by 120 tests: spec << 5 << 1;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
4057
43 << 1;
executed 4057 times by 120 tests: spec << 5 << 1;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
4057
44-
45 if (format.stereo()
format.stereo()Description
TRUEnever evaluated
FALSEevaluated 4057 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
)
0-4057
46 spec << 6
never executed: spec << 6 << 1;
0
47 << 1;
never executed: spec << 6 << 1;
0
48-
49 if (format.depthBufferSize() != -1
format.depthBufferSize() != -1Description
TRUEevaluated 64 times by 7 tests
Evaluated by:
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
FALSEevaluated 3993 times by 118 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
)
64-3993
50 spec << 12
executed 64 times by 7 tests: spec << 12 << format.depthBufferSize();
Executed by:
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
64
51 << format.depthBufferSize();
executed 64 times by 7 tests: spec << 12 << format.depthBufferSize();
Executed by:
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
64
52-
53 if (format.stencilBufferSize() != -1
format.stencil...erSize() != -1Description
TRUEevaluated 64 times by 7 tests
Evaluated by:
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
FALSEevaluated 3993 times by 118 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
)
64-3993
54 spec << 13
executed 64 times by 7 tests: spec << 13 << format.stencilBufferSize();
Executed by:
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
64
55 << format.stencilBufferSize();
executed 64 times by 7 tests: spec << 13 << format.stencilBufferSize();
Executed by:
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
64
56-
57 if (format.samples() > 1
format.samples() > 1Description
TRUEnever evaluated
FALSEevaluated 4057 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
)
0-4057
58 spec << 100000
never executed: spec << 100000 << 1 << 100001 << format.samples();
0
59 << 1
never executed: spec << 100000 << 1 << 100001 << format.samples();
0
60 << 100001
never executed: spec << 100000 << 1 << 100001 << format.samples();
0
61 << format.samples();
never executed: spec << 100000 << 1 << 100001 << format.samples();
0
62-
63 spec << 0x8010-
64 << drawableBit-
65-
66 << XNone;-
67-
68 return
executed 4057 times by 120 tests: return spec;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
spec;
executed 4057 times by 120 tests: return spec;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
4057
69}-
70-
71namespace {-
72struct QXcbSoftwareOpenGLEnforcer {-
73 QXcbSoftwareOpenGLEnforcer() {-
74-
75-
76-
77-
78-
79 if (!checkedForceSoftwareOpenGL
!checkedForceSoftwareOpenGLDescription
TRUEevaluated 124 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 3933 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
) {
124-3933
80-
81-
82-
83-
84 if (!qEnvironmentVariableIsEmpty("QT_XCB_FORCE_SOFTWARE_OPENGL")
!qEnvironmentV...TWARE_OPENGL")Description
TRUEnever evaluated
FALSEevaluated 124 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
0-124
85 && !qEnvironmentVariableIsSet("LIBGL_ALWAYS_SOFTWARE")
!qEnvironmentV...AYS_SOFTWARE")Description
TRUEnever evaluated
FALSEnever evaluated
)
0
86 forceSoftwareOpenGL = true;
never executed: forceSoftwareOpenGL = true;
0
87-
88 checkedForceSoftwareOpenGL = true;-
89 }
executed 124 times by 120 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
124
90-
91 if (forceSoftwareOpenGL
forceSoftwareOpenGLDescription
TRUEnever evaluated
FALSEevaluated 4057 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
)
0-4057
92 qputenv("LIBGL_ALWAYS_SOFTWARE", ([]() -> QByteArray { enum { Size = sizeof("1") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "1" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
never executed: return ba;
ba;
never executed: return ba;
}()));
never executed: qputenv("LIBGL_ALWAYS_SOFTWARE", ([]() -> QByteArray { enum { Size = sizeof("1") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "1" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return ba; }()));
0
93 }
executed 4057 times by 120 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
4057
94-
95 ~QXcbSoftwareOpenGLEnforcer() {-
96-
97 if (forceSoftwareOpenGL
forceSoftwareOpenGLDescription
TRUEnever evaluated
FALSEevaluated 4057 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
)
0-4057
98 qunsetenv("LIBGL_ALWAYS_SOFTWARE");
never executed: qunsetenv("LIBGL_ALWAYS_SOFTWARE");
0
99 }
executed 4057 times by 120 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
4057
100-
101 static bool checkedForceSoftwareOpenGL;-
102 static bool forceSoftwareOpenGL;-
103};-
104-
105bool QXcbSoftwareOpenGLEnforcer::checkedForceSoftwareOpenGL = false;-
106bool QXcbSoftwareOpenGLEnforcer::forceSoftwareOpenGL = false;-
107-
108template <class T>-
109struct QXlibScopedPointerDeleter {-
110 static inline void cleanup(T *pointer) {-
111 XFree(pointer);-
112 }
executed 8166 times by 120 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
8166
113};-
114-
115template <class T>-
116using QXlibPointer = QScopedPointer<T, QXlibScopedPointerDeleter<T>>;-
117-
118template <class T>-
119using QXlibArrayPointer = QScopedArrayPointer<T, QXlibScopedPointerDeleter<T>>;-
120}-
121-
122GLXFBConfig qglx_findConfig(Display *display, int screen , QSurfaceFormat format, bool highestPixelFormat, int drawableBit)-
123{-
124 QXcbSoftwareOpenGLEnforcer softwareOpenGLEnforcer;-
125-
126 GLXFBConfig config = 0;-
127-
128 do {-
129 const QVector<int> spec = qglx_buildSpec(format, drawableBit);-
130-
131 int confcount = 0;-
132 QXlibArrayPointer<GLXFBConfig> configs(glXChooseFBConfig(display, screen, spec.constData(), &confcount));-
133-
134 if (!config
!configDescription
TRUEevaluated 4057 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
&& confcount > 0
confcount > 0Description
TRUEevaluated 4057 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
) {
0-4057
135 config = configs[0];-
136 if (highestPixelFormat
highestPixelFormatDescription
TRUEnever evaluated
FALSEevaluated 4057 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
&& !format.hasAlpha()
!format.hasAlpha()Description
TRUEnever evaluated
FALSEnever evaluated
)
0-4057
137 break;
never executed: break;
0
138 }
executed 4057 times by 120 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
4057
139-
140 const int requestedRed = qMax(0, format.redBufferSize());-
141 const int requestedGreen = qMax(0, format.greenBufferSize());-
142 const int requestedBlue = qMax(0, format.blueBufferSize());-
143 const int requestedAlpha = qMax(0, format.alphaBufferSize());-
144-
145 for (int i = 0; i < confcount
i < confcountDescription
TRUEevaluated 4109 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
; i++) {
0-4109
146 GLXFBConfig candidate = configs[i];-
147-
148 QXlibPointer<XVisualInfo> visual(glXGetVisualFromFBConfig(display, candidate));-
149-
150 const int actualRed = qPopulationCount(visual->red_mask);-
151 const int actualGreen = qPopulationCount(visual->green_mask);-
152 const int actualBlue = qPopulationCount(visual->blue_mask);-
153 const int actualAlpha = visual->depth - actualRed - actualGreen - actualBlue;-
154-
155 if (requestedRed
requestedRedDescription
TRUEevaluated 4109 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
&& actualRed != requestedRed
actualRed != requestedRedDescription
TRUEnever evaluated
FALSEevaluated 4109 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
)
0-4109
156 continue;
never executed: continue;
0
157 if (requestedGreen
requestedGreenDescription
TRUEevaluated 4109 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
&& actualGreen != requestedGreen
actualGreen != requestedGreenDescription
TRUEnever evaluated
FALSEevaluated 4109 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
)
0-4109
158 continue;
never executed: continue;
0
159 if (requestedBlue
requestedBlueDescription
TRUEevaluated 4109 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
&& actualBlue != requestedBlue
actualBlue != requestedBlueDescription
TRUEnever evaluated
FALSEevaluated 4109 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
)
0-4109
160 continue;
never executed: continue;
0
161 if (requestedAlpha
requestedAlphaDescription
TRUEevaluated 56 times by 2 tests
Evaluated by:
  • tst_QSystemTrayIcon
  • tst_QWidget
FALSEevaluated 4053 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
&& actualAlpha != requestedAlpha
actualAlpha != requestedAlphaDescription
TRUEevaluated 52 times by 2 tests
Evaluated by:
  • tst_QSystemTrayIcon
  • tst_QWidget
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QSystemTrayIcon
  • tst_QWidget
)
4-4053
162 continue;
executed 52 times by 2 tests: continue;
Executed by:
  • tst_QSystemTrayIcon
  • tst_QWidget
52
163-
164 return
executed 4057 times by 120 tests: return candidate;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
candidate;
executed 4057 times by 120 tests: return candidate;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
4057
165 }-
166 }
never executed: end of block
while (qglx_reduceFormat(&format)
qglx_reduceFormat(&format)Description
TRUEnever evaluated
FALSEnever evaluated
);
0
167-
168 return
never executed: return config;
config;
never executed: return config;
0
169}-
170-
171XVisualInfo *qglx_findVisualInfo(Display *display, int screen, QSurfaceFormat *format, int drawableBit)-
172{-
173 ((!(format)) ? qt_assert("format",__FILE__,233) : qt_noop());-
174-
175 XVisualInfo *visualInfo = 0;-
176-
177 GLXFBConfig config = qglx_findConfig(display, screen, *format, false, drawableBit);-
178 if (config
configDescription
TRUEevaluated 3974 times by 118 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
)
0-3974
179 visualInfo = glXGetVisualFromFBConfig(display, config);
executed 3974 times by 118 tests: visualInfo = glXGetVisualFromFBConfig(display, config);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
3974
180-
181 if (visualInfo
visualInfoDescription
TRUEevaluated 3974 times by 118 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
) {
0-3974
182 qglx_surfaceFormatFromGLXFBConfig(format, display, config);-
183 return
executed 3974 times by 118 tests: return visualInfo;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
visualInfo;
executed 3974 times by 118 tests: return visualInfo;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
3974
184 }-
185-
186-
187 do {-
188 QVector<int> attribs = qglx_buildSpec(*format, drawableBit);-
189 visualInfo = glXChooseVisual(display, screen, attribs.data());-
190-
191 if (visualInfo
visualInfoDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
192 qglx_surfaceFormatFromVisualInfo(format, display, visualInfo);-
193 return
never executed: return visualInfo;
visualInfo;
never executed: return visualInfo;
0
194 }-
195 }
never executed: end of block
while (qglx_reduceFormat(format)
qglx_reduceFormat(format)Description
TRUEnever evaluated
FALSEnever evaluated
);
0
196-
197 return
never executed: return visualInfo;
visualInfo;
never executed: return visualInfo;
0
198}-
199-
200void qglx_surfaceFormatFromGLXFBConfig(QSurfaceFormat *format, Display *display, GLXFBConfig config)-
201{-
202 int redSize = 0;-
203 int greenSize = 0;-
204 int blueSize = 0;-
205 int alphaSize = 0;-
206 int depthSize = 0;-
207 int stencilSize = 0;-
208 int sampleBuffers = 0;-
209 int sampleCount = 0;-
210 int stereo = 0;-
211-
212 glXGetFBConfigAttrib(display, config, 8, &redSize);-
213 glXGetFBConfigAttrib(display, config, 9, &greenSize);-
214 glXGetFBConfigAttrib(display, config, 10, &blueSize);-
215 glXGetFBConfigAttrib(display, config, 11, &alphaSize);-
216 glXGetFBConfigAttrib(display, config, 12, &depthSize);-
217 glXGetFBConfigAttrib(display, config, 13, &stencilSize);-
218 glXGetFBConfigAttrib(display, config, 100001, &sampleBuffers);-
219 glXGetFBConfigAttrib(display, config, 6, &stereo);-
220-
221 format->setRedBufferSize(redSize);-
222 format->setGreenBufferSize(greenSize);-
223 format->setBlueBufferSize(blueSize);-
224 format->setAlphaBufferSize(alphaSize);-
225 format->setDepthBufferSize(depthSize);-
226 format->setStencilBufferSize(stencilSize);-
227 if (sampleBuffers
sampleBuffersDescription
TRUEnever evaluated
FALSEevaluated 4057 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
) {
0-4057
228 glXGetFBConfigAttrib(display, config, 100001, &sampleCount);-
229 format->setSamples(sampleCount);-
230 }
never executed: end of block
0
231-
232 format->setStereo(stereo);-
233}
executed 4057 times by 120 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
4057
234-
235void qglx_surfaceFormatFromVisualInfo(QSurfaceFormat *format, Display *display, XVisualInfo *visualInfo)-
236{-
237 int redSize = 0;-
238 int greenSize = 0;-
239 int blueSize = 0;-
240 int alphaSize = 0;-
241 int depthSize = 0;-
242 int stencilSize = 0;-
243 int sampleBuffers = 0;-
244 int sampleCount = 0;-
245 int stereo = 0;-
246-
247 glXGetConfig(display, visualInfo, 8, &redSize);-
248 glXGetConfig(display, visualInfo, 9, &greenSize);-
249 glXGetConfig(display, visualInfo, 10, &blueSize);-
250 glXGetConfig(display, visualInfo, 11, &alphaSize);-
251 glXGetConfig(display, visualInfo, 12, &depthSize);-
252 glXGetConfig(display, visualInfo, 13, &stencilSize);-
253 glXGetConfig(display, visualInfo, 100001, &sampleBuffers);-
254 glXGetConfig(display, visualInfo, 6, &stereo);-
255-
256 format->setRedBufferSize(redSize);-
257 format->setGreenBufferSize(greenSize);-
258 format->setBlueBufferSize(blueSize);-
259 format->setAlphaBufferSize(alphaSize);-
260 format->setDepthBufferSize(depthSize);-
261 format->setStencilBufferSize(stencilSize);-
262 if (sampleBuffers
sampleBuffersDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
263 glXGetConfig(display, visualInfo, 100001, &sampleCount);-
264 format->setSamples(sampleCount);-
265 }
never executed: end of block
0
266-
267 format->setStereo(stereo);-
268}
never executed: end of block
0
269-
270bool qglx_reduceFormat(QSurfaceFormat *format)-
271{-
272 ((!(format)) ? qt_assert("format",__FILE__,332) : qt_noop());-
273-
274 if (format->redBufferSize() > 1
format->redBufferSize() > 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
275 format->setRedBufferSize(1);-
276 return
never executed: return true;
true;
never executed: return true;
0
277 }-
278-
279 if (format->greenBufferSize() > 1
format->greenBufferSize() > 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
280 format->setGreenBufferSize(1);-
281 return
never executed: return true;
true;
never executed: return true;
0
282 }-
283-
284 if (format->blueBufferSize() > 1
format->blueBufferSize() > 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
285 format->setBlueBufferSize(1);-
286 return
never executed: return true;
true;
never executed: return true;
0
287 }-
288-
289 if (format->swapBehavior() != QSurfaceFormat::SingleBuffer
format->swapBe...::SingleBufferDescription
TRUEnever evaluated
FALSEnever evaluated
){
0
290 format->setSwapBehavior(QSurfaceFormat::SingleBuffer);-
291 return
never executed: return true;
true;
never executed: return true;
0
292 }-
293-
294 if (format->samples() > 1
format->samples() > 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
295 format->setSamples(qMin(16, format->samples() / 2));-
296 return
never executed: return true;
true;
never executed: return true;
0
297 }-
298-
299 if (format->depthBufferSize() >= 32
format->depthB...erSize() >= 32Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
300 format->setDepthBufferSize(24);-
301 return
never executed: return true;
true;
never executed: return true;
0
302 }-
303-
304 if (format->depthBufferSize() > 1
format->depthBufferSize() > 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
305 format->setDepthBufferSize(1);-
306 return
never executed: return true;
true;
never executed: return true;
0
307 }-
308-
309 if (format->depthBufferSize() > 0
format->depthBufferSize() > 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
310 format->setDepthBufferSize(0);-
311 return
never executed: return true;
true;
never executed: return true;
0
312 }-
313-
314 if (format->hasAlpha()
format->hasAlpha()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
315 format->setAlphaBufferSize(0);-
316 return
never executed: return true;
true;
never executed: return true;
0
317 }-
318-
319 if (format->stencilBufferSize() > 1
format->stenci...fferSize() > 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
320 format->setStencilBufferSize(1);-
321 return
never executed: return true;
true;
never executed: return true;
0
322 }-
323-
324 if (format->stencilBufferSize() > 0
format->stenci...fferSize() > 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
325 format->setStencilBufferSize(0);-
326 return
never executed: return true;
true;
never executed: return true;
0
327 }-
328-
329 if (format->stereo()
format->stereo()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
330 format->setStereo(false);-
331 return
never executed: return true;
true;
never executed: return true;
0
332 }-
333-
334 return
never executed: return false;
false;
never executed: return false;
0
335}-
Switch to Source codePreprocessed file

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