From 1dae7aa22fcd16ff7d3d47c173c8590e4841f141 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Thu, 4 Dec 2014 16:17:27 +0100 Subject: Support QSGLayer::setRect Carry any non-full rect from the layer to QPainter::setWindow. This is needed by cc::RenderPass::output_rect in QtWebEngine. Change-Id: I8ffd7f0b7646e664a225df096de455899338d4ba Reviewed-by: Simon Hausmann --- src/plugins/scenegraph/softwarecontext/context.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/scenegraph/softwarecontext/context.cpp') diff --git a/src/plugins/scenegraph/softwarecontext/context.cpp b/src/plugins/scenegraph/softwarecontext/context.cpp index d25406ce2d..dafbfdaae9 100644 --- a/src/plugins/scenegraph/softwarecontext/context.cpp +++ b/src/plugins/scenegraph/softwarecontext/context.cpp @@ -147,6 +147,7 @@ void PixmapRenderer::render(QPixmap *target) target->fill(clearColor()); QPainter painter(target); painter.setRenderHint(QPainter::Antialiasing); + painter.setWindow(m_projectionRect); RenderingVisitor(&painter).visitChildren(rootNode()); } -- cgit v1.2.3