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

Issue 286943005: Reducing CPU cycles of hidden/minimized browser windows (Closed)

Created:
6 years, 7 months ago by Mr4D (OOO till 08-26)
Modified:
6 years, 7 months ago
Reviewers:
ncarter (slow), sky
CC:
chromium-reviews, tfarina, ncarter (slow)
Visibility:
Public.

Description

Releasing CPU resources of hidden/minimized browser windows BUG=310365 TEST=browser_test & tested visually (taskamanger, running YouTube, deleting active&inactive hidden tabs, ..) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272662

Patch Set 1 #

Patch Set 2 : Self nit #

Patch Set 3 : . #

Total comments: 1

Patch Set 4 : Moved to WebContentsViewAura #

Total comments: 2

Patch Set 5 : Addressed #

Total comments: 7

Patch Set 6 : . #

Total comments: 9

Patch Set 7 : . #

Total comments: 4

Patch Set 8 : Addressed nits #

Patch Set 9 : Fixing telemetry tests #

Patch Set 10 : Fixing windows shutdown issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -7 lines) Patch
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.h View 1 2 3 3 chunks +9 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 3 4 5 6 7 8 9 5 chunks +31 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 44 (0 generated)
Mr4D (OOO till 08-26)
I controlled the active web content with the visibility of the browser window. Please have ...
6 years, 7 months ago (2014-05-15 15:40:07 UTC) #1
sky
This is the wrong place for this logic. If there are resources that can be ...
6 years, 7 months ago (2014-05-15 16:49:14 UTC) #2
Mr4D (OOO till 08-26)
I hope this is more what you were looking for. Please have a look!
6 years, 7 months ago (2014-05-15 21:47:21 UTC) #3
sky
https://codereview.chromium.org/286943005/diff/40001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/286943005/diff/40001/ui/views/controls/native/native_view_host_aura.cc#newcode115 ui/views/controls/native/native_view_host_aura.cc:115: void NativeViewHostAura::OnWindowVisibilityChanged(aura::Window* window, Again, I think this should be ...
6 years, 7 months ago (2014-05-15 22:42:19 UTC) #4
Mr4D (OOO till 08-26)
The reason for my previous fix was that there was already some logic in place ...
6 years, 7 months ago (2014-05-16 17:57:52 UTC) #5
sky
https://codereview.chromium.org/286943005/diff/60001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/286943005/diff/60001/content/browser/web_contents/web_contents_view_aura.cc#newcode1433 content/browser/web_contents/web_contents_view_aura.cc:1433: void WebContentsViewAura::OnWindowTargetVisibilityChanged(bool visible) { I don't think you want ...
6 years, 7 months ago (2014-05-16 20:14:58 UTC) #6
ncarter (slow)
+ncarter to cc; I helped Stefan look at this today, and noticed that the hide-on-minimize ...
6 years, 7 months ago (2014-05-20 01:39:07 UTC) #7
Mr4D (OOO till 08-26)
Added unit test, got rid of the check and added a test to not change ...
6 years, 7 months ago (2014-05-20 19:23:10 UTC) #8
sky
https://codereview.chromium.org/286943005/diff/80001/chrome/browser/ui/views/frame/browser_view_browsertest.cc File chrome/browser/ui/views/frame/browser_view_browsertest.cc (right): https://codereview.chromium.org/286943005/diff/80001/chrome/browser/ui/views/frame/browser_view_browsertest.cc#newcode105 chrome/browser/ui/views/frame/browser_view_browsertest.cc:105: IN_PROC_BROWSER_TEST_F(BrowserViewTest, MinimizeHidesWebContents) { Test coverage should be in content. ...
6 years, 7 months ago (2014-05-20 19:46:27 UTC) #9
Mr4D (OOO till 08-26)
look again. https://codereview.chromium.org/286943005/diff/80001/chrome/browser/ui/views/frame/browser_view_browsertest.cc File chrome/browser/ui/views/frame/browser_view_browsertest.cc (right): https://codereview.chromium.org/286943005/diff/80001/chrome/browser/ui/views/frame/browser_view_browsertest.cc#newcode105 chrome/browser/ui/views/frame/browser_view_browsertest.cc:105: IN_PROC_BROWSER_TEST_F(BrowserViewTest, MinimizeHidesWebContents) { I prefer 1:1 tests ...
6 years, 7 months ago (2014-05-20 21:26:56 UTC) #10
ncarter (slow)
https://codereview.chromium.org/286943005/diff/80001/chrome/browser/ui/views/frame/browser_view_browsertest.cc File chrome/browser/ui/views/frame/browser_view_browsertest.cc (right): https://codereview.chromium.org/286943005/diff/80001/chrome/browser/ui/views/frame/browser_view_browsertest.cc#newcode105 chrome/browser/ui/views/frame/browser_view_browsertest.cc:105: IN_PROC_BROWSER_TEST_F(BrowserViewTest, MinimizeHidesWebContents) { On 2014/05/20 21:26:56, Mr4D wrote: > ...
6 years, 7 months ago (2014-05-20 21:40:01 UTC) #11
ncarter (slow)
https://codereview.chromium.org/286943005/diff/100001/content/browser/web_contents/web_contents_view_aura_browsertest.cc File content/browser/web_contents/web_contents_view_aura_browsertest.cc (right): https://codereview.chromium.org/286943005/diff/100001/content/browser/web_contents/web_contents_view_aura_browsertest.cc#newcode694 content/browser/web_contents/web_contents_view_aura_browsertest.cc:694: parent->Hide(); Does this actually minimize the parent? Wasn't the ...
6 years, 7 months ago (2014-05-20 21:42:26 UTC) #12
Mr4D (OOO till 08-26)
Please see comments. https://codereview.chromium.org/286943005/diff/80001/content/browser/web_contents/web_contents_view_aura.h File content/browser/web_contents/web_contents_view_aura.h (right): https://codereview.chromium.org/286943005/diff/80001/content/browser/web_contents/web_contents_view_aura.h#newcode46 content/browser/web_contents/web_contents_view_aura.h:46: public aura::WindowObserver { The existing observer ...
6 years, 7 months ago (2014-05-20 21:48:56 UTC) #13
sky
https://codereview.chromium.org/286943005/diff/100001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/286943005/diff/100001/content/browser/web_contents/web_contents_view_aura.cc#newcode103 content/browser/web_contents/web_contents_view_aura.cc:103: bool visibility) { visibility->visible https://codereview.chromium.org/286943005/diff/100001/content/browser/web_contents/web_contents_view_aura.cc#newcode736 content/browser/web_contents/web_contents_view_aura.cc:736: window_->RemoveObserver(this); nit: move ...
6 years, 7 months ago (2014-05-20 23:33:50 UTC) #14
Mr4D (OOO till 08-26)
Plase have another look! https://codereview.chromium.org/286943005/diff/100001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/286943005/diff/100001/content/browser/web_contents/web_contents_view_aura.cc#newcode103 content/browser/web_contents/web_contents_view_aura.cc:103: bool visibility) { On 2014/05/20 ...
6 years, 7 months ago (2014-05-21 14:25:02 UTC) #15
sky
LGTM https://codereview.chromium.org/286943005/diff/120001/content/browser/web_contents/web_contents_view_aura_browsertest.cc File content/browser/web_contents/web_contents_view_aura_browsertest.cc (right): https://codereview.chromium.org/286943005/diff/120001/content/browser/web_contents/web_contents_view_aura_browsertest.cc#newcode691 content/browser/web_contents/web_contents_view_aura_browsertest.cc:691: aura::Window* content = web_contents->GetContentNativeView()->parent(); My confusion here is ...
6 years, 7 months ago (2014-05-21 16:15:16 UTC) #16
ncarter (slow)
lgtm with nit https://codereview.chromium.org/286943005/diff/120001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/286943005/diff/120001/content/browser/web_contents/web_contents_view_aura.cc#newcode104 content/browser/web_contents/web_contents_view_aura.cc:104: if (visibile) { visibile -> visible ...
6 years, 7 months ago (2014-05-21 21:11:03 UTC) #17
Mr4D (OOO till 08-26)
Many thanks for your review! https://codereview.chromium.org/286943005/diff/120001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/286943005/diff/120001/content/browser/web_contents/web_contents_view_aura.cc#newcode104 content/browser/web_contents/web_contents_view_aura.cc:104: if (visibile) { On ...
6 years, 7 months ago (2014-05-21 21:25:25 UTC) #18
Mr4D (OOO till 08-26)
The CQ bit was checked by skuhne@chromium.org
6 years, 7 months ago (2014-05-21 21:25:34 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/286943005/140001
6 years, 7 months ago (2014-05-21 21:29:39 UTC) #20
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-22 07:05:49 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 07:08:48 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/9635)
6 years, 7 months ago (2014-05-22 07:08:49 UTC) #23
Mr4D (OOO till 08-26)
The CQ bit was checked by skuhne@chromium.org
6 years, 7 months ago (2014-05-22 15:16:18 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/286943005/140001
6 years, 7 months ago (2014-05-22 15:17:16 UTC) #25
Mr4D (OOO till 08-26)
The CQ bit was unchecked by skuhne@chromium.org
6 years, 7 months ago (2014-05-22 15:21:43 UTC) #26
Mr4D (OOO till 08-26)
The CQ bit was checked by skuhne@chromium.org
6 years, 7 months ago (2014-05-22 15:47:47 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/286943005/140001
6 years, 7 months ago (2014-05-22 15:49:54 UTC) #28
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-22 16:37:32 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 16:40:08 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/9635)
6 years, 7 months ago (2014-05-22 16:40:08 UTC) #31
Mr4D (OOO till 08-26)
The CQ bit was checked by skuhne@chromium.org
6 years, 7 months ago (2014-05-22 23:09:41 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/286943005/160001
6 years, 7 months ago (2014-05-22 23:10:25 UTC) #33
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-23 05:06:58 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 08:12:29 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/19228)
6 years, 7 months ago (2014-05-23 08:12:29 UTC) #36
Mr4D (OOO till 08-26)
The CQ bit was checked by skuhne@chromium.org
6 years, 7 months ago (2014-05-23 13:56:49 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/286943005/180001
6 years, 7 months ago (2014-05-23 13:57:02 UTC) #38
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-23 18:24:03 UTC) #39
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 20:20:38 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/19408)
6 years, 7 months ago (2014-05-23 20:20:39 UTC) #41
Mr4D (OOO till 08-26)
The CQ bit was checked by skuhne@chromium.org
6 years, 7 months ago (2014-05-23 21:08:28 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/286943005/180001
6 years, 7 months ago (2014-05-23 21:09:41 UTC) #43
commit-bot: I haz the power
6 years, 7 months ago (2014-05-24 01:05:53 UTC) #44
Message was sent while issue was closed.
Change committed as 272662

Powered by Google App Engine
This is Rietveld 408576698