diff options
author | Andras Becsi <andras.becsi@digia.com> | 2013-08-28 20:03:55 +0200 |
---|---|---|
committer | Andras Becsi <andras.becsi@digia.com> | 2013-09-02 20:21:52 +0200 |
commit | c3f53cadb902f711a90b744c5b186208cf08826b (patch) | |
tree | 8eba9a17dd174e6647a9262cb86d4690b9a41cc4 /lib/render_widget_host_view_qt_delegate.h | |
parent | 7146fcc14dcd69f39f20a3e49a9b371bd306bb53 (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/render_widget_host_view_qt_delegate.h')
-rw-r--r-- | lib/render_widget_host_view_qt_delegate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/render_widget_host_view_qt_delegate.h b/lib/render_widget_host_view_qt_delegate.h index 34f03d125..138cdb5ad 100644 --- a/lib/render_widget_host_view_qt_delegate.h +++ b/lib/render_widget_host_view_qt_delegate.h @@ -46,6 +46,7 @@ #include <QRect> #include <QScopedPointer> +#include <QtGui/qwindowdefs.h> class BackingStoreQt; class QCursor; @@ -66,6 +67,7 @@ public: virtual void show() = 0; virtual void hide() = 0; virtual bool isVisible() const = 0; + virtual WId nativeWindowIdForCompositor() const = 0; virtual QWindow* window() const = 0; virtual void update(const QRect& rect = QRect()) = 0; virtual void updateCursor(const QCursor &) = 0; |