summaryrefslogtreecommitdiffstats
path: root/lib/quick/render_widget_host_view_qt_delegate_quick.cpp
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2013-08-28 20:03:55 +0200
committerAndras Becsi <andras.becsi@digia.com>2013-09-02 20:21:52 +0200
commitc3f53cadb902f711a90b744c5b186208cf08826b (patch)
tree8eba9a17dd174e6647a9262cb86d4690b9a41cc4 /lib/quick/render_widget_host_view_qt_delegate_quick.cpp
parent7146fcc14dcd69f39f20a3e49a9b371bd306bb53 (diff)
Fix rendering on Retina displays
Since the QWindow returned by the RWHV delegates was always 0 we never actually propagated a valid WebScreenInfo to chromium. Additionally the painting and scrolling in the backing store had to be fixed so that the device pixel ratio is taken into account. Change-Id: I22dc135e8e090362201292863ed911464b9fc133 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'lib/quick/render_widget_host_view_qt_delegate_quick.cpp')
-rw-r--r--lib/quick/render_widget_host_view_qt_delegate_quick.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/quick/render_widget_host_view_qt_delegate_quick.cpp b/lib/quick/render_widget_host_view_qt_delegate_quick.cpp
index 87c1794d6..1a6759ff1 100644
--- a/lib/quick/render_widget_host_view_qt_delegate_quick.cpp
+++ b/lib/quick/render_widget_host_view_qt_delegate_quick.cpp
@@ -90,7 +90,7 @@ bool RenderWidgetHostViewQtDelegateQuick::isVisible() const
return QQuickPaintedItem::isVisible();
}
-QWindow* RenderWidgetHostViewQtDelegateQuick::window() const
+WId RenderWidgetHostViewQtDelegateQuick::nativeWindowIdForCompositor() const
{
// Only used to enable accelerated compositing by the compositor
// directly on our native window, which we want to eventually do
@@ -98,6 +98,11 @@ QWindow* RenderWidgetHostViewQtDelegateQuick::window() const
return 0;
}
+QWindow* RenderWidgetHostViewQtDelegateQuick::window() const
+{
+ return QQuickPaintedItem::window();
+}
+
void RenderWidgetHostViewQtDelegateQuick::update(const QRect& rect)
{
polish();