11#include <QtGui/QPaintDevice>
12#include <QtGui/QBackingStore>
13#include <QElapsedTimer>
21 , m_paintDevice(
nullptr)
22 , m_backingStore(
nullptr)
33 m_backingStore =
nullptr;
43 m_backingStore = backingStore;
44 m_paintDevice =
nullptr;
65 if (!paintDevice && m_backingStore) {
71 backingStore = m_backingStore;
90 qint64 buildRenderListTime = renderTimer.restart();
102 qint64 optimizeRenderListTime = renderTimer.restart();
105 if (backingStore !=
nullptr) {
115 QPainter *prevPainter = rc->m_activePainter;
116 rc->m_activePainter = &
painter;
120 qint64 renderTime = renderTimer.elapsed();
123 if (backingStore !=
nullptr)
126 rc->m_activePainter = prevPainter;
127 qCDebug(lcRenderer) <<
"render" << m_flushRegion << buildRenderListTime << optimizeRenderListTime << renderTime;
IOBluetoothDevice * device
The QBackingStore class provides a drawing area for QWindow.
QPaintDevice * paintDevice()
Returns the paint device for this surface.
void beginPaint(const QRegion &)
Begins painting on the backing store surface in the given region.
void endPaint()
Ends painting.
qreal devicePixelRatio() const
The QPainter class performs low-level painting on widgets and other paint devices.
void setRenderHint(RenderHint hint, bool on=true)
Sets the given render hint on the painter if on is true; otherwise clears the render hint.
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
QColor clearColor() const
Returns the color that clears the framebuffer at the beginning of the rendering.
QRegion renderNodes(QPainter *painter)
void setBackgroundColor(const QColor &color)
void setBackgroundRect(const QRect &rect, qreal devicePixelRatio)
QRegion optimizeRenderList()
QPaintDevice * paintDevice
QSGRenderContext * context() const
void renderScene() override
Renders the scene.
QPaintDevice * currentPaintDevice() const
QRegion flushRegion() const
void setCurrentPaintDevice(QPaintDevice *device)
void setBackingStore(QBackingStore *backingStore)
virtual ~QSGSoftwareRenderer()
void renderScene() final
Renders the scene.
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)