| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | enum { | - |
| 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 | }; | - |
| 19 | QVector<int> qglx_buildSpec(const QSurfaceFormat &format, int drawableBit) | - |
| 20 | { | - |
| 21 | QVector<int> spec(48); | - |
| int i = 0; | |
| 22 | | - |
| 23 | spec [i++] =<< 3 | - |
| 24 | ; | - |
| spec[i++] =<< 0 | |
| 25 | | - |
| 26 | ; | - |
| spec[i++] = 0x8010; spec[i++] = drawableBit; | |
| | |
| spec[i++] =<< 0x8011 | |
| 27 | ; spec[i++] =<< 0x00000001 | - |
| 28 | | - |
| 29 | ; | - |
| | |
| spec[i++] =<< 8 | |
| 30 | ; spec[i++] =<< qMax(format.redBufferSize() == -1) ?1:, format.redBufferSize(); | - |
| spec[i++] =()) | |
| 31 | | - |
| 32 | << 9 | - |
| 33 | ; spec[i++] =<< qMax(format.greenBufferSize() == -1) ?1:, format.greenBufferSize(); | - |
| spec[i++] =()) | |
| 34 | | - |
| 35 | << 10 | - |
| 36 | ; spec[i++] =<< qMax(format.blueBufferSize() == -1) ?1:, format.blueBufferSize(); | - |
| if (format.hasAlpha()) | |
| 37 | | - |
| 38 | { | - |
| spec[i++] =<< 11 | |
| 39 | ; spec[i++] =<< qMax(0, format.alphaBufferSize(); | - |
| } | |
| | |
| spec[i++] = 5; spec[i++] =()); | |
| 40 | | - |
| 41 | if (format.swapBehavior() != QSurfaceFormat::SingleBuffer? 1 : 0;| TRUE | evaluated 4057 times by 120 testsEvaluated 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
- ...
| | FALSE | never evaluated |
) | 0-4057 |
| 42 | spec [i++] = 6<< 5executed 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 | << 1executed 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
- ...
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
- ...
;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 | spec[i++] =if (format.stereo() ?()| TRUE | never evaluated | | FALSE | evaluated 4057 times by 120 testsEvaluated 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 | << never executed: spec << 6 << 1; never executed: spec << 6 << 1; 1: 0;never executed: spec << 6 << 1; | 0 |
| 48 | | - |
| 49 | if (format.depthBufferSize() > 0!= -1| TRUE | evaluated 64 times by 7 testsEvaluated by:- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGraphicsView
- tst_QMdiArea
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
| | FALSE | evaluated 3993 times by 118 testsEvaluated 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 [i++] =<< 12executed 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 | ; spec[i++] =<< 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() > 0) { | 64-3993 |
| spec[i++] = 13; spec[i++] =(format.stencilBufferSize() ==!= -1| TRUE | evaluated 64 times by 7 testsEvaluated by:- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGraphicsView
- tst_QMdiArea
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
| | FALSE | evaluated 3993 times by 118 testsEvaluated 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
- ...
|
) | |
| 54 | ? 1 :spec << 13executed 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 | <<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
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
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| TRUE | never evaluated | | FALSE | evaluated 4057 times by 120 testsEvaluated 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 [i++] =<< 100000 never executed: spec << 100000 << 1 << 100001 << format.samples(); | 0 |
| 59 | ; never executed: spec << 100000 << 1 << 100001 << format.samples(); | 0 |
| spec[i++] = never executed: spec << 100000 << 1 << 100001 << format.samples(); never executed: spec << 100000 << 1 << 100001 << format.samples(); << 1never executed: spec << 100000 << 1 << 100001 << format.samples(); | |
| 60 | ; never executed: spec << 100000 << 1 << 100001 << format.samples(); | 0 |
| spec[i++] = never executed: spec << 100000 << 1 << 100001 << format.samples(); never executed: spec << 100000 << 1 << 100001 << format.samples(); << 100001never executed: spec << 100000 << 1 << 100001 << format.samples(); | |
| 61 | ; never executed: spec << 100000 << 1 << 100001 << format.samples(); | 0 |
| spec[i++] = never executed: spec << 100000 << 1 << 100001 << format.samples(); never executed: spec << 100000 << 1 << 100001 << format.samples(); << format.samples();never executed: spec << 100000 << 1 << 100001 << format.samples(); | |
| 62 | | - |
| 63 | }spec [i++] =<< 0x8010 | - |
| 64 | << drawableBit | - |
| 65 | | - |
| 66 | << XNone; | - |
| 67 | | - |
| 68 | returnexecuted 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 | | - |
| GLXFBConfig qglx_findConfig(Display *display, int screen , const QSurfaceFormat &format, int drawableBit)namespace { | |
| static bool checkedForceSoftwareOpenGL = false; | |
| static bool forceSoftwareOpenGL = false;struct QXcbSoftwareOpenGLEnforcer { | |
| 73 | QXcbSoftwareOpenGLEnforcer() { | - |
| 74 | | - |
| 75 | | - |
| 76 | | - |
| 77 | | - |
| 78 | | - |
| 79 | if (!checkedForceSoftwareOpenGL| TRUE | evaluated 124 times by 120 testsEvaluated 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
- ...
| | FALSE | evaluated 3933 times by 105 testsEvaluated 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")| TRUE | never evaluated | | FALSE | evaluated 124 times by 120 testsEvaluated 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")| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 86 | forceSoftwareOpenGL = true; never executed: forceSoftwareOpenGL = true; | 0 |
| 87 | | - |
| 88 | checkedForceSoftwareOpenGL = true; | - |
| 89 | }executed 124 times by 120 tests: end of blockExecuted 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| TRUE | never evaluated | | FALSE | evaluated 4057 times by 120 testsEvaluated 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 blockExecuted 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| TRUE | never evaluated | | FALSE | evaluated 4057 times by 120 testsEvaluated 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 blockExecuted 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 reducedcheckedForceSoftwareOpenGL; | - |
| 102 | static bool forceSoftwareOpenGL; | - |
| 103 | }; | - |
| 104 | | - |
| 105 | bool QXcbSoftwareOpenGLEnforcer::checkedForceSoftwareOpenGL = truefalse; | - |
| GLXFBConfig chosenConfigbool QXcbSoftwareOpenGLEnforcer::forceSoftwareOpenGL = 0false; | |
| 107 | | - |
| QSurfaceFormat reducedFormattemplate <class T> | |
| 109 | struct QXlibScopedPointerDeleter { | - |
| 110 | static inline void cleanup(T *pointer) { | - |
| 111 | XFree(pointer); | - |
| 112 | }executed 8166 times by 120 tests: end of blockExecuted 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 | | - |
| 115 | template <class T> | - |
| 116 | using QXlibPointer = QScopedPointer<T, QXlibScopedPointerDeleter<T>>; | - |
| 117 | | - |
| 118 | template <class T> | - |
| 119 | using QXlibArrayPointer = QScopedArrayPointer<T, QXlibScopedPointerDeleter<T>>; | - |
| 120 | } | - |
| 121 | | - |
| 122 | GLXFBConfig qglx_findConfig(Display *display, int screen , QSurfaceFormat format; | - |
| while (!chosenConfig && reduced, bool highestPixelFormat, int drawableBit) | |
| 123 | { | - |
| 124 | QXcbSoftwareOpenGLEnforcer softwareOpenGLEnforcer; | - |
| 125 | | - |
| 126 | GLXFBConfig config = 0; | - |
| 127 | | - |
| 128 | do { | - |
| 129 | const QVector<int> spec = qglx_buildSpec(reducedFormatformat, drawableBit); | - |
| 130 | | - |
| 131 | int confcount = 0; | - |
| 132 | QXlibArrayPointer<GLXFBConfig*configs;> configs=(glXChooseFBConfig(display, screen, spec.constData(), &confcount);)); | - |
| 133 | | - |
| 134 | if ((!config| TRUE | evaluated 4057 times by 120 testsEvaluated 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
- ...
| | FALSE | never evaluated |
&& confcount > 0| TRUE | evaluated 4057 times by 120 testsEvaluated 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
- ...
| | FALSE | never evaluated |
) { | 0-4057 |
| 135 | config = configs[0]; | - |
| 136 | if (highestPixelFormat| TRUE | never evaluated | | FALSE | evaluated 4057 times by 120 testsEvaluated 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()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0-4057 |
| 137 | break; never executed: break; | 0 |
| 138 | }executed 4057 times by 120 tests: end of blockExecuted 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| TRUE | evaluated 4109 times by 120 testsEvaluated 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
- ...
| | FALSE | never evaluated |
; i++) { | 0-4109 |
| 146 | chosenConfigGLXFBConfig candidate = configs[i]; | - |
| 147 | | - |
| 148 | ifQXlibPointer<XVisualInfo> visual(reducedFormat.hasAlpha()) { | - |
| int alphaSize; | |
| glXGetFBConfigAttribglXGetVisualFromFBConfig(display,configs[i],11, &alphaSize); | |
| ifcandidate)); | |
| 149 | | - |
| 150 | const int actualRed = qPopulationCount(alphaSize > 0) { | - |
| XVisualInfo *visual->red_mask); | |
| 151 | const int actualGreen = glXGetVisualFromFBConfigqPopulationCount(display, chosenConfigvisual->green_mask); | - |
| 152 | bool hasAlpha = false; | - |
| | |
| | |
| XRenderPictFormat *pictFormatconst int actualBlue = XRenderFindVisualFormatqPopulationCount(display,visual->visualblue_mask); | |
| 153 | hasAlphaconst int actualAlpha = pictFormatvisual->direct.alphaMask > 0depth - actualRed - actualGreen - actualBlue; | - |
| 154 | | - |
| 155 | XFree(visual);if (hasAlpharequestedRed| TRUE | evaluated 4109 times by 120 testsEvaluated 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
- ...
| | FALSE | never evaluated |
&& actualRed != requestedRed| TRUE | never evaluated | | FALSE | evaluated 4109 times by 120 testsEvaluated 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 | break; | 0 |
| } | |
| } else { | |
| breakcontinue never executed: continue; ;never executed: continue; | |
| 157 | } | 0-4109 |
| } | |
| | |
| XFree(configs); | |
| }if (!chosenConfig(requestedGreen| TRUE | evaluated 4109 times by 120 testsEvaluated 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
- ...
| | FALSE | never evaluated |
&& actualGreen != requestedGreen| TRUE | never evaluated | | FALSE | evaluated 4109 times by 120 testsEvaluated 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
- ...
|
) | |
| 158 | reducedFormat = qglx_reduceSurfaceFormatcontinue; never executed: continue; | 0 |
| 159 | if (reducedFormat,&reduced); | 0-4109 |
| }requestedBlue| TRUE | evaluated 4109 times by 120 testsEvaluated 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
- ...
| | FALSE | never evaluated |
&& actualBlue != requestedBlue| TRUE | never evaluated | | FALSE | evaluated 4109 times by 120 testsEvaluated 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
- ...
|
) | |
| 160 | continue; never executed: continue; | 0 |
| 161 | if (forceSoftwareOpenGLrequestedAlpha| TRUE | evaluated 56 times by 2 testsEvaluated by:- tst_QSystemTrayIcon
- tst_QWidget
| | FALSE | evaluated 4053 times by 120 testsEvaluated 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| TRUE | evaluated 52 times by 2 testsEvaluated by:- tst_QSystemTrayIcon
- tst_QWidget
| | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_QSystemTrayIcon
- tst_QWidget
|
) | 4-4053 |
| 162 | qunsetenvcontinue;executed 52 times by 2 tests: continue;Executed by:- tst_QSystemTrayIcon
- tst_QWidget
| 52 |
| 163 | | - |
| 164 | returnexecuted 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 ("LIBGL_ALWAYS_SOFTWARE");qglx_reduceFormat(&format)| TRUE | never evaluated | | FALSE | never evaluated |
); | 0 |
| 167 | | - |
| 168 | return never executed: return config; chosenConfigconfig;never executed: return config; | 0 |
| 169 | } | - |
| 170 | | - |
| 171 | XVisualInfo *qglx_findVisualInfo(Display *display, int screen, QSurfaceFormat *format, int drawableBit) | - |
| 172 | { | - |
| 173 | ((!(format)) ? qt_assert("format",__FILE__,188233) : qt_noop()); | - |
| 174 | | - |
| 175 | XVisualInfo *visualInfo = 0; | - |
| 176 | | - |
| 177 | GLXFBConfig config = qglx_findConfig(display, screen,*, *format, false, drawableBit); | - |
| 178 | if (config| TRUE | evaluated 3974 times by 118 testsEvaluated 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
- ...
| | FALSE | never 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| TRUE | evaluated 3974 times by 118 testsEvaluated 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
- ...
| | FALSE | never evaluated |
) { | 0-3974 |
| 182 | qglx_surfaceFormatFromGLXFBConfig(format, display, config); | - |
| 183 | } | 3974 |
| | |
| | |
| bool reduced = true; | |
| QSurfaceFormat reducedFormat = *format; | |
| while (!returnexecuted 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
- ...
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&& reduced) {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
- ...
| |
| QVarLengthArray<int, 13> attribsexecuted 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
- ...
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
- ...
;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
- ...
| |
| 184 | attribs.append(4); | - |
| | |
| if (reducedFormat.redBufferSize() > 0) { | |
| attribs.append(8); | |
| attribs.append(reducedFormat.redBufferSize()); | |
| } | |
| | |
| if (reducedFormat.greenBufferSize() > 0) { | |
| attribs.append(9); | |
| attribs.append(reducedFormat.greenBufferSize()); | |
| } | |
| | |
| if (reducedFormat.blueBufferSize() > 0) { | |
| attribs.append(10); | |
| attribs.append(reducedFormat.blueBufferSize());} | |
| 185 | | - |
| 186 | | - |
| 187 | if (reducedFormat.stencilBufferSize() > 0)do { | - |
| 188 | attribs.append(13); | - |
| attribs.append(reducedFormat.stencilBufferSize()); | |
| } | |
| | |
| if (reducedFormat.depthBufferSize()QVector<int> 0) { | |
| attribs.append(12); | |
| attribs.append(reducedFormat.depthBufferSize()); | |
| } | |
| | |
| if (reducedFormat.swapBehavior() != QSurfaceFormat::SingleBuffer) | |
| attribs.append(5);attribs .append(XNone= qglx_buildSpec(*format, drawableBit); | |
| 189 | visualInfo = glXChooseVisual(display, screen, attribs.data()); | - |
| 190 | | - |
| 191 | if (visualInfo| TRUE | never evaluated | | FALSE | never evaluated |
) *format = reducedFormat; | 0 |
| | |
| reducedFormat = qglx_reduceSurfaceFormat{ | |
| 192 | qglx_surfaceFormatFromVisualInfo(reducedFormatformat, &reduceddisplay, visualInfo); | - |
| 193 | return never executed: return visualInfo; never executed: return visualInfo; visualInfo;never executed: return visualInfo; | 0 |
| 194 | } | - |
| 195 | } never executed: end of block while (qglx_reduceFormat(format)| TRUE | never evaluated | | FALSE | never evaluated |
); | 0 |
| 196 | | - |
| 197 | return never executed: return visualInfo; visualInfo;never executed: return visualInfo; | 0 |
| 198 | } | - |
| 199 | | - |
| 200 | void 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) { | - |
| 228 | glXGetFBConfigAttrib(display, config, 100001, &sampleCount); | - |
| 229 | format->setSamples(sampleCount); | - |
| 230 | } | - |
| 231 | | - |
| 232 | format->setStereo(stereo); | - |
| 233 | } | - |
| 234 | | - |
| 235 | void 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) { | - |
| 263 | glXGetConfig(display, visualInfo, 100001, &sampleCount); | - |
| 264 | format->setSamples(sampleCount); | - |
| 265 | } | - |
| 266 | | - |
| 267 | format->setStereo(stereo); | - |
| 268 | } | - |
| 269 | | - |
| QSurfaceFormat qglx_reduceSurfaceFormatbool qglx_reduceFormat(constQSurfaceFormat &format, bool*reducedformat) | |
| 271 | { | - |
| 272 | QSurfaceFormat retFormat =((!(format; | - |
| *reduced = true;)) ? qt_assert("format",__FILE__,332) : qt_noop()); | |
| 273 | | - |
| 274 | if (retFormat.format->| TRUE | never evaluated | | FALSE | never evaluated |
redBufferSize() > 1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 275 | retFormat.format->setRedBufferSize(1); | - |
| 276 | return never executed: return true; never executed: return true; true;never executed: return true; | 0 |
| 277 | } | - |
| 278 | | - |
| 279 | elseif (retFormat.format->| TRUE | never evaluated | | FALSE | never evaluated |
greenBufferSize() > 1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 280 | retFormat.format->setGreenBufferSize(1); | - |
| 281 | return never executed: return true; never executed: return true; true;never executed: return true; | 0 |
| 282 | } | - |
| 283 | | - |
| 284 | elseif (retFormat.format->| TRUE | never evaluated | | FALSE | never evaluated |
blueBufferSize() > 1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 285 | retFormat.format->setBlueBufferSize(1); | - |
| 286 | return never executed: return true; never executed: return true; true;never executed: return true; | 0 |
| 287 | } | - |
| 288 | | - |
| 289 | elseif (retFormat.format->swapBehavior() != QSurfaceFormat::SingleBuffer| TRUE | never evaluated | | FALSE | never evaluated |
){ | 0 |
| 290 | format->setSwapBehavior(QSurfaceFormat::SingleBuffer); | - |
| 291 | return never executed: return true; true;never executed: return true; | 0 |
| 292 | } | - |
| 293 | | - |
| 294 | if (format->| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
samples() > 1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 295 | retFormat.format->setSamples(qMin(retFormat.16, format->samples() / 2, 16)); | - |
| 296 | return never executed: return true; never executed: return true; true;never executed: return true; | 0 |
| 297 | } | - |
| 298 | | - |
| 299 | elseif (retFormat.stereo())format->depthBufferSize() >= 32| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 300 | retFormat.setStereoformat->setDepthBufferSize(false24); | - |
| 301 | return never executed: return true; never executed: return true; true;never executed: return true; | 0 |
| 302 | } | - |
| 303 | | - |
| 304 | elseif (retFormat.stencilBufferSizeformat->depthBufferSize() > 1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 305 | format->setDepthBufferSize(1); | - |
| 306 | return never executed: return true; true;never executed: return true; | 0 |
| 307 | } | - |
| 308 | | - |
| 309 | if (format->depthBufferSize| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
() > 0| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 310 | retFormat.setStencilBufferSizeformat->setDepthBufferSize(0); | - |
| 311 | return never executed: return true; never executed: return true; true;never executed: return true; | 0 |
| 312 | } | - |
| 313 | | - |
| 314 | elseif (retFormat.format->| TRUE | never evaluated | | FALSE | never evaluated |
hasAlpha()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 315 | retFormat.format->setAlphaBufferSize(0); | - |
| 316 | return never executed: return true; never executed: return true; true;never executed: return true; | 0 |
| 317 | } | - |
| 318 | | - |
| 319 | elseif (retFormat.depthBufferSizeformat->stencilBufferSize| TRUE | never evaluated | | FALSE | never evaluated |
() > 01| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 320 | retFormat.setDepthBufferSizeformat->setStencilBufferSize(01); | - |
| 321 | return never executed: return true; never executed: return true; true;never executed: return true; | 0 |
| 322 | } | - |
| 323 | | - |
| 324 | elseif (retFormat.swapBehaviorformat->stencilBufferSize| TRUE | never evaluated | | FALSE | never evaluated |
() != QSurfaceFormat::SingleBuffer> 0| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 325 | retFormat.setSwapBehaviorformat->setStencilBufferSize(QSurfaceFormat::SingleBuffer0); | - |
| 326 | return never executed: return true; never executed: return true; true;never executed: return true; | 0 |
| 327 | } | - |
| 328 | | - |
| 329 | elseif (format->stereo()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 330 | *reduced =format->setStereo(false); | - |
| 331 | return never executed: return true; truenever executed: return true; never executed: return true; ;never executed: return true; | 0 |
| 332 | } | - |
| 333 | | - |
| 334 | return never executed: return false; retFormatfalse;never executed: return false; | 0 |
| 335 | } | - |
| | |