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

Issue 548633005: Adding overview / layer framework to Activities so that unloaded / sleeping activities can be shown… (Closed)

Created:
6 years, 3 months ago by Mr4D (OOO till 08-26)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Adding overview / layer framework to Activities so that unloaded / sleeping activities can be shown with as little resources as possible The new |ContentProxy| object is a placeholder for now which only creates a single color view. It can use the |web_view| to generate the image preview in the next step and will work for WebContents as well as App's. So more work is necessary, this patch is mainly to get the overview mode working again when running out of memory (and avoiding that it gets too big). Adding sky for the DEPS inclusion. BUG=408837 TEST=unittests and visual TBR=sky@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/73a3f091451b84bb89b288935d938eaa38d39918

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed #

Total comments: 8

Patch Set 3 : Rebased, fixed resulting problems and addressed comments #

Total comments: 15

Patch Set 4 : Addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+443 lines, -157 lines) Patch
M athena/activity/public/activity_view_model.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M athena/athena.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M athena/content/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M athena/content/app_activity.h View 1 2 3 6 chunks +13 lines, -14 lines 0 comments Download
M athena/content/app_activity.cc View 1 2 6 chunks +30 lines, -45 lines 0 comments Download
M athena/content/app_activity_proxy.h View 1 2 4 chunks +9 lines, -4 lines 0 comments Download
M athena/content/app_activity_proxy.cc View 1 2 3 chunks +12 lines, -10 lines 0 comments Download
M athena/content/app_activity_registry.h View 1 chunk +4 lines, -0 lines 0 comments Download
M athena/content/app_activity_registry.cc View 1 2 3 3 chunks +18 lines, -5 lines 0 comments Download
M athena/content/app_activity_unittest.cc View 1 2 3 6 chunks +12 lines, -7 lines 0 comments Download
A athena/content/content_proxy.h View 1 1 chunk +118 lines, -0 lines 0 comments Download
A athena/content/content_proxy.cc View 1 2 3 1 chunk +132 lines, -0 lines 0 comments Download
M athena/content/web_activity.h View 1 2 5 chunks +8 lines, -9 lines 0 comments Download
M athena/content/web_activity.cc View 1 2 3 7 chunks +33 lines, -43 lines 0 comments Download
M athena/resource_manager/resource_manager_impl.cc View 1 2 3 4 chunks +16 lines, -5 lines 0 comments Download
M athena/resource_manager/resource_manager_unittest.cc View 1 2 3 4 chunks +35 lines, -5 lines 0 comments Download
M athena/test/sample_activity.h View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M athena/test/sample_activity.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 31 (8 generated)
Mr4D (OOO till 08-26)
Please have a look!
6 years, 3 months ago (2014-09-09 23:37:19 UTC) #2
Jun Mukai
https://codereview.chromium.org/548633005/diff/1/athena/content/app_activity.cc File athena/content/app_activity.cc (right): https://codereview.chromium.org/548633005/diff/1/athena/content/app_activity.cc#newcode196 athena/content/app_activity.cc:196: content_proxy_.reset(NULL); you can omit NULL, i.e. reset(); Also, you ...
6 years, 3 months ago (2014-09-10 00:38:53 UTC) #3
pkotwicz
https://codereview.chromium.org/548633005/diff/1/athena/content/content_proxy.h File athena/content/content_proxy.h (right): https://codereview.chromium.org/548633005/diff/1/athena/content/content_proxy.h#newcode38 athena/content/content_proxy.h:38: class ContentProxy { I wonder whether ContentProxy can inherit ...
6 years, 3 months ago (2014-09-10 01:43:13 UTC) #4
pkotwicz
https://codereview.chromium.org/548633005/diff/1/athena/content/content_proxy.cc File athena/content/content_proxy.cc (right): https://codereview.chromium.org/548633005/diff/1/athena/content/content_proxy.cc#newcode111 athena/content/content_proxy.cc:111: proxy_content_->SetFillsBoundsOpaquely(true); Are there any cases where |proxy_content_| is painted ...
6 years, 3 months ago (2014-09-10 14:30:21 UTC) #5
Mr4D (OOO till 08-26)
Addressed (several items). Note: I have found one issue where creating the AppProxyWindow will change ...
6 years, 3 months ago (2014-09-10 15:55:46 UTC) #6
pkotwicz
Adding sadrul@ as a reviewer. I think he is a more appropriate reviewer than I
6 years, 3 months ago (2014-09-10 18:58:55 UTC) #8
pkotwicz
For completeness, after discussing with skuhne@, on ToT there is no more garbage in overview ...
6 years, 3 months ago (2014-09-10 19:00:15 UTC) #9
Mr4D (OOO till 08-26)
For completeness, I also said that this patch has several fixes in it and that ...
6 years, 3 months ago (2014-09-10 19:27:50 UTC) #10
Jun Mukai
I will also delegate to sadrul for this. The code looks sane to me though. ...
6 years, 3 months ago (2014-09-10 21:04:57 UTC) #11
sadrul
https://codereview.chromium.org/548633005/diff/20001/athena/content/app_activity_registry.cc File athena/content/app_activity_registry.cc (right): https://codereview.chromium.org/548633005/diff/20001/athena/content/app_activity_registry.cc#newcode89 athena/content/app_activity_registry.cc:89: base::ThreadTaskRunnerHandle::Get()->PostNonNestableTask( Why non-nestable? https://codereview.chromium.org/548633005/diff/20001/athena/content/content_proxy.cc File athena/content/content_proxy.cc (right): https://codereview.chromium.org/548633005/diff/20001/athena/content/content_proxy.cc#newcode111 athena/content/content_proxy.cc:111: ...
6 years, 3 months ago (2014-09-11 19:37:55 UTC) #12
Mr4D (OOO till 08-26)
Rebased, fixed resulting problems and addressed comments. Please have another look! https://codereview.chromium.org/548633005/diff/20001/athena/content/app_activity_registry.cc File athena/content/app_activity_registry.cc (right): ...
6 years, 3 months ago (2014-09-11 21:52:42 UTC) #13
sadrul
https://codereview.chromium.org/548633005/diff/40001/athena/content/app_activity.h File athena/content/app_activity.h (right): https://codereview.chromium.org/548633005/diff/40001/athena/content/app_activity.h#newcode71 athena/content/app_activity.h:71: // Showing a content proxy instead of the real ...
6 years, 3 months ago (2014-09-12 16:30:15 UTC) #14
Mr4D (OOO till 08-26)
Please have another look! https://codereview.chromium.org/548633005/diff/40001/athena/content/app_activity.h File athena/content/app_activity.h (right): https://codereview.chromium.org/548633005/diff/40001/athena/content/app_activity.h#newcode71 athena/content/app_activity.h:71: // Showing a content proxy ...
6 years, 3 months ago (2014-09-12 20:11:27 UTC) #15
sadrul
lgtm +oshima@ for ideas on fixing the issue in AppActivityProxy::Init()
6 years, 3 months ago (2014-09-15 14:13:37 UTC) #17
Mr4D (OOO till 08-26)
Thanks for reviewing! I will land this patch and address the the activity change in ...
6 years, 3 months ago (2014-09-15 14:56:32 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/548633005/60001
6 years, 3 months ago (2014-09-15 14:57:07 UTC) #20
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/10968)
6 years, 3 months ago (2014-09-15 15:07:19 UTC) #22
Mr4D (OOO till 08-26)
Never mind then - apparently athena/activity/public/activity_view_model.h athena/athena.gyp athena/test/sample_activity.cc athena/test/sample_activity.h need another lgtm. Jun/Oshima Please have ...
6 years, 3 months ago (2014-09-15 15:12:28 UTC) #23
Jun Mukai
lgtm
6 years, 3 months ago (2014-09-15 16:17:55 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/548633005/60001
6 years, 3 months ago (2014-09-15 16:28:02 UTC) #28
oshima
https://codereview.chromium.org/548633005/diff/40001/athena/content/app_activity_proxy.cc File athena/content/app_activity_proxy.cc (right): https://codereview.chromium.org/548633005/diff/40001/athena/content/app_activity_proxy.cc#newcode71 athena/content/app_activity_proxy.cc:71: wm::ActivateWindow(window_list_provider->GetWindowList().back()); On 2014/09/12 20:11:26, Mr4D wrote: > It's not ...
6 years, 3 months ago (2014-09-15 16:37:11 UTC) #29
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/60014850f1c3d283bb68cc77c880e46abaea13c0 Cr-Commit-Position: refs/heads/master@{#294837}
6 years, 3 months ago (2014-09-15 16:50:11 UTC) #30
commit-bot: I haz the power
6 years, 3 months ago (2014-09-15 16:50:32 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 73a3f091451b84bb89b288935d938eaa38d39918

Powered by Google App Engine
This is Rietveld 408576698