diff options
Diffstat (limited to 'src/quick/scenegraph/util/qsgdefaultpainternode_p.h')
-rw-r--r-- | src/quick/scenegraph/util/qsgdefaultpainternode_p.h | 40 |
1 files changed, 29 insertions, 11 deletions
diff --git a/src/quick/scenegraph/util/qsgdefaultpainternode_p.h b/src/quick/scenegraph/util/qsgdefaultpainternode_p.h index 62daa54432..6b6f485915 100644 --- a/src/quick/scenegraph/util/qsgdefaultpainternode_p.h +++ b/src/quick/scenegraph/util/qsgdefaultpainternode_p.h @@ -34,6 +34,17 @@ #ifndef QSGDEFAULTPAINTERNODE_P_H #define QSGDEFAULTPAINTERNODE_P_H +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + #include <private/qsgadaptationlayer_p.h> #include "qsgtexturematerial.h" #include "qsgtexture_p.h" @@ -94,6 +105,9 @@ public: void setFastFBOResizing(bool dynamic); bool fastFBOResizing() const { return m_fastFBOResizing; } + void setTextureSize(const QSize &textureSize); + QSize textureSize() const { return m_textureSize; } + QImage toImage() const; void update(); @@ -126,21 +140,25 @@ private: QSize m_size; QSize m_fboSize; - bool m_dirtyContents; + QSize m_textureSize; QRect m_dirtyRect; - bool m_opaquePainting; - bool m_linear_filtering; - bool m_mipmapping; - bool m_smoothPainting; - bool m_extensionsChecked; - bool m_multisamplingSupported; - bool m_fastFBOResizing; QColor m_fillColor; +#if QT_VERSION >= 0x060000 +#warning "Remove m_contentsScale and assume 1 everywhere" +#endif qreal m_contentsScale; - bool m_dirtyGeometry; - bool m_dirtyRenderTarget; - bool m_dirtyTexture; + bool m_dirtyContents : 1; + bool m_opaquePainting : 1; + bool m_linear_filtering : 1; + bool m_mipmapping : 1; + bool m_smoothPainting : 1; + bool m_extensionsChecked : 1; + bool m_multisamplingSupported : 1; + bool m_fastFBOResizing : 1; + bool m_dirtyGeometry : 1; + bool m_dirtyRenderTarget : 1; + bool m_dirtyTexture : 1; }; QT_END_NAMESPACE |