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

Issue 465363003: ResourceScheduler get visual signal from RenderViewHostImpl (Closed)

Created:
6 years, 4 months ago by Zhen Wang
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

ResourceScheduler get visual signal from RenderViewHostImpl BUG= Committed: https://crrev.com/e0b2af8a59f556b9f0fbb774e380294b13871ffe Cr-Commit-Position: refs/heads/master@{#291687}

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : remove ResourceScheduler::OnVisibilityChanged #

Total comments: 6

Patch Set 4 : nit fix #

Total comments: 1

Patch Set 5 : Add VisualObserver #

Total comments: 4

Patch Set 6 : Reset client_ in VisualObserver properly. #

Patch Set 7 : Get visual signal from RenderViewHostImpl #

Total comments: 4

Patch Set 8 : unit test fix #

Total comments: 2

Patch Set 9 : Do not throttle when should not #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -50 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 1 chunk +7 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -2 lines 0 comments Download
M content/browser/loader/resource_scheduler.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/loader/resource_scheduler.cc View 1 2 3 4 5 6 7 8 5 chunks +17 lines, -5 lines 0 comments Download
M content/browser/loader/resource_scheduler_unittest.cc View 1 2 3 4 5 6 7 20 chunks +97 lines, -38 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +25 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
Zhen Wang
6 years, 4 months ago (2014-08-13 20:47:49 UTC) #1
aiolos (Not reviewing)
You'll also want to replace current calls of scheduler_.OnVisibilityChanged to webcontents.WasShown/WasHidden in the existing unittests. ...
6 years, 4 months ago (2014-08-13 21:40:33 UTC) #2
aiolos (Not reviewing)
Also, it will be easier to review if you upload your changes to this review ...
6 years, 4 months ago (2014-08-13 23:31:14 UTC) #3
Zhen Wang
https://codereview.chromium.org/465363003/diff/20001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/465363003/diff/20001/content/browser/loader/resource_scheduler.cc#newcode249 content/browser/loader/resource_scheduler.cc:249: Observe(web_contents); I set the visibility here now. Test added. ...
6 years, 4 months ago (2014-08-14 22:19:53 UTC) #4
aiolos (Not reviewing)
Just a few small changes. https://codereview.chromium.org/465363003/diff/40001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/465363003/diff/40001/content/browser/loader/resource_scheduler.cc#newcode236 content/browser/loader/resource_scheduler.cc:236: is_visible_(false), is_visible_ should just ...
6 years, 4 months ago (2014-08-15 01:45:39 UTC) #5
aiolos (Not reviewing)
LGTM. Pulling Matt in for review.
6 years, 4 months ago (2014-08-15 18:41:00 UTC) #6
Zhen Wang
Nit fix. By the way, I have seen several try bots fail, mostly for browser_tests. ...
6 years, 4 months ago (2014-08-15 18:43:02 UTC) #7
Zhen Wang
+mmenke Hi Matt, this CL passes visual signal from web contents to ResourceScheduler. ptal.
6 years, 4 months ago (2014-08-15 18:46:35 UTC) #8
mmenke
https://codereview.chromium.org/465363003/diff/60001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/465363003/diff/60001/content/browser/loader/resource_scheduler.cc#newcode236 content/browser/loader/resource_scheduler.cc:236: is_visible_(!web_contents->IsHidden()), It's not safe to muck with the web_contents ...
6 years, 4 months ago (2014-08-15 18:57:10 UTC) #9
aiolos (Not reviewing)
On 2014/08/15 18:43:02, Zhen Wang wrote: > Nit fix. > > By the way, I ...
6 years, 4 months ago (2014-08-15 19:07:50 UTC) #10
Zhen Wang
I add visual observer, which observes web contents on UI thread and notify the client. ...
6 years, 4 months ago (2014-08-19 03:55:20 UTC) #11
mmenke
Can we just have the RenderViewHost pass visibility messages directly to the ResourceDispatcherHost, which then ...
6 years, 4 months ago (2014-08-19 14:38:27 UTC) #12
Zhen Wang
> Can we just have the RenderViewHost pass visibility messages directly to the > ResourceDispatcherHost, ...
6 years, 4 months ago (2014-08-19 17:53:41 UTC) #13
mmenke
On 2014/08/19 17:53:41, Zhen Wang wrote: > > Can we just have the RenderViewHost pass ...
6 years, 4 months ago (2014-08-19 18:10:57 UTC) #14
Zhen Wang
I have updated the patch by getting visual signal from RenderViewHostImpl. ptal.
6 years, 4 months ago (2014-08-20 02:30:12 UTC) #15
mmenke
I like this much better, though it looks like this breaks some prerendering tests. https://codereview.chromium.org/465363003/diff/120001/content/browser/loader/resource_scheduler_unittest.cc ...
6 years, 4 months ago (2014-08-20 20:21:44 UTC) #16
Zhen Wang
Unit test fixed. In patch set 8, I only modified the unittest file. But since ...
6 years, 4 months ago (2014-08-21 03:34:48 UTC) #17
mmenke
About the test failures: The prerender tests use our out-of-process (spawned) test server class, which ...
6 years, 4 months ago (2014-08-21 14:14:26 UTC) #18
mmenke
Also, once the test failures are resolved, I'm happy with this. On 2014/08/21 14:14:26, mmenke ...
6 years, 4 months ago (2014-08-21 14:17:29 UTC) #19
aiolos (Not reviewing)
Throttled Clients can change the order of requests since they will let SPDY, syncronous, and ...
6 years, 4 months ago (2014-08-21 17:27:03 UTC) #20
Zhen Wang
All tests pass with the fix in patch set 9. ptal. https://codereview.chromium.org/465363003/diff/140001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): ...
6 years, 4 months ago (2014-08-21 21:37:50 UTC) #21
mmenke
On 2014/08/21 21:37:50, Zhen Wang wrote: > All tests pass with the fix in patch ...
6 years, 4 months ago (2014-08-21 21:43:20 UTC) #22
Zhen Wang
The CQ bit was checked by zhenw@chromium.org
6 years, 4 months ago (2014-08-21 21:47:54 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zhenw@chromium.org/465363003/160001
6 years, 4 months ago (2014-08-21 21:49:12 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-21 22:45:15 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 22:47:31 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/5901)
6 years, 4 months ago (2014-08-21 22:47:32 UTC) #27
Zhen Wang
Hi Jam, Can you take a look at the change in following files? I modified ...
6 years, 4 months ago (2014-08-21 22:59:38 UTC) #28
jam
lgtm
6 years, 4 months ago (2014-08-25 01:55:18 UTC) #29
Zhen Wang
The CQ bit was checked by zhenw@chromium.org
6 years, 4 months ago (2014-08-25 16:03:43 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zhenw@chromium.org/465363003/160001
6 years, 4 months ago (2014-08-25 16:04:25 UTC) #31
commit-bot: I haz the power
Committed patchset #9 (160001) as 2f8809be5a3e16605c248bba0d062e0f0117971f
6 years, 4 months ago (2014-08-25 16:07:51 UTC) #32
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:34:42 UTC) #33
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/e0b2af8a59f556b9f0fbb774e380294b13871ffe
Cr-Commit-Position: refs/heads/master@{#291687}

Powered by Google App Engine
This is Rietveld 408576698