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

Issue 299443003: Restore resize throttling on Chrome OS (Closed)

Created:
6 years, 7 months ago by piman
Modified:
6 years, 7 months ago
Reviewers:
danakj
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org
Visibility:
Public.

Description

Restore resize throttling on Chrome OS r270786 removed DelegatedFrameHost::GetViewBoundsWithResizeLock, but that was based on the wrong assumption, which is that the resize lock is always taken at the same time as when RWHI sends the Resize message, which is not true. So, reintroduce that logic, although in a saner way. The RWHV is responsible for throttling, it should be explicit about having 2 sizes: 1- the size that is set by the UI layers 2- the size that the renderer should be resized to. They are different when throttling. (1) stays RWHV::GetViewBounds().size(). (2) is introduced as RWHVBase::GetRequestedRendererSize(). BUG=374885 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272011

Patch Set 1 #

Total comments: 3

Patch Set 2 : rebase, test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -9 lines) Patch
M content/browser/compositor/delegated_frame_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/compositor/delegated_frame_host.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 2 chunks +7 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 1 chunk +86 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
piman
6 years, 7 months ago (2014-05-20 06:38:28 UTC) #1
danakj
This is great, thanks LGTM. The "GetFooBar" thing seems to be a pattern in RWHV ...
6 years, 7 months ago (2014-05-20 19:28:56 UTC) #2
piman
On Tue, May 20, 2014 at 12:28 PM, <danakj@chromium.org> wrote: > This is great, thanks ...
6 years, 7 months ago (2014-05-20 19:49:13 UTC) #3
danakj
On Tue, May 20, 2014 at 3:48 PM, Antoine Labour <piman@chromium.org> wrote: > On Tue, ...
6 years, 7 months ago (2014-05-20 20:04:51 UTC) #4
piman
On Tue, May 20, 2014 at 1:04 PM, Dana Jansens <danakj@chromium.org> wrote: > On Tue, ...
6 years, 7 months ago (2014-05-20 20:28:59 UTC) #5
danakj
On Tue, May 20, 2014 at 4:28 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
6 years, 7 months ago (2014-05-20 20:34:05 UTC) #6
piman
The CQ bit was checked by piman@chromium.org
6 years, 7 months ago (2014-05-21 02:28:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/299443003/20001
6 years, 7 months ago (2014-05-21 02:30:40 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-21 20:02:43 UTC) #9
commit-bot: I haz the power
6 years, 7 months ago (2014-05-21 23:28:50 UTC) #10
Message was sent while issue was closed.
Change committed as 272011

Powered by Google App Engine
This is Rietveld 408576698