7#include <QtQuick/QSGSimpleRectNode>
9#include <QElapsedTimer>
66 QPainter *prevPainter = rc->m_activePainter;
72 rc->m_activePainter = prevPainter;
73 qCDebug(lcPixmapRenderer) <<
"pixmapRender" << paintedRegion << buildRenderListTime << optimizeRenderListTime << renderTime;
78 m_projectionRect = projectionRect;
qint64 elapsed() const noexcept
Returns the number of milliseconds since this QElapsedTimer was last started.
qint64 restart() noexcept
Restarts the timer and returns the number of milliseconds elapsed since the previous start.
void start() noexcept
Starts this timer.
The QPainter class performs low-level painting on widgets and other paint devices.
void setWindow(const QRect &window)
Sets the painter's window to the given rectangle, and enables view transformations.
void setRenderHint(RenderHint hint, bool on=true)
Sets the given render hint on the painter if on is true; otherwise clears the render hint.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
QRect normalized() const noexcept
Returns a normalized rectangle; i.e., a rectangle that has a non-negative width and height.
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()
QSGRenderContext * context() const
void renderScene() override
Renders the scene.
void renderScene() final
Renders the scene.
virtual ~QSGSoftwarePixmapRenderer()
void setProjectionRect(const QRect &projectionRect)
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)