OpenCoverage

qsgtexture.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/util/qsgtexture.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
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-
40#include "qsgtexture_p.h"-
41#include <QtQuick/private/qsgcontext_p.h>-
42#include <qthread.h>-
43#include <qmath.h>-
44#include <private/qquickprofiler_p.h>-
45#include <private/qqmlglobal_p.h>-
46#include <QtGui/qguiapplication.h>-
47#include <QtGui/qpa/qplatformnativeinterface.h>-
48#if QT_CONFIG(opengl)-
49# include <qopenglfunctions.h>-
50# include <QtGui/qopenglcontext.h>-
51# include <QtGui/qopenglfunctions.h>-
52# include <private/qsgdefaultrendercontext_p.h>-
53#endif-
54#include <private/qsgmaterialshader_p.h>-
55-
56#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID) && defined(__GLIBC__)-
57#define CAN_BACKTRACE_EXECINFO-
58#endif-
59-
60#if defined(Q_OS_MAC)-
61#define CAN_BACKTRACE_EXECINFO-
62#endif-
63-
64#if defined(QT_NO_DEBUG)-
65#undef CAN_BACKTRACE_EXECINFO-
66#endif-
67-
68#if defined(CAN_BACKTRACE_EXECINFO)-
69#include <execinfo.h>-
70#include <QHash>-
71#endif-
72-
73#if QT_CONFIG(opengl)-
74static QElapsedTimer qsg_renderer_timer;-
75#endif-
76-
77#ifndef QT_NO_DEBUG-
78static const bool qsg_leak_check = !qEnvironmentVariableIsEmpty("QML_LEAK_CHECK");-
79#endif-
80-
81-
82#ifndef GL_BGRA-
83#define GL_BGRA 0x80E1-
84#endif-
85-
86#ifndef GL_TEXTURE_MAX_ANISOTROPY_EXT-
87#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE-
88#endif-
89-
90QT_BEGIN_NAMESPACE-
91-
92#if QT_CONFIG(opengl)-
93inline static bool isPowerOfTwo(int x)-
94{-
95 // Assumption: x >= 1-
96 return x == (x & -x);
executed 25 times by 4 tests: return x == (x & -x);
Executed by:
  • tst_examples
  • tst_qquickimage
  • tst_qquickpainteditem
  • tst_scenegraph
25
97}-
98#endif-
99-
100QSGTexturePrivate::QSGTexturePrivate()-
101 : wrapChanged(false)-
102 , filteringChanged(false)-
103 , anisotropyChanged(false)-
104 , horizontalWrap(QSGTexture::ClampToEdge)-
105 , verticalWrap(QSGTexture::ClampToEdge)-
106 , mipmapMode(QSGTexture::None)-
107 , filterMode(QSGTexture::Nearest)-
108 , anisotropyLevel(QSGTexture::AnisotropyNone)-
109{-
110}
executed 794 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • ...
794
111-
112#ifndef QT_NO_DEBUG-
113-
114static int qt_debug_texture_count = 0;-
115-
116#if (defined(Q_OS_LINUX) || defined (Q_OS_MAC)) && !defined(Q_OS_ANDROID)-
117DEFINE_BOOL_CONFIG_OPTION(qmlDebugLeakBacktrace, QML_DEBUG_LEAK_BACKTRACE)
never executed: status = Yes;
never executed: end of block
never executed: end of block
never executed: return status == Yes;
status == UnknownDescription
TRUEnever evaluated
FALSEnever evaluated
__builtin_expe...ACE")), false)Description
TRUEnever evaluated
FALSEnever evaluated
v != "0"Description
TRUEnever evaluated
FALSEnever evaluated
v != "false"Description
TRUEnever evaluated
FALSEnever evaluated
0
118-
119#define BACKTRACE_SIZE 20-
120class SGTextureTraceItem-
121{-
122public:-
123 void *backTrace[BACKTRACE_SIZE];-
124 size_t backTraceSize;-
125};-
126-
127static QHash<QSGTexture*, SGTextureTraceItem*> qt_debug_allocated_textures;-
128#endif-
129-
130inline static void qt_debug_print_texture_count()-
131{-
132 qDebug("Number of leaked textures: %i", qt_debug_texture_count);-
133 qt_debug_texture_count = -1;-
134-
135#if defined(CAN_BACKTRACE_EXECINFO)-
136 if (qmlDebugLeakBacktrace()) {
qmlDebugLeakBacktrace()Description
TRUEnever evaluated
FALSEnever evaluated
0
137 while (!qt_debug_allocated_textures.isEmpty()) {
!qt_debug_allo...ures.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
138 QHash<QSGTexture*, SGTextureTraceItem*>::Iterator it = qt_debug_allocated_textures.begin();-
139 QSGTexture* texture = it.key();-
140 SGTextureTraceItem* item = it.value();-
141-
142 qt_debug_allocated_textures.erase(it);-
143-
144 qDebug() << "------";-
145 qDebug() << "Leaked" << texture << "backtrace:";-
146-
147 char** symbols = backtrace_symbols(item->backTrace, item->backTraceSize);-
148-
149 if (symbols) {
symbolsDescription
TRUEnever evaluated
FALSEnever evaluated
0
150 for (int i=0; i<(int) item->backTraceSize; i++)
i<(int) item->backTraceSizeDescription
TRUEnever evaluated
FALSEnever evaluated
0
151 qDebug("Backtrace <%02d>: %s", i, symbols[i]);
never executed: QMessageLogger(__FILE__, 151, __PRETTY_FUNCTION__).debug("Backtrace <%02d>: %s", i, symbols[i]);
0
152 free(symbols);-
153 }
never executed: end of block
0
154-
155 qDebug() << "------";-
156-
157 delete item;-
158 }
never executed: end of block
0
159 }
never executed: end of block
0
160#endif-
161}
never executed: end of block
0
162-
163inline static void qt_debug_add_texture(QSGTexture* texture)-
164{-
165#if defined(CAN_BACKTRACE_EXECINFO)-
166 if (qmlDebugLeakBacktrace()) {
qmlDebugLeakBacktrace()Description
TRUEnever evaluated
FALSEnever evaluated
0
167 SGTextureTraceItem* item = new SGTextureTraceItem;-
168 item->backTraceSize = backtrace(item->backTrace, BACKTRACE_SIZE);-
169 qt_debug_allocated_textures.insert(texture, item);-
170 }
never executed: end of block
0
171#else-
172 Q_UNUSED(texture);-
173#endif // Q_OS_LINUX-
174-
175 ++qt_debug_texture_count;-
176-
177 static bool atexit_registered = false;-
178 if (!atexit_registered) {
!atexit_registeredDescription
TRUEnever evaluated
FALSEnever evaluated
0
179 atexit(qt_debug_print_texture_count);-
180 atexit_registered = true;-
181 }
never executed: end of block
0
182}
never executed: end of block
0
183-
184static void qt_debug_remove_texture(QSGTexture* texture)-
185{-
186#if defined(CAN_BACKTRACE_EXECINFO)-
187 if (qmlDebugLeakBacktrace()) {
qmlDebugLeakBacktrace()Description
TRUEnever evaluated
FALSEnever evaluated
0
188 SGTextureTraceItem* item = qt_debug_allocated_textures.value(texture, 0);-
189 if (item) {
itemDescription
TRUEnever evaluated
FALSEnever evaluated
0
190 qt_debug_allocated_textures.remove(texture);-
191 delete item;-
192 }
never executed: end of block
0
193 }
never executed: end of block
0
194#else-
195 Q_UNUSED(texture)-
196#endif-
197-
198 --qt_debug_texture_count;-
199-
200 if (qt_debug_texture_count < 0)
qt_debug_texture_count < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
201 qDebug("Texture destroyed after qt_debug_print_texture_count() was called.");
never executed: QMessageLogger(__FILE__, 201, __PRETTY_FUNCTION__).debug("Texture destroyed after qt_debug_print_texture_count() was called.");
0
202}
never executed: end of block
0
203-
204#endif // QT_NO_DEBUG-
205-
206/*!-
207 \class QSGTexture-
208-
209 \inmodule QtQuick-
210-
211 \brief The QSGTexture class is a baseclass for textures used in-
212 the scene graph.-
213-
214-
215 Users can freely implement their own texture classes to support-
216 arbitrary input textures, such as YUV video frames or 8 bit alpha-
217 masks. The scene graph backend provides a default implementation-
218 of normal color textures. As the implementation of these may be-
219 hardware specific, they are constructed via the factory-
220 function QQuickWindow::createTextureFromImage().-
221-
222 The texture is a wrapper around an OpenGL texture, which texture-
223 id is given by textureId() and which size in pixels is given by-
224 textureSize(). hasAlphaChannel() reports if the texture contains-
225 opacity values and hasMipmaps() reports if the texture contains-
226 mipmap levels.-
227-
228 To use a texture, call the bind() function. The texture parameters-
229 specifying how the texture is bound, can be specified with-
230 setMipmapFiltering(), setFiltering(), setHorizontalWrapMode() and-
231 setVerticalWrapMode(). The texture will internally try to store-
232 these values to minimize the OpenGL state changes when the texture-
233 is bound.-
234-
235 \section1 Texture Atlasses-
236-
237 Some scene graph backends use texture atlasses, grouping multiple-
238 small textures into one large texture. If this is the case, the-
239 function isAtlasTexture() will return true. Atlasses are used to-
240 aid the rendering algorithm to do better sorting which increases-
241 performance. The location of the texture inside the atlas is-
242 given with the normalizedTextureSubRect() function.-
243-
244 If the texture is used in such a way that atlas is not preferable,-
245 the function removedFromAtlas() can be used to extract a-
246 non-atlassed copy.-
247-
248 \note All classes with QSG prefix should be used solely on the scene graph's-
249 rendering thread. See \l {Scene Graph and Rendering} for more information.-
250-
251 \sa {Scene Graph - Rendering FBOs}, {Scene Graph - Rendering FBOs in a thread}-
252 */-
253-
254/*!-
255 \enum QSGTexture::WrapMode-
256-
257 Specifies how the texture should treat texture coordinates.-
258-
259 \value Repeat Only the fractional part of the texture coordinate is-
260 used, causing values above 1 and below 0 to repeat.-
261-
262 \value ClampToEdge Values above 1 are clamped to 1 and values-
263 below 0 are clamped to 0.-
264-
265 \value MirroredRepeat When the texture coordinate is even, only the-
266 fractional part is used. When odd, the texture coordinate is set to-
267 \c{1 - fractional part}. This value has been introduced in Qt 5.10.-
268 */-
269-
270/*!-
271 \enum QSGTexture::Filtering-
272-
273 Specifies how sampling of texels should filter when texture-
274 coordinates are not pixel aligned.-
275-
276 \value None No filtering should occur. This value is only used-
277 together with setMipmapFiltering().-
278-
279 \value Nearest Sampling returns the nearest texel.-
280-
281 \value Linear Sampling returns a linear interpolation of the-
282 neighboring texels.-
283*/-
284-
285/*!-
286 \enum QSGTexture::AnisotropyLevel-
287-
288 Specifies the anisotropic filtering level to be used when-
289 the texture is not screen aligned.-
290-
291 \value AnisotropyNone No anisotropic filtering.-
292-
293 \value Anisotropy2x 2x anisotropic filtering.-
294-
295 \value Anisotropy4x 4x anisotropic filtering.-
296-
297 \value Anisotropy8x 8x anisotropic filtering.-
298-
299 \value Anisotropy16x 16x anisotropic filtering.-
300-
301 \since 5.9-
302*/-
303-
304/*!-
305 \fn QSGTexture::QSGTexture(QSGTexturePrivate &dd)-
306 \internal-
307 */-
308-
309#ifndef QT_NO_DEBUG-
310Q_GLOBAL_STATIC(QSet<QSGTexture *>, qsg_valid_texture_set)
executed 74 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • ...
executed 74 times by 37 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • ...
executed 22678 times by 37 tests: return &holder.value;
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • ...
guard.load() =...c::InitializedDescription
TRUEevaluated 74 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • ...
FALSEnever evaluated
0-22678
311Q_GLOBAL_STATIC(QMutex, qsg_valid_texture_mutex)
executed 74 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • ...
executed 74 times by 37 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • ...
executed 22678 times by 37 tests: return &holder.value;
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • ...
guard.load() =...c::InitializedDescription
TRUEevaluated 74 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • ...
FALSEnever evaluated
0-22678
312-
313bool qsg_safeguard_texture(QSGTexture *texture)-
314{-
315#if QT_CONFIG(opengl)-
316 QMutexLocker locker(qsg_valid_texture_mutex());-
317 if (!qsg_valid_texture_set()->contains(texture)) {
!qsg_valid_tex...tains(texture)Description
TRUEnever evaluated
FALSEevaluated 21107 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
0-21107
318 qWarning() << "Invalid texture accessed:" << (void *) texture;-
319 qsg_set_material_failure();-
320 QOpenGLContext::currentContext()->functions()->glBindTexture(GL_TEXTURE_2D, 0);-
321 return false;
never executed: return false;
0
322 }-
323#else-
324 Q_UNUSED(texture)-
325#endif-
326 return true;
executed 21107 times by 12 tests: return true;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
21107
327}-
328#endif-
329-
330/*!-
331 Constructs the QSGTexture base class.-
332 */-
333QSGTexture::QSGTexture()-
334 : QObject(*(new QSGTexturePrivate))-
335{-
336#ifndef QT_NO_DEBUG-
337 if (qsg_leak_check)
qsg_leak_checkDescription
TRUEnever evaluated
FALSEevaluated 794 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • ...
0-794
338 qt_debug_add_texture(this);
never executed: qt_debug_add_texture(this);
0
339-
340 QMutexLocker locker(qsg_valid_texture_mutex());-
341 qsg_valid_texture_set()->insert(this);-
342#endif-
343}
executed 794 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • ...
794
344-
345/*!-
346 Destroys the QSGTexture.-
347 */-
348QSGTexture::~QSGTexture()-
349{-
350#ifndef QT_NO_DEBUG-
351 if (qsg_leak_check)
qsg_leak_checkDescription
TRUEnever evaluated
FALSEevaluated 777 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • ...
0-777
352 qt_debug_remove_texture(this);
never executed: qt_debug_remove_texture(this);
0
353-
354 QMutexLocker locker(qsg_valid_texture_mutex());-
355 qsg_valid_texture_set()->remove(this);-
356#endif-
357}
executed 777 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • ...
777
358-
359-
360/*!-
361 \fn void QSGTexture::bind()-
362-
363 Call this function to bind this texture to the current texture-
364 target.-
365-
366 Binding a texture may also include uploading the texture data from-
367 a previously set QImage.-
368-
369 \warning This function can only be called from the rendering thread.-
370 */-
371-
372/*!-
373 \fn QRectF QSGTexture::convertToNormalizedSourceRect(const QRectF &rect) const-
374-
375 Returns \a rect converted to normalized coordinates.-
376-
377 \sa normalizedTextureSubRect()-
378 */-
379-
380/*!-
381 This function returns a copy of the current texture which is removed-
382 from its atlas.-
383-
384 The current texture remains unchanged, so texture coordinates do not-
385 need to be updated.-
386-
387 Removing a texture from an atlas is primarily useful when passing-
388 it to a shader that operates on the texture coordinates 0-1 instead-
389 of the texture subrect inside the atlas.-
390-
391 If the texture is not part of a texture atlas, this function returns 0.-
392-
393 Implementations of this function are recommended to return the same instance-
394 for multiple calls to limit memory usage.-
395-
396 \warning This function can only be called from the rendering thread.-
397 */-
398-
399QSGTexture *QSGTexture::removedFromAtlas() const-
400{-
401 Q_ASSERT_X(!isAtlasTexture(), "QSGTexture::removedFromAtlas()", "Called on a non-atlas texture");-
402 return nullptr;
never executed: return nullptr;
0
403}-
404-
405/*!-
406 Returns weither this texture is part of an atlas or not.-
407-
408 The default implementation returns false.-
409 */-
410bool QSGTexture::isAtlasTexture() const-
411{-
412 return false;
executed 8474 times by 34 tests: return false;
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
8474
413}-
414-
415/*!-
416 \fn int QSGTexture::textureId() const-
417-
418 Returns the OpenGL texture id for this texture.-
419-
420 The default value is 0, indicating that it is an invalid texture id.-
421-
422 The function should at all times return the correct texture id.-
423-
424 \warning This function can only be called from the rendering thread.-
425 */-
426-
427/*!-
428 \fn QSize QSGTexture::textureSize() const-
429-
430 Returns the size of the texture.-
431 */-
432-
433/*!-
434 Returns the rectangle inside textureSize() that this texture-
435 represents in normalized coordinates.-
436-
437 The default implementation returns a rect at position (0, 0) with-
438 width and height of 1.-
439 */-
440QRectF QSGTexture::normalizedTextureSubRect() const-
441{-
442 return QRectF(0, 0, 1, 1);
executed 274 times by 8 tests: return QRectF(0, 0, 1, 1);
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickanimatedsprite
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickspritesequence
  • tst_qquicktext
  • tst_scenegraph
274
443}-
444-
445/*!-
446 \fn bool QSGTexture::hasAlphaChannel() const-
447-
448 Returns true if the texture data contains an alpha channel.-
449 */-
450-
451/*!-
452 \fn bool QSGTexture::hasMipmaps() const-
453-
454 Returns true if the texture data contains mipmap levels.-
455 */-
456-
457-
458/*!-
459 Sets the mipmap sampling mode to be used for the upcoming bind() call to \a filter.-
460-
461 Setting the mipmap filtering has no effect it the texture does not have mipmaps.-
462-
463 \sa hasMipmaps()-
464 */-
465void QSGTexture::setMipmapFiltering(Filtering filter)-
466{-
467 Q_D(QSGTexture);-
468 if (d->mipmapMode != (uint) filter) {
d->mipmapMode != (uint) filterDescription
TRUEevaluated 10 times by 3 tests
Evaluated by:
  • tst_qquickitemlayer
  • tst_qquickpainteditem
  • tst_scenegraph
FALSEevaluated 21420 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
10-21420
469 d->mipmapMode = filter;-
470 d->filteringChanged = true;-
471 }
executed 10 times by 3 tests: end of block
Executed by:
  • tst_qquickitemlayer
  • tst_qquickpainteditem
  • tst_scenegraph
10
472}
executed 21430 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
21430
473-
474/*!-
475 Returns whether mipmapping should be used when sampling from this texture.-
476 */-
477QSGTexture::Filtering QSGTexture::mipmapFiltering() const-
478{-
479 return (QSGTexture::Filtering) d_func()->mipmapMode;
executed 8114 times by 30 tests: return (QSGTexture::Filtering) d_func()->mipmapMode;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • ...
8114
480}-
481-
482-
483/*!-
484 Sets the sampling mode to be used for the upcoming bind() call to \a filter.-
485 */-
486void QSGTexture::setFiltering(QSGTexture::Filtering filter)-
487{-
488 Q_D(QSGTexture);-
489 if (d->filterMode != (uint) filter) {
d->filterMode != (uint) filterDescription
TRUEevaluated 458 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
FALSEevaluated 23149 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquickspritesequence
  • tst_qquicktext
  • tst_scenegraph
458-23149
490 d->filterMode = filter;-
491 d->filteringChanged = true;-
492 }
executed 458 times by 35 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
458
493}
executed 23607 times by 35 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
23607
494-
495/*!-
496 Returns the sampling mode to be used for this texture.-
497 */-
498QSGTexture::Filtering QSGTexture::filtering() const-
499{-
500 return (QSGTexture::Filtering) d_func()->filterMode;
executed 1463 times by 8 tests: return (QSGTexture::Filtering) d_func()->filterMode;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_scenegraph
1463
501}-
502-
503/*!-
504 Sets the level of anisotropic filtering to be used for the upcoming bind() call to \a level.-
505 The default value is QSGTexture::AnisotropyNone, which means no anisotropic filtering is enabled.-
506-
507 \since 5.9-
508 */-
509void QSGTexture::setAnisotropyLevel(AnisotropyLevel level)-
510{-
511 Q_D(QSGTexture);-
512 if (d->anisotropyLevel != (uint) level) {
d->anisotropyL...= (uint) levelDescription
TRUEnever evaluated
FALSEevaluated 20802 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
0-20802
513 d->anisotropyLevel = level;-
514 d->anisotropyChanged = true;-
515 }
never executed: end of block
0
516}
executed 20802 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
20802
517-
518/*!-
519 Returns the anisotropy level in use for filtering this texture.-
520-
521 \since 5.9-
522 */-
523QSGTexture::AnisotropyLevel QSGTexture::anisotropyLevel() const-
524{-
525 return (QSGTexture::AnisotropyLevel) d_func()->anisotropyLevel;
never executed: return (QSGTexture::AnisotropyLevel) d_func()->anisotropyLevel;
0
526}-
527-
528-
529-
530/*!-
531 Sets the horizontal wrap mode to be used for the upcoming bind() call to \a hwrap-
532 */-
533-
534void QSGTexture::setHorizontalWrapMode(WrapMode hwrap)-
535{-
536 Q_D(QSGTexture);-
537 if ((uint) hwrap != d->horizontalWrap) {
(uint) hwrap !...horizontalWrapDescription
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
FALSEevaluated 21420 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
11-21420
538 d->horizontalWrap = hwrap;-
539 d->wrapChanged = true;-
540 }
executed 11 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimage
11
541}
executed 21431 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
21431
542-
543/*!-
544 Returns the horizontal wrap mode to be used for this texture.-
545 */-
546QSGTexture::WrapMode QSGTexture::horizontalWrapMode() const-
547{-
548 return (QSGTexture::WrapMode) d_func()->horizontalWrap;
never executed: return (QSGTexture::WrapMode) d_func()->horizontalWrap;
0
549}-
550-
551-
552-
553/*!-
554 Sets the vertical wrap mode to be used for the upcoming bind() call to \a vwrap-
555 */-
556void QSGTexture::setVerticalWrapMode(WrapMode vwrap)-
557{-
558 Q_D(QSGTexture);-
559 if ((uint) vwrap != d->verticalWrap) {
(uint) vwrap !...->verticalWrapDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
FALSEevaluated 21422 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
9-21422
560 d->verticalWrap = vwrap;-
561 d->wrapChanged = true;-
562 }
executed 9 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimage
9
563}
executed 21431 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
21431
564-
565/*!-
566 Returns the vertical wrap mode to be used for this texture.-
567 */-
568QSGTexture::WrapMode QSGTexture::verticalWrapMode() const-
569{-
570 return (QSGTexture::WrapMode) d_func()->verticalWrap;
never executed: return (QSGTexture::WrapMode) d_func()->verticalWrap;
0
571}-
572-
573-
574/*!-
575 Update the texture state to match the filtering, mipmap and wrap options-
576 currently set.-
577-
578 If \a force is true, all properties will be updated regardless of weither-
579 they have changed or not.-
580 */-
581void QSGTexture::updateBindOptions(bool force)-
582{-
583#if QT_CONFIG(opengl)-
584 Q_D(QSGTexture);-
585 QOpenGLFunctions *funcs = QOpenGLContext::currentContext()->functions();-
586 force |= isAtlasTexture();-
587-
588 if (force || d->filteringChanged) {
forceDescription
TRUEevaluated 19198 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
FALSEevaluated 7590 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • ...
d->filteringChangedDescription
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
FALSEevaluated 7579 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • ...
11-19198
589 bool linear = d->filterMode == Linear;-
590 GLint minFilter = linear ? GL_LINEAR : GL_NEAREST;
linearDescription
TRUEevaluated 19116 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
FALSEevaluated 93 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickspritegoal
  • tst_qquicktext
  • tst_scenegraph
93-19116
591 GLint magFilter = linear ? GL_LINEAR : GL_NEAREST;
linearDescription
TRUEevaluated 19116 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
FALSEevaluated 93 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickspritegoal
  • tst_qquicktext
  • tst_scenegraph
93-19116
592-
593 if (hasMipmaps()) {
hasMipmaps()Description
TRUEevaluated 10 times by 3 tests
Evaluated by:
  • tst_qquickitemlayer
  • tst_qquickpainteditem
  • tst_scenegraph
FALSEevaluated 19199 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
10-19199
594 if (d->mipmapMode == Nearest)
d->mipmapMode == NearestDescription
TRUEnever evaluated
FALSEevaluated 10 times by 3 tests
Evaluated by:
  • tst_qquickitemlayer
  • tst_qquickpainteditem
  • tst_scenegraph
0-10
595 minFilter = linear ? GL_LINEAR_MIPMAP_NEAREST : GL_NEAREST_MIPMAP_NEAREST;
never executed: minFilter = linear ? 0x2701 : 0x2700 ;
linearDescription
TRUEnever evaluated
FALSEnever evaluated
0
596 else if (d->mipmapMode == Linear)
d->mipmapMode == LinearDescription
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_qquickitemlayer
  • tst_qquickpainteditem
  • tst_scenegraph
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickitemlayer
2-8
597 minFilter = linear ? GL_LINEAR_MIPMAP_LINEAR : GL_NEAREST_MIPMAP_LINEAR;
executed 8 times by 3 tests: minFilter = linear ? 0x2703 : 0x2702 ;
Executed by:
  • tst_qquickitemlayer
  • tst_qquickpainteditem
  • tst_scenegraph
linearDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickitemlayer
  • tst_qquickpainteditem
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_scenegraph
4-8
598 }
executed 10 times by 3 tests: end of block
Executed by:
  • tst_qquickitemlayer
  • tst_qquickpainteditem
  • tst_scenegraph
10
599 funcs->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, minFilter);-
600 funcs->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, magFilter);-
601 d->filteringChanged = false;-
602 }
executed 19209 times by 34 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
19209
603-
604 if (force || d->anisotropyChanged) {
forceDescription
TRUEevaluated 19198 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
FALSEevaluated 7590 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • ...
d->anisotropyChangedDescription
TRUEnever evaluated
FALSEevaluated 7590 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • ...
0-19198
605 d->anisotropyChanged = false;-
606 if (QOpenGLContext::currentContext()->hasExtension(QByteArrayLiteral("GL_EXT_texture_filter_anisotropic")))
executed 19198 times by 34 tests: return ba;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
QOpenGLContext...turn ba; }()))Description
TRUEnever evaluated
FALSEevaluated 19198 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
0-19198
607 funcs->glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, float(1 << (d->anisotropyLevel)));
never executed: funcs->glTexParameterf( 0x0DE1 , 0x84FE, float(1 << (d->anisotropyLevel)));
0
608 }
executed 19198 times by 34 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
19198
609-
610 if (force || d->wrapChanged) {
forceDescription
TRUEevaluated 19198 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
FALSEevaluated 7590 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • ...
d->wrapChangedDescription
TRUEnever evaluated
FALSEevaluated 7590 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • ...
0-19198
611#ifndef QT_NO_DEBUG-
612 if (d->horizontalWrap == Repeat || d->verticalWrap == Repeat
d->horizontalWrap == RepeatDescription
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
FALSEevaluated 19187 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
d->verticalWrap == RepeatDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickimage
FALSEevaluated 19183 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
4-19187
613 || d->horizontalWrap == MirroredRepeat || d->verticalWrap == MirroredRepeat)
d->horizontalW...MirroredRepeatDescription
TRUEnever evaluated
FALSEevaluated 19183 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
d->verticalWra...MirroredRepeatDescription
TRUEnever evaluated
FALSEevaluated 19183 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
0-19183
614 {-
615 bool npotSupported = QOpenGLFunctions(QOpenGLContext::currentContext()).hasOpenGLFeature(QOpenGLFunctions::NPOTTextures);-
616 QSize size = textureSize();-
617 bool isNpot = !isPowerOfTwo(size.width()) || !isPowerOfTwo(size.height());
!isPowerOfTwo(size.width())Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
FALSEnever evaluated
!isPowerOfTwo(size.height())Description
TRUEnever evaluated
FALSEnever evaluated
0-15
618 if (!npotSupported && isNpot)
!npotSupportedDescription
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
isNpotDescription
TRUEnever evaluated
FALSEnever evaluated
0-15
619 qWarning("Scene Graph: This system does not support the REPEAT wrap mode for non-power-of-two textures.");
never executed: QMessageLogger(__FILE__, 619, __PRETTY_FUNCTION__).warning("Scene Graph: This system does not support the REPEAT wrap mode for non-power-of-two textures.");
0
620 }
executed 15 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimage
15
621#endif-
622 GLenum wrapS = GL_CLAMP_TO_EDGE;-
623 if (d->horizontalWrap == Repeat)
d->horizontalWrap == RepeatDescription
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
FALSEevaluated 19187 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
11-19187
624 wrapS = GL_REPEAT;
executed 11 times by 2 tests: wrapS = 0x2901 ;
Executed by:
  • tst_examples
  • tst_qquickimage
11
625 else if (d->horizontalWrap == MirroredRepeat)
d->horizontalW...MirroredRepeatDescription
TRUEnever evaluated
FALSEevaluated 19187 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
0-19187
626 wrapS = GL_MIRRORED_REPEAT;
never executed: wrapS = 0x8370;
0
627 GLenum wrapT = GL_CLAMP_TO_EDGE;-
628 if (d->verticalWrap == Repeat)
d->verticalWrap == RepeatDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
FALSEevaluated 19189 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
9-19189
629 wrapT = GL_REPEAT;
executed 9 times by 2 tests: wrapT = 0x2901 ;
Executed by:
  • tst_examples
  • tst_qquickimage
9
630 else if (d->verticalWrap == MirroredRepeat)
d->verticalWra...MirroredRepeatDescription
TRUEnever evaluated
FALSEevaluated 19189 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
0-19189
631 wrapT = GL_MIRRORED_REPEAT;
never executed: wrapT = 0x8370;
0
632 funcs->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, wrapS);-
633 funcs->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, wrapT);-
634 d->wrapChanged = false;-
635 }
executed 19198 times by 34 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
19198
636#else-
637 Q_UNUSED(force)-
638#endif-
639}
executed 26788 times by 34 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
26788
640-
641QSGPlainTexture::QSGPlainTexture()-
642 : QSGTexture()-
643 , m_texture_id(0)-
644 , m_has_alpha(false)-
645 , m_dirty_texture(false)-
646 , m_dirty_bind_options(false)-
647 , m_owns_texture(true)-
648 , m_mipmaps_generated(false)-
649 , m_retain_image(false)-
650{-
651}
executed 396 times by 31 tests: end of block
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • ...
396
652-
653-
654QSGPlainTexture::~QSGPlainTexture()-
655{-
656#if QT_CONFIG(opengl)-
657 if (m_texture_id && m_owns_texture && QOpenGLContext::currentContext())
m_texture_idDescription
TRUEevaluated 353 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • ...
FALSEevaluated 26 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_nodestest
m_owns_textureDescription
TRUEevaluated 261 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • ...
FALSEevaluated 92 times by 2 tests
Evaluated by:
  • tst_qquickframebufferobject
  • tst_scenegraph
QOpenGLContext...rrentContext()Description
TRUEevaluated 261 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • ...
FALSEnever evaluated
0-353
658 QOpenGLContext::currentContext()->functions()->glDeleteTextures(1, &m_texture_id);
executed 261 times by 29 tests: QOpenGLContext::currentContext()->functions()->glDeleteTextures(1, &m_texture_id);
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • ...
261
659#endif-
660}
executed 379 times by 31 tests: end of block
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • ...
379
661-
662void qsg_swizzleBGRAToRGBA(QImage *image)-
663{-
664 const int width = image->width();-
665 const int height = image->height();-
666 for (int i = 0; i < height; ++i) {
i < heightDescription
TRUEnever evaluated
FALSEnever evaluated
0
667 uint *p = (uint *) image->scanLine(i);-
668 for (int x = 0; x < width; ++x)
x < widthDescription
TRUEnever evaluated
FALSEnever evaluated
0
669 p[x] = ((p[x] << 16) & 0xff0000) | ((p[x] >> 16) & 0xff) | (p[x] & 0xff00ff00);
never executed: p[x] = ((p[x] << 16) & 0xff0000) | ((p[x] >> 16) & 0xff) | (p[x] & 0xff00ff00);
0
670 }
never executed: end of block
0
671}
never executed: end of block
0
672-
673void QSGPlainTexture::setImage(const QImage &image)-
674{-
675 m_image = image;-
676 m_texture_size = image.size();-
677 m_has_alpha = image.hasAlphaChannel();-
678 m_dirty_texture = true;-
679 m_dirty_bind_options = true;-
680 m_mipmaps_generated = false;-
681 }
executed 355 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
355
682-
683int QSGPlainTexture::textureId() const-
684{-
685 if (m_dirty_texture) {
m_dirty_textureDescription
TRUEevaluated 418 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_scenegraph
FALSEevaluated 518 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_scenegraph
418-518
686 if (m_image.isNull()) {
m_image.isNull()Description
TRUEnever evaluated
FALSEevaluated 418 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_scenegraph
0-418
687 // The actual texture and id will be updated/deleted in a later bind()-
688 // or ~QSGPlainTexture so just keep it minimal here.-
689 return 0;
never executed: return 0;
0
690 } else if (m_texture_id == 0){
m_texture_id == 0Description
TRUEevaluated 56 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_scenegraph
FALSEevaluated 362 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_scenegraph
56-362
691#if QT_CONFIG(opengl)-
692 // Generate a texture id for use later and return it.-
693 QOpenGLContext::currentContext()->functions()->glGenTextures(1, &const_cast<QSGPlainTexture *>(this)->m_texture_id);-
694#endif-
695 return m_texture_id;
executed 56 times by 3 tests: return m_texture_id;
Executed by:
  • tst_examples
  • tst_qquickimage
  • tst_scenegraph
56
696 }-
697 }
executed 362 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimage
  • tst_scenegraph
362
698 return m_texture_id;
executed 880 times by 3 tests: return m_texture_id;
Executed by:
  • tst_examples
  • tst_qquickimage
  • tst_scenegraph
880
699}-
700-
701void QSGPlainTexture::setTextureId(int id)-
702{-
703#if QT_CONFIG(opengl)-
704 if (m_texture_id && m_owns_texture)
m_texture_idDescription
TRUEnever evaluated
FALSEevaluated 109 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickframebufferobject
  • tst_scenegraph
m_owns_textureDescription
TRUEnever evaluated
FALSEnever evaluated
0-109
705 QOpenGLContext::currentContext()->functions()->glDeleteTextures(1, &m_texture_id);
never executed: QOpenGLContext::currentContext()->functions()->glDeleteTextures(1, &m_texture_id);
0
706#endif-
707-
708 m_texture_id = id;-
709 m_dirty_texture = false;-
710 m_dirty_bind_options = true;-
711 m_image = QImage();-
712 m_mipmaps_generated = false;-
713}
executed 109 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickframebufferobject
  • tst_scenegraph
