summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_view_impl.h
diff options
context:
space:
mode:
authorccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-29 08:05:56 +0000
committerccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-29 08:05:56 +0000
commit0fdd501d30261f4b5e7fe5a41f2a7cff9d2ce3d1 (patch)
tree31e1ff88fb3bc271c6ba80492840481057a2c496 /content/renderer/render_view_impl.h
parentb9dd16dfd3a87d309d949837adec43224affca59 (diff)
downloadchromium_src-0fdd501d30261f4b5e7fe5a41f2a7cff9d2ce3d1.zip
chromium_src-0fdd501d30261f4b5e7fe5a41f2a7cff9d2ce3d1.tar.gz
chromium_src-0fdd501d30261f4b5e7fe5a41f2a7cff9d2ce3d1.tar.bz2
Fix race between DPI and window size
Because the display scale factor and the window size are sent in two different IPCs, and because the window size (ViewMsg_Resize) may be delayed (to avoid spamming the renderer with resize messages while dragging), the renderer can think it's using a different resolution than it is. This merges the ViewMsg_ScreenInfoChanged and ViewMsg_Resize messages, so that the renderer cannot not have a consistent view of the window size and DPI. BUG=239624 Review URL: https://chromiumcodereview.appspot.com/16048003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202814 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_view_impl.h')
-rw-r--r--content/renderer/render_view_impl.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index 3bef002..28fec34 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -770,11 +770,7 @@ class CONTENT_EXPORT RenderViewImpl
protected:
// RenderWidget overrides:
virtual void Close() OVERRIDE;
- virtual void OnResize(const gfx::Size& new_size,
- const gfx::Size& physical_backing_size,
- float overdraw_bottom_height,
- const gfx::Rect& resizer_rect,
- bool is_fullscreen) OVERRIDE;
+ virtual void OnResize(const ViewMsg_Resize_Params& params) OVERRIDE;
virtual void WillInitiatePaint() OVERRIDE;
virtual void DidInitiatePaint() OVERRIDE;
virtual void DidFlushPaint() OVERRIDE;