Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(851)

Issue 16048003: Fix race between DPI and window size (Closed)

Created:
7 years, 7 months ago by ccameron
Modified:
7 years, 6 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202814

Patch Set 1 #

Total comments: 2

Patch Set 2 : Incorporate review feedback #

Patch Set 3 : Resolve against head #

Patch Set 4 : Explicitily track screen info updates #

Patch Set 5 : Fix cros aura tests #

Patch Set 6 : Remove semicolon #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -108 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 4 chunks +21 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 3 chunks +15 lines, -26 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 chunk +1 line, -6 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 3 chunks +14 lines, -12 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 1 chunk +8 lines, -2 lines 0 comments Download
M content/public/test/render_widget_test.cc View 1 2 3 2 chunks +23 lines, -9 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 chunk +1 line, -5 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 1 chunk +4 lines, -8 lines 0 comments Download
M content/renderer/render_widget.h View 1 3 chunks +2 lines, -6 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 3 chunks +7 lines, -15 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.h View 1 chunk +1 line, -5 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.cc View 1 chunk +4 lines, -8 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
ccameron
This is the final part to fix the DPI-change-related flashes on Mac (and presumably any ...
7 years, 7 months ago (2013-05-25 00:25:24 UTC) #1
piman
Thanks for this, it's definitely a win to have a single message, and no stale ...
7 years, 7 months ago (2013-05-25 00:37:25 UTC) #2
ccameron
Thanks!! https://codereview.chromium.org/16048003/diff/1/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/16048003/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode548 content/browser/renderer_host/render_widget_host_impl.cc:548: GetWebScreenInfo(&params.screen_info); On 2013/05/25 00:37:25, piman wrote: > This ...
7 years, 7 months ago (2013-05-25 01:53:36 UTC) #3
piman
OK, that works. LGTM!
7 years, 7 months ago (2013-05-25 01:59:16 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/16048003/7001
7 years, 7 months ago (2013-05-27 08:14:20 UTC) #5
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=5102
7 years, 7 months ago (2013-05-27 08:20:59 UTC) #6
ccameron
Adding cevans for security IPC review.
7 years, 7 months ago (2013-05-27 08:49:24 UTC) #7
ccameron
Ping cevans/cdn for security IPC review.
7 years, 6 months ago (2013-05-28 20:50:07 UTC) #8
Cris Neckar
LGTM for security review
7 years, 6 months ago (2013-05-28 21:02:30 UTC) #9
ccameron
Thanks!!
7 years, 6 months ago (2013-05-28 21:06:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/16048003/7001
7 years, 6 months ago (2013-05-28 21:06:37 UTC) #11
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=5372
7 years, 6 months ago (2013-05-28 21:29:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/16048003/7001
7 years, 6 months ago (2013-05-28 21:31:33 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-05-28 22:10:44 UTC) #14
ccameron
This broke some tests because screen_info_ assumed that the renderer didn't have correct initial screen ...
7 years, 6 months ago (2013-05-28 23:47:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/16048003/37002
7 years, 6 months ago (2013-05-28 23:49:01 UTC) #16
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-05-29 00:11:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/16048003/57001
7 years, 6 months ago (2013-05-29 00:58:58 UTC) #18
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-05-29 01:30:28 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/16048003/3002
7 years, 6 months ago (2013-05-29 01:37:29 UTC) #20
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 08:05:57 UTC) #21
Message was sent while issue was closed.
Change committed as 202814

Powered by Google App Engine
This is Rietveld 408576698