109
714-
715void QSGPlainTexture::bind()-
716{-
717#if QT_CONFIG(opengl)-
718 QOpenGLContext *context = QOpenGLContext::currentContext();-
719 QOpenGLFunctions *funcs = context->functions();-
720 if (!m_dirty_texture) {
!m_dirty_textureDescription
TRUEevaluated 7202 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • ...
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
287-7202
721 funcs->glBindTexture(GL_TEXTURE_2D, m_texture_id);-
722 if (mipmapFiltering() != QSGTexture::None && !m_mipmaps_generated) {
mipmapFilterin...GTexture::NoneDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_scenegraph
FALSEevaluated 7190 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • ...
!m_mipmaps_generatedDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_scenegraph
0-7190
723 funcs->glGenerateMipmap(GL_TEXTURE_2D);-
724 m_mipmaps_generated = true;-
725 }
never executed: end of block
0
726 updateBindOptions(m_dirty_bind_options);-
727 m_dirty_bind_options = false;-
728 return;
executed 7202 times by 29 tests: return;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • ...
7202
729 }-
730-
731 m_dirty_texture = false;-
732-
733 bool profileFrames = QSG_LOG_TIME_TEXTURE().isDebugEnabled();-
734 if (profileFrames)
profileFramesDescription
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
735 qsg_renderer_timer.start();
never executed: qsg_renderer_timer.start();
0
736 Q_QUICK_SG_PROFILE_START_SYNCHRONIZED(QQuickProfiler::SceneGraphTexturePrepare,
never executed: end of block
executed 287 times by 28 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
QQuickProfiler...ileSceneGraph)Description
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
737 QQuickProfiler::SceneGraphTextureDeletion);
executed 287 times by 28 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
287
738-
739-
740 if (m_image.isNull()) {
m_image.isNull()Description
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
741 if (m_texture_id && m_owns_texture) {
m_texture_idDescription
TRUEnever evaluated
FALSEnever evaluated
m_owns_textureDescription
TRUEnever evaluated
FALSEnever evaluated
0
742 funcs->glDeleteTextures(1, &m_texture_id);-
743 qCDebug(QSG_LOG_TIME_TEXTURE, "plain texture deleted in %dms - %dx%d",
never executed: QMessageLogger( __FILE__ , 746 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture deleted in %dms - %dx%d", (int) qsg_renderer_timer.elapsed(), m_texture_size.width(), m_texture_size.height()) ;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
744 (int) qsg_renderer_timer.elapsed(),
never executed: QMessageLogger( __FILE__ , 746 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture deleted in %dms - %dx%d", (int) qsg_renderer_timer.elapsed(), m_texture_size.width(), m_texture_size.height()) ;
0
745 m_texture_size.width(),
never executed: QMessageLogger( __FILE__ , 746 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture deleted in %dms - %dx%d", (int) qsg_renderer_timer.elapsed(), m_texture_size.width(), m_texture_size.height()) ;
0
746 m_texture_size.height());
never executed: QMessageLogger( __FILE__ , 746 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture deleted in %dms - %dx%d", (int) qsg_renderer_timer.elapsed(), m_texture_size.width(), m_texture_size.height()) ;
0
747 Q_QUICK_SG_PROFILE_END(QQuickProfiler::SceneGraphTextureDeletion,
never executed: end of block
never executed: (void)0 ;
QQuickProfiler...ileSceneGraph)Description
TRUEnever evaluated
FALSEnever evaluated
0
748 QQuickProfiler::SceneGraphTextureDeletionDelete);
never executed: (void)0 ;
0
749 }-
750 m_texture_id = 0;-
751 m_texture_size = QSize();-
752 m_has_alpha = false;-
753-
754 return;
never executed: return;
0
755 }-
756-
757 if (m_texture_id == 0)
m_texture_id == 0Description
TRUEevaluated 203 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
FALSEevaluated 84 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_qquickpainteditem
  • tst_scenegraph
84-203
758 funcs->glGenTextures(1, &m_texture_id);
executed 203 times by 27 tests: funcs->glGenTextures(1, &m_texture_id);
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
203
759 funcs->glBindTexture(GL_TEXTURE_2D, m_texture_id);-
760-
761 qint64 bindTime = 0;-
762 if (profileFrames)
profileFramesDescription
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
763 bindTime = qsg_renderer_timer.nsecsElapsed();
never executed: bindTime = qsg_renderer_timer.nsecsElapsed();
0
764 Q_QUICK_SG_PROFILE_RECORD(QQuickProfiler::SceneGraphTexturePrepare,
never executed: end of block
executed 287 times by 28 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
QQuickProfiler...ileSceneGraph)Description
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
765 QQuickProfiler::SceneGraphTexturePrepareBind);
executed 287 times by 28 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
287
766-
767 // ### TODO: check for out-of-memory situations...-
768-
769 QImage tmp = (m_image.format() == QImage::Format_RGB32 || m_image.format() == QImage::Format_ARGB32_Premultiplied)
m_image.format...::Format_RGB32Description
TRUEevaluated 60 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_scenegraph
FALSEevaluated 227 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
m_image.format..._PremultipliedDescription
TRUEevaluated 227 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
FALSEnever evaluated
0-227
770 ? m_image-
771 : m_image.convertToFormat(QImage::Format_ARGB32_Premultiplied);-
772-
773 // Downscale the texture to fit inside the max texture limit if it is too big.-
774 // It would be better if the image was already downscaled to the right size,-
775 // but this information is not always available at that time, so as a last-
776 // resort we can do it here. Texture coordinates are normalized, so it-
777 // won't cause any problems and actual texture sizes will be written-
778 // based on QSGTexture::textureSize which is updated after this, so that-
779 // should be ok.-
780 int max;-
781 if (auto rc = QSGDefaultRenderContext::from(context))
auto rc = QSGD...:from(context)Description
TRUEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
FALSEnever evaluated
0-287
782 max = rc->maxTextureSize();
executed 287 times by 28 tests: max = rc->maxTextureSize();
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
287
783 else-
784 funcs->glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max);
never executed: funcs->glGetIntegerv( 0x0D33 , &max);
0
785 if (tmp.width() > max || tmp.height() > max) {
tmp.width() > maxDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimage
FALSEevaluated 285 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
tmp.height() > maxDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimage
FALSEevaluated 283 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
2-285
786 tmp = tmp.scaled(qMin(max, tmp.width()), qMin(max, tmp.height()), Qt::IgnoreAspectRatio, Qt::SmoothTransformation);-
787 m_texture_size = tmp.size();-
788 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickimage
4
789-
790 // Scale to a power of two size if mipmapping is requested and the-
791 // texture is npot and npot textures are not properly supported.-
792 if (mipmapFiltering() != QSGTexture::None
mipmapFilterin...GTexture::NoneDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickpainteditem
  • tst_scenegraph
FALSEevaluated 281 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
6-281
793 && (!isPowerOfTwo(m_texture_size.width()) || !isPowerOfTwo(m_texture_size.height()))
!isPowerOfTwo(..._size.width())Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickpainteditem
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_scenegraph
!isPowerOfTwo(...size.height())Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_scenegraph
0-4
794 && !funcs->hasOpenGLFeature(QOpenGLFunctions::NPOTTextures)) {
!funcs->hasOpe...:NPOTTextures)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickpainteditem
0-2
795 tmp = tmp.scaled(qNextPowerOfTwo(m_texture_size.width()), qNextPowerOfTwo(m_texture_size.height()),-
796 Qt::IgnoreAspectRatio, Qt::SmoothTransformation);-
797 m_texture_size = tmp.size();-
798 }
never executed: end of block
0
799-
800 if (tmp.width() * 4 != tmp.bytesPerLine())
tmp.width() * ...bytesPerLine()Description
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
801 tmp = tmp.copy();
never executed: tmp = tmp.copy();
0
802-
803 qint64 convertTime = 0;-
804 if (profileFrames)
profileFramesDescription
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
805 convertTime = qsg_renderer_timer.nsecsElapsed();
never executed: convertTime = qsg_renderer_timer.nsecsElapsed();
0
806 Q_QUICK_SG_PROFILE_RECORD(QQuickProfiler::SceneGraphTexturePrepare,
never executed: end of block
executed 287 times by 28 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
QQuickProfiler...ileSceneGraph)Description
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
807 QQuickProfiler::SceneGraphTexturePrepareConvert);
executed 287 times by 28 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
287
808-
809 updateBindOptions(m_dirty_bind_options);-
810-
811 GLenum externalFormat = GL_RGBA;-
812 GLenum internalFormat = GL_RGBA;-
813-
814#if defined(Q_OS_ANDROID) && !defined(Q_OS_ANDROID_EMBEDDED)-
815 QString *deviceName =-
816 static_cast<QString *>(QGuiApplication::platformNativeInterface()->nativeResourceForIntegration("AndroidDeviceName"));-
817 static bool wrongfullyReportsBgra8888Support = deviceName != 0-
818 && (deviceName->compare(QLatin1String("samsung SM-T211"), Qt::CaseInsensitive) == 0-
819 || deviceName->compare(QLatin1String("samsung SM-T210"), Qt::CaseInsensitive) == 0-
820 || deviceName->compare(QLatin1String("samsung SM-T215"), Qt::CaseInsensitive) == 0);-
821#else-
822 static bool wrongfullyReportsBgra8888Support = false;-
823#endif-
824-
825 if (context->hasExtension(QByteArrayLiteral("GL_EXT_bgra"))) {
executed 287 times by 28 tests: return ba;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
context->hasEx...turn ba; }()))Description
TRUEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
FALSEnever evaluated
0-287
826 externalFormat = GL_BGRA;-
827#ifdef QT_OPENGL_ES-
828 internalFormat = GL_BGRA;-
829#else-
830 if (context->isOpenGLES())
context->isOpenGLES()Description
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
831 internalFormat = GL_BGRA;
never executed: internalFormat = 0x80E1 ;
0
832#endif // QT_OPENGL_ES-
833 } else if (!wrongfullyReportsBgra8888Support
executed 287 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
!wrongfullyRep...gra8888SupportDescription
TRUEnever evaluated
FALSEnever evaluated
0-287
834 && (context->hasExtension(QByteArrayLiteral("GL_EXT_texture_format_BGRA8888"))
never executed: return ba;
context->hasEx...turn ba; }()))Description
TRUEnever evaluated
FALSEnever evaluated
0
835 || context->hasExtension(QByteArrayLiteral("GL_IMG_texture_format_BGRA8888")))) {
never executed: return ba;
context->hasEx...turn ba; }()))Description
TRUEnever evaluated
FALSEnever evaluated
0
836 externalFormat = GL_BGRA;-
837 internalFormat = GL_BGRA;-
838#if defined(Q_OS_DARWIN) && !defined(Q_OS_OSX)-
839 } else if (context->hasExtension(QByteArrayLiteral("GL_APPLE_texture_format_BGRA8888"))) {-
840 externalFormat = GL_BGRA;-
841 internalFormat = GL_RGBA;-
842#endif-
843 } else {
never executed: end of block
0
844 qsg_swizzleBGRAToRGBA(&tmp);-
845 }
never executed: end of block
0
846-
847 qint64 swizzleTime = 0;-
848 if (profileFrames)
profileFramesDescription
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
849 swizzleTime = qsg_renderer_timer.nsecsElapsed();
never executed: swizzleTime = qsg_renderer_timer.nsecsElapsed();
0
850 Q_QUICK_SG_PROFILE_RECORD(QQuickProfiler::SceneGraphTexturePrepare,
never executed: end of block
executed 287 times by 28 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
QQuickProfiler...ileSceneGraph)Description
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
851 QQuickProfiler::SceneGraphTexturePrepareSwizzle);
executed 287 times by 28 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
287
852-
853 funcs->glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, m_texture_size.width(), m_texture_size.height(), 0, externalFormat, GL_UNSIGNED_BYTE, tmp.constBits());-
854-
855 qint64 uploadTime = 0;-
856 if (profileFrames)
profileFramesDescription
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
857 uploadTime = qsg_renderer_timer.nsecsElapsed();
never executed: uploadTime = qsg_renderer_timer.nsecsElapsed();
0
858 Q_QUICK_SG_PROFILE_RECORD(QQuickProfiler::SceneGraphTexturePrepare,
never executed: end of block
executed 287 times by 28 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
QQuickProfiler...ileSceneGraph)Description
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
859 QQuickProfiler::SceneGraphTexturePrepareUpload);
executed 287 times by 28 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
287
860-
861 if (mipmapFiltering() != QSGTexture::None) {
mipmapFilterin...GTexture::NoneDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickpainteditem
  • tst_scenegraph
FALSEevaluated 281 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
6-281
862 funcs->glGenerateMipmap(GL_TEXTURE_2D);-
863 m_mipmaps_generated = true;-
864 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qquickpainteditem
  • tst_scenegraph
6
865-
866 qint64 mipmapTime = 0;-
867 if (profileFrames) {
profileFramesDescription
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
868 mipmapTime = qsg_renderer_timer.nsecsElapsed();-
869 qCDebug(QSG_LOG_TIME_TEXTURE,
never executed: QMessageLogger( __FILE__ , 880 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture uploaded in: %dms (%dx%d), bind=%d, convert=%d, swizzle=%d (%s->%s), upload=%d, mipmap=%d%s", int(mipmapTime / 1000000), m_texture_size.width...00), (externalFormat == 0x80E1 ? "BGRA" : "RGBA"), (internalFormat == 0x80E1 ? "BGRA" : "RGBA"), int((uploadTime - swizzleTime)/1000000), int((mipmapTime - uploadTime)/1000000), m_texture_size != m_image.size() ? " (scaled to GL_MAX_TEXTURE_SIZE)" : "") ;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
870 "plain texture uploaded in: %dms (%dx%d), bind=%d, convert=%d, swizzle=%d (%s->%s), upload=%d, mipmap=%d%s",
never executed: QMessageLogger( __FILE__ , 880 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture uploaded in: %dms (%dx%d), bind=%d, convert=%d, swizzle=%d (%s->%s), upload=%d, mipmap=%d%s", int(mipmapTime / 1000000), m_texture_size.width...00), (externalFormat == 0x80E1 ? "BGRA" : "RGBA"), (internalFormat == 0x80E1 ? "BGRA" : "RGBA"), int((uploadTime - swizzleTime)/1000000), int((mipmapTime - uploadTime)/1000000), m_texture_size != m_image.size() ? " (scaled to GL_MAX_TEXTURE_SIZE)" : "") ;
0
871 int(mipmapTime / 1000000),
never executed: QMessageLogger( __FILE__ , 880 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture uploaded in: %dms (%dx%d), bind=%d, convert=%d, swizzle=%d (%s->%s), upload=%d, mipmap=%d%s", int(mipmapTime / 1000000), m_texture_size.width...00), (externalFormat == 0x80E1 ? "BGRA" : "RGBA"), (internalFormat == 0x80E1 ? "BGRA" : "RGBA"), int((uploadTime - swizzleTime)/1000000), int((mipmapTime - uploadTime)/1000000), m_texture_size != m_image.size() ? " (scaled to GL_MAX_TEXTURE_SIZE)" : "") ;
0
872 m_texture_size.width(), m_texture_size.height(),
never executed: QMessageLogger( __FILE__ , 880 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture uploaded in: %dms (%dx%d), bind=%d, convert=%d, swizzle=%d (%s->%s), upload=%d, mipmap=%d%s", int(mipmapTime / 1000000), m_texture_size.width...00), (externalFormat == 0x80E1 ? "BGRA" : "RGBA"), (internalFormat == 0x80E1 ? "BGRA" : "RGBA"), int((uploadTime - swizzleTime)/1000000), int((mipmapTime - uploadTime)/1000000), m_texture_size != m_image.size() ? " (scaled to GL_MAX_TEXTURE_SIZE)" : "") ;
0
873 int(bindTime / 1000000),
never executed: QMessageLogger( __FILE__ , 880 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture uploaded in: %dms (%dx%d), bind=%d, convert=%d, swizzle=%d (%s->%s), upload=%d, mipmap=%d%s", int(mipmapTime / 1000000), m_texture_size.width...00), (externalFormat == 0x80E1 ? "BGRA" : "RGBA"), (internalFormat == 0x80E1 ? "BGRA" : "RGBA"), int((uploadTime - swizzleTime)/1000000), int((mipmapTime - uploadTime)/1000000), m_texture_size != m_image.size() ? " (scaled to GL_MAX_TEXTURE_SIZE)" : "") ;
0
874 int((convertTime - bindTime)/1000000),
never executed: QMessageLogger( __FILE__ , 880 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture uploaded in: %dms (%dx%d), bind=%d, convert=%d, swizzle=%d (%s->%s), upload=%d, mipmap=%d%s", int(mipmapTime / 1000000), m_texture_size.width...00), (externalFormat == 0x80E1 ? "BGRA" : "RGBA"), (internalFormat == 0x80E1 ? "BGRA" : "RGBA"), int((uploadTime - swizzleTime)/1000000), int((mipmapTime - uploadTime)/1000000), m_texture_size != m_image.size() ? " (scaled to GL_MAX_TEXTURE_SIZE)" : "") ;
0
875 int((swizzleTime - convertTime)/1000000),
never executed: QMessageLogger( __FILE__ , 880 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture uploaded in: %dms (%dx%d), bind=%d, convert=%d, swizzle=%d (%s->%s), upload=%d, mipmap=%d%s", int(mipmapTime / 1000000), m_texture_size.width...00), (externalFormat == 0x80E1 ? "BGRA" : "RGBA"), (internalFormat == 0x80E1 ? "BGRA" : "RGBA"), int((uploadTime - swizzleTime)/1000000), int((mipmapTime - uploadTime)/1000000), m_texture_size != m_image.size() ? " (scaled to GL_MAX_TEXTURE_SIZE)" : "") ;
0
876 (externalFormat == GL_BGRA ? "BGRA" : "RGBA"),
never executed: QMessageLogger( __FILE__ , 880 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture uploaded in: %dms (%dx%d), bind=%d, convert=%d, swizzle=%d (%s->%s), upload=%d, mipmap=%d%s", int(mipmapTime / 1000000), m_texture_size.width...00), (externalFormat == 0x80E1 ? "BGRA" : "RGBA"), (internalFormat == 0x80E1 ? "BGRA" : "RGBA"), int((uploadTime - swizzleTime)/1000000), int((mipmapTime - uploadTime)/1000000), m_texture_size != m_image.size() ? " (scaled to GL_MAX_TEXTURE_SIZE)" : "") ;
0
877 (internalFormat == GL_BGRA ? "BGRA" : "RGBA"),
never executed: QMessageLogger( __FILE__ , 880 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture uploaded in: %dms (%dx%d), bind=%d, convert=%d, swizzle=%d (%s->%s), upload=%d, mipmap=%d%s", int(mipmapTime / 1000000), m_texture_size.width...00), (externalFormat == 0x80E1 ? "BGRA" : "RGBA"), (internalFormat == 0x80E1 ? "BGRA" : "RGBA"), int((uploadTime - swizzleTime)/1000000), int((mipmapTime - uploadTime)/1000000), m_texture_size != m_image.size() ? " (scaled to GL_MAX_TEXTURE_SIZE)" : "") ;
0
878 int((uploadTime - swizzleTime)/1000000),
never executed: QMessageLogger( __FILE__ , 880 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture uploaded in: %dms (%dx%d), bind=%d, convert=%d, swizzle=%d (%s->%s), upload=%d, mipmap=%d%s", int(mipmapTime / 1000000), m_texture_size.width...00), (externalFormat == 0x80E1 ? "BGRA" : "RGBA"), (internalFormat == 0x80E1 ? "BGRA" : "RGBA"), int((uploadTime - swizzleTime)/1000000), int((mipmapTime - uploadTime)/1000000), m_texture_size != m_image.size() ? " (scaled to GL_MAX_TEXTURE_SIZE)" : "") ;
0
879 int((mipmapTime - uploadTime)/1000000),
never executed: QMessageLogger( __FILE__ , 880 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture uploaded in: %dms (%dx%d), bind=%d, convert=%d, swizzle=%d (%s->%s), upload=%d, mipmap=%d%s", int(mipmapTime / 1000000), m_texture_size.width...00), (externalFormat == 0x80E1 ? "BGRA" : "RGBA"), (internalFormat == 0x80E1 ? "BGRA" : "RGBA"), int((uploadTime - swizzleTime)/1000000), int((mipmapTime - uploadTime)/1000000), m_texture_size != m_image.size() ? " (scaled to GL_MAX_TEXTURE_SIZE)" : "") ;
0
880 m_texture_size != m_image.size() ? " (scaled to GL_MAX_TEXTURE_SIZE)" : "");
never executed: QMessageLogger( __FILE__ , 880 , __PRETTY_FUNCTION__, QSG_LOG_TIME_TEXTURE().categoryName()).debug("plain texture uploaded in: %dms (%dx%d), bind=%d, convert=%d, swizzle=%d (%s->%s), upload=%d, mipmap=%d%s", int(mipmapTime / 1000000), m_texture_size.width...00), (externalFormat == 0x80E1 ? "BGRA" : "RGBA"), (internalFormat == 0x80E1 ? "BGRA" : "RGBA"), int((uploadTime - swizzleTime)/1000000), int((mipmapTime - uploadTime)/1000000), m_texture_size != m_image.size() ? " (scaled to GL_MAX_TEXTURE_SIZE)" : "") ;
0
881 }
never executed: end of block
0
882 Q_QUICK_SG_PROFILE_END(QQuickProfiler::SceneGraphTexturePrepare,
never executed: end of block
executed 287 times by 28 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
QQuickProfiler...ileSceneGraph)Description
TRUEnever evaluated
FALSEevaluated 287 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
0-287
883 QQuickProfiler::SceneGraphTexturePrepareMipmap);
executed 287 times by 28 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
287
884-
885 m_texture_rect = QRectF(0, 0, 1, 1);-
886-
887 m_dirty_bind_options = false;-
888 if (!m_retain_image)
!m_retain_imageDescription
TRUEevaluated 237 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • ...
FALSEevaluated 50 times by 1 test
Evaluated by:
  • tst_qquickpainteditem
50-237
889 m_image = QImage();
executed 237 times by 27 tests: m_image = QImage();
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • ...
237
890#endif-
891}
executed 287 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • ...
287
892-
893-
894/*!-
895 \class QSGDynamicTexture-
896 \brief The QSGDynamicTexture class serves as a baseclass for dynamically changing textures,-
897 such as content that is rendered to FBO's.-
898 \inmodule QtQuick-
899-
900 To update the content of the texture, call updateTexture() explicitly. Simply calling bind()-
901 will not update the texture.-
902-
903 \note All classes with QSG prefix should be used solely on the scene graph's-
904 rendering thread. See \l {Scene Graph and Rendering} for more information.-
905 */-
906-
907-
908/*!-
909 \fn bool QSGDynamicTexture::updateTexture()-
910-
911 Call this function to explicitly update the dynamic texture. Calling bind() will bind-
912 the content that was previously updated.-
913-
914 The function returns true if the texture was changed as a resul of the update; otherwise-
915 returns false.-
916 */-
917-
918-
919-
920QT_END_NAMESPACE-
921-
922#include "moc_qsgtexture.cpp"-
923#include "moc_qsgtexture_p.cpp"-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0