summaryrefslogtreecommitdiffstats
path: root/lib/render_widget_host_view_qt_delegate_widget.h
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-06-14 16:25:21 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-06-19 12:23:52 +0200
commitddc65ad9a8462321279024ec1ae6931e11f8fa23 (patch)
treeb36db91a8cf410b2d9982d270ef49189eb3067ef /lib/render_widget_host_view_qt_delegate_widget.h
parentbbeaf3278de08da00f56aba3511951aaf6a8d233 (diff)
Simplify the BackingStore handling.
This patch removes the black borders around the widget when resizing. - No need to resize the BackingStore direcly, RenderWidgetHostImpl::WasResized takes care of allocating a new one with the correct size. - Get the backing store just before painting instead of pushing it when scheduling an update. Getting the backing store has side effects that assumes it is done that way. - Remove the about_to_validate_and_paint_ check as all our painting updates are scheduled back to the event loop and that we are now only fetching the BackingStore at this point.
Diffstat (limited to 'lib/render_widget_host_view_qt_delegate_widget.h')
-rw-r--r--lib/render_widget_host_view_qt_delegate_widget.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/render_widget_host_view_qt_delegate_widget.h b/lib/render_widget_host_view_qt_delegate_widget.h
index 9087ba017..f6da4f484 100644
--- a/lib/render_widget_host_view_qt_delegate_widget.h
+++ b/lib/render_widget_host_view_qt_delegate_widget.h
@@ -17,7 +17,6 @@ class RenderWidgetHostViewQtDelegateWidget : public QWidget, public RenderWidget
public:
RenderWidgetHostViewQtDelegateWidget(content::RenderWidgetHostViewQt* view, QWidget *parent = 0);
- virtual void setBackingStore(BackingStoreQt* backingStore);
virtual QRectF screenRect() const;
virtual void show();
virtual void hide();
@@ -33,7 +32,6 @@ protected:
void resizeEvent(QResizeEvent *resizeEvent);
private:
- BackingStoreQt* m_backingStore;
QPainter* m_painter;
content::RenderWidgetHostViewQt *m_view;
};