| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/adaptations/software/qsgsoftwarepixmaptexture.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | QSGSoftwarePixmapTexture::QSGSoftwarePixmapTexture(const QImage &image, uint flags) | - | ||||||
| 5 | { | - | ||||||
| 6 | - | |||||||
| 7 | - | |||||||
| 8 | if (flags & QSGRenderContext::CreateTexture_Alpha
| 0 | ||||||
| 9 | - | |||||||
| 10 | m_pixmap = QPixmap::fromImage(image, Qt::NoFormatConversion); | - | ||||||
| 11 | } never executed: else {end of block | 0 | ||||||
| 12 | - | |||||||
| 13 | m_pixmap = QPixmap::fromImage(image.convertToFormat(QImage::Format_RGB32), Qt::NoFormatConversion); | - | ||||||
| 14 | } never executed: end of block | 0 | ||||||
| 15 | } | - | ||||||
| 16 | - | |||||||
| 17 | QSGSoftwarePixmapTexture::QSGSoftwarePixmapTexture(const QPixmap &pixmap) | - | ||||||
| 18 | : m_pixmap(pixmap) | - | ||||||
| 19 | { | - | ||||||
| 20 | } never executed: end of block | 0 | ||||||
| 21 | - | |||||||
| 22 | - | |||||||
| 23 | int QSGSoftwarePixmapTexture::textureId() const | - | ||||||
| 24 | { | - | ||||||
| 25 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 26 | } | - | ||||||
| 27 | - | |||||||
| 28 | QSize QSGSoftwarePixmapTexture::textureSize() const | - | ||||||
| 29 | { | - | ||||||
| 30 | return never executed: m_pixmap.size();return m_pixmap.size();never executed: return m_pixmap.size(); | 0 | ||||||
| 31 | } | - | ||||||
| 32 | - | |||||||
| 33 | bool QSGSoftwarePixmapTexture::hasAlphaChannel() const | - | ||||||
| 34 | { | - | ||||||
| 35 | return never executed: m_pixmap.hasAlphaChannel();return m_pixmap.hasAlphaChannel();never executed: return m_pixmap.hasAlphaChannel(); | 0 | ||||||
| 36 | } | - | ||||||
| 37 | - | |||||||
| 38 | bool QSGSoftwarePixmapTexture::hasMipmaps() const | - | ||||||
| 39 | { | - | ||||||
| 40 | return never executed: false;return false;never executed: return false; | 0 | ||||||
| 41 | } | - | ||||||
| 42 | - | |||||||
| 43 | void 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 code | Preprocessed file |