| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgdefaultlayer_p.h |
| Source code | Switch to Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | /**************************************************************************** | - |
| 2 | ** | - |
| 3 | ** Copyright (C) 2016 The Qt Company Ltd. | - |
| 4 | ** Contact: https://www.qt.io/licensing/ | - |
| 5 | ** | - |
| 6 | ** This file is part of the QtQuick module of the Qt Toolkit. | - |
| 7 | ** | - |
| 8 | ** $QT_BEGIN_LICENSE:LGPL$ | - |
| 9 | ** Commercial License Usage | - |
| 10 | ** Licensees holding valid commercial Qt licenses may use this file in | - |
| 11 | ** accordance with the commercial license agreement provided with the | - |
| 12 | ** Software or, alternatively, in accordance with the terms contained in | - |
| 13 | ** a written agreement between you and The Qt Company. For licensing terms | - |
| 14 | ** and conditions see https://www.qt.io/terms-conditions. For further | - |
| 15 | ** information use the contact form at https://www.qt.io/contact-us. | - |
| 16 | ** | - |
| 17 | ** GNU Lesser General Public License Usage | - |
| 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser | - |
| 19 | ** General Public License version 3 as published by the Free Software | - |
| 20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the | - |
| 21 | ** packaging of this file. Please review the following information to | - |
| 22 | ** ensure the GNU Lesser General Public License version 3 requirements | - |
| 23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. | - |
| 24 | ** | - |
| 25 | ** GNU General Public License Usage | - |
| 26 | ** Alternatively, this file may be used under the terms of the GNU | - |
| 27 | ** General Public License version 2.0 or (at your option) the GNU General | - |
| 28 | ** Public license version 3 or any later version approved by the KDE Free | - |
| 29 | ** Qt Foundation. The licenses are as published by the Free Software | - |
| 30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 | - |
| 31 | ** included in the packaging of this file. Please review the following | - |
| 32 | ** information to ensure the GNU General Public License requirements will | - |
| 33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and | - |
| 34 | ** https://www.gnu.org/licenses/gpl-3.0.html. | - |
| 35 | ** | - |
| 36 | ** $QT_END_LICENSE$ | - |
| 37 | ** | - |
| 38 | ****************************************************************************/ | - |
| 39 | #ifndef QSGDEFAULTLAYER_P_H | - |
| 40 | #define QSGDEFAULTLAYER_P_H | - |
| 41 | - | |
| 42 | // | - |
| 43 | // W A R N I N G | - |
| 44 | // ------------- | - |
| 45 | // | - |
| 46 | // This file is not part of the Qt API. It exists purely as an | - |
| 47 | // implementation detail. This header file may change from version to | - |
| 48 | // version without notice, or even be removed. | - |
| 49 | // | - |
| 50 | // We mean it. | - |
| 51 | // | - |
| 52 | - | |
| 53 | #include <private/qsgadaptationlayer_p.h> | - |
| 54 | #include <private/qsgcontext_p.h> | - |
| 55 | #include <qsgsimplerectnode.h> | - |
| 56 | - | |
| 57 | QT_BEGIN_NAMESPACE | - |
| 58 | - | |
| 59 | #define QSG_DEBUG_FBO_OVERLAY | - |
| 60 | - | |
| 61 | class QOpenGLFramebufferObject; | - |
| 62 | class QSGDepthStencilBuffer; | - |
| 63 | class QSGDefaultRenderContext; | - |
| 64 | - | |
| 65 | class Q_QUICK_PRIVATE_EXPORT QSGDefaultLayer : public QSGLayer | - |
| 66 | { | - |
| 67 | Q_OBJECT | - |
| 68 | public: | - |
| 69 | QSGDefaultLayer(QSGRenderContext *context); | - |
| 70 | ~QSGDefaultLayer(); | - |
| 71 | - | |
| 72 | bool updateTexture() override; | - |
| 73 | - | |
| 74 | // The item's "paint node", not effect node. | - |
| 75 | QSGNode *item() const { return m_item; } never executed: return m_item; | 0 |
| 76 | void setItem(QSGNode *item) override; | - |
| 77 | - | |
| 78 | QRectF rect() const { return m_rect; } never executed: return m_rect; | 0 |
| 79 | void setRect(const QRectF &rect) override; | - |
| 80 | - | |
| 81 | QSize size() const { return m_size; } never executed: return m_size; | 0 |
| 82 | void setSize(const QSize &size) override; | - |
| 83 | - | |
| 84 | void setHasMipmaps(bool mipmap) override; | - |
| 85 | - | |
| 86 | void bind() override; | - |
| 87 | - | |
| 88 | bool hasAlphaChannel() const override; | - |
| 89 | bool hasMipmaps() const override; | - |
| 90 | int textureId() const override; | - |
| 91 | QSize textureSize() const override { return m_size; } executed 31 times by 2 tests: return m_size;Executed by:
| 31 |
| 92 | - | |
| 93 | GLenum format() const { return m_format; } never executed: return m_format; | 0 |
| 94 | void setFormat(GLenum format) override; | - |
| 95 | - | |
| 96 | bool live() const { return bool(m_live); } never executed: return bool(m_live); | 0 |
| 97 | void setLive(bool live) override; | - |
| 98 | - | |
| 99 | bool recursive() const { return bool(m_recursive); } never executed: return bool(m_recursive); | 0 |
| 100 | void setRecursive(bool recursive) override; | - |
| 101 | - | |
| 102 | void setDevicePixelRatio(qreal ratio) override { m_device_pixel_ratio = ratio; } executed 183 times by 4 tests: end of blockExecuted by:
| 183 |
| 103 | - | |
| 104 | bool mirrorHorizontal() const { return bool(m_mirrorHorizontal); } never executed: return bool(m_mirrorHorizontal); | 0 |
| 105 | void setMirrorHorizontal(bool mirror) override; | - |
| 106 | - | |
| 107 | bool mirrorVertical() const { return bool(m_mirrorVertical); } never executed: return bool(m_mirrorVertical); | 0 |
| 108 | void setMirrorVertical(bool mirror) override; | - |
| 109 | - | |
| 110 | void scheduleUpdate() override; | - |
| 111 | - | |
| 112 | QImage toImage() const override; | - |
| 113 | - | |
| 114 | QRectF normalizedTextureSubRect() const override; | - |
| 115 | - | |
| 116 | int samples() const { return m_samples; } never executed: return m_samples; | 0 |
| 117 | void setSamples(int samples) override { m_samples = samples; } executed 183 times by 4 tests: end of blockExecuted by:
| 183 |
| 118 | - | |
| 119 | public Q_SLOTS: | - |
| 120 | void markDirtyTexture() override; | - |
| 121 | void invalidated() override; | - |
| 122 | - | |
| 123 | private: | - |
| 124 | void grab(); | - |
| 125 | - | |
| 126 | QSGNode *m_item; | - |
| 127 | QRectF m_rect; | - |
| 128 | QSize m_size; | - |
| 129 | qreal m_device_pixel_ratio; | - |
| 130 | GLenum m_format; | - |
| 131 | - | |
| 132 | QSGRenderer *m_renderer; | - |
| 133 | QOpenGLFramebufferObject *m_fbo; | - |
| 134 | QOpenGLFramebufferObject *m_secondaryFbo; | - |
| 135 | QSharedPointer<QSGDepthStencilBuffer> m_depthStencilBuffer; | - |
| 136 | - | |
| 137 | GLuint m_transparentTexture; | - |
| 138 | - | |
| 139 | #ifdef QSG_DEBUG_FBO_OVERLAY | - |
| 140 | QSGSimpleRectNode *m_debugOverlay; | - |
| 141 | #endif | - |
| 142 | - | |
| 143 | QSGDefaultRenderContext *m_context; | - |
| 144 | int m_samples; | - |
| 145 | - | |
| 146 | uint m_mipmap : 1; | - |
| 147 | uint m_live : 1; | - |
| 148 | uint m_recursive : 1; | - |
| 149 | uint m_dirtyTexture : 1; | - |
| 150 | uint m_multisamplingChecked : 1; | - |
| 151 | uint m_multisampling : 1; | - |
| 152 | uint m_grab : 1; | - |
| 153 | uint m_mirrorHorizontal : 1; | - |
| 154 | uint m_mirrorVertical : 1; | - |
| 155 | }; | - |
| 156 | - | |
| 157 | QT_END_NAMESPACE | - |
| 158 | - | |
| 159 | #endif // QSGDEFAULTLAYER_P_H | - |
| Source code | Switch to Preprocessed file |