OpenCoverage

qsgsoftwarepixmaptexture.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/adaptations/software/qsgsoftwarepixmaptexture.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QSGSoftwarePixmapTexture::QSGSoftwarePixmapTexture(const QImage &image, uint flags)-
5{-
6-
7-
8 if (flags & QSGRenderContext::CreateTexture_Alpha
flags & QSGRen...eTexture_AlphaDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
9-
10 m_pixmap = QPixmap::fromImage(image, Qt::NoFormatConversion);-
11 }
never executed: end of block
else {
0
12-
13 m_pixmap = QPixmap::fromImage(image.convertToFormat(QImage::Format_RGB32), Qt::NoFormatConversion);-
14 }
never executed: end of block
0
15}-
16-
17QSGSoftwarePixmapTexture::QSGSoftwarePixmapTexture(const QPixmap &pixmap)-
18 : m_pixmap(pixmap)-
19{-
20}
never executed: end of block
0
21-
22-
23int QSGSoftwarePixmapTexture::textureId() const-
24{-
25 return
never executed: return 0;
0;
never executed: return 0;
0
26}-
27-
28QSize QSGSoftwarePixmapTexture::textureSize() const-
29{-
30 return
never executed: return m_pixmap.size();
m_pixmap.size();
never executed: return m_pixmap.size();
0
31}-
32-
33bool QSGSoftwarePixmapTexture::hasAlphaChannel() const-
34{-
35 return
never executed: return m_pixmap.hasAlphaChannel();
m_pixmap.hasAlphaChannel();
never executed: return m_pixmap.hasAlphaChannel();
0
36}-
37-
38bool QSGSoftwarePixmapTexture::hasMipmaps() const-
39{-
40 return
never executed: return false;
false;
never executed: return false;
0
41}-
42-
43void QSGSoftwarePixmapTexture::bind()-
44{-
45 do { ((false) ? static_cast<void>(0) : qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached", __FILE__, 85)); __builtin_unreachable(); } while (false);-
46}
never executed: end of block
0
47-
48-
49-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0