diff options
author | Andy Nichols <andy.nichols@qt.io> | 2016-04-18 16:39:40 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-04-20 13:22:36 +0000 |
commit | 8139a219ddae7f2f14d74f923b78b39af756a402 (patch) | |
tree | cec3d56e3549c69c60473086eff879894ff887f6 /src/quick/scenegraph/adaptations/software/qsgsoftwarepixmaprenderer.cpp | |
parent | 27d23848a36f9f5688eff2bed7a9dd1778fdd8ac (diff) |
2DRenderer: Have renderers tied to QPaintDevice
Previously the software renderer would create a backing store for a
given window if one was needed. This has been moved to the render loop
where the backingstore is flushed to the window. This refactoring
should make the software renderers flexible enough to work with
QQuickRenderControl.
Change-Id: Idbbb1da870afbf28e45213a887be68dba11dc592
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/quick/scenegraph/adaptations/software/qsgsoftwarepixmaprenderer.cpp')
-rw-r--r-- | src/quick/scenegraph/adaptations/software/qsgsoftwarepixmaprenderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarepixmaprenderer.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwarepixmaprenderer.cpp index acc55bb2db..304106a84d 100644 --- a/src/quick/scenegraph/adaptations/software/qsgsoftwarepixmaprenderer.cpp +++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarepixmaprenderer.cpp @@ -73,12 +73,12 @@ void QSGSoftwarePixmapRenderer::render() } -void QSGSoftwarePixmapRenderer::render(QPixmap *target) +void QSGSoftwarePixmapRenderer::render(QPaintDevice *target) { QElapsedTimer renderTimer; // Setup background item - setBackgroundSize(target->size()); + setBackgroundSize(QSize(target->width(), target->height())); setBackgroundColor(clearColor()); QPainter painter(target); |