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

Issue 11273059: ash: Clean up system background layer. (Closed)

Created:
8 years, 1 month ago by Daniel Erat
Modified:
8 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, sadrul, ben+watch_chromium.org, Denis Kuznetsov (DE-MUC), Nikita (slow)
Visibility:
Public.

Description

ash: Clean up system background layer. This adds a SystemBackgroundController class that's responsible for a ui::Layer that's stacked underneath all other layers. I'm also adding an --ash-copy-host-background-at-boot flag that can be set to instruct the controller to copy the host window's content into the system background layer at startup; otherwise, we display the same background color used by Chrome OS's boot splash screen. I suspect that there's a small performance hit from copying (I've seen the XGetImage() take between 25 and 170 ms depending on hardware), although it seems to be hidden in the noise of our total boot times. Regardless, I figure that we should only turn this on right now for systems that need it (to hide an even-longer delay where the compositor is drawing but the login background images hasn't been loaded). In any case, once the login background is visible, the system background layer is reset to display the black background that's needed for fullscreen animations that manipulate the desktop background (for the workspace or power button). BUG=152309 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164704

Patch Set 1 #

Patch Set 2 : try uploading again #

Patch Set 3 : update window id #

Total comments: 1

Patch Set 4 : fix compile errors, hopefully #

Total comments: 8

Patch Set 5 : merge #

Patch Set 6 : apply review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+555 lines, -409 lines) Patch
M ash/ash.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/ash_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/ash_switches.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M ash/root_window_controller.h View 3 chunks +3 lines, -8 lines 0 comments Download
M ash/root_window_controller.cc View 6 chunks +22 lines, -25 lines 0 comments Download
M ash/shell_unittest.cc View 2 chunks +0 lines, -41 lines 0 comments Download
M ash/shell_window_ids.h View 1 2 2 chunks +19 lines, -26 lines 0 comments Download
ash/wm/power_button_controller_unittest.cc View 23 chunks +2 lines, -65 lines 0 comments Download
M ash/wm/session_state_animator.h View 1 2 3 4 5 chunks +1 line, -40 lines 0 comments Download
M ash/wm/session_state_animator.cc View 1 2 3 4 4 chunks +0 lines, -51 lines 0 comments Download
M ash/wm/session_state_controller_impl.cc View 1 2 3 4 10 chunks +0 lines, -16 lines 0 comments Download
A ash/wm/system_background_controller.h View 1 2 3 1 chunk +97 lines, -0 lines 0 comments Download
A ash/wm/system_background_controller.cc View 1 2 3 4 5 1 chunk +133 lines, -0 lines 0 comments Download
M ash/wm/workspace/colored_window_controller.h View 1 chunk +1 line, -2 lines 0 comments Download
M ui/aura/remote_root_window_host_win.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/remote_root_window_host_win.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M ui/aura/root_window.h View 1 2 3 4 2 chunks +10 lines, -1 line 0 comments Download
M ui/aura/root_window.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M ui/aura/root_window_host.h View 2 chunks +9 lines, -0 lines 0 comments Download
M ui/aura/root_window_host_linux.h View 1 2 3 4 chunks +15 lines, -8 lines 0 comments Download
M ui/aura/root_window_host_linux.cc View 1 2 3 4 7 chunks +178 lines, -126 lines 0 comments Download
ui/aura/root_window_host_mac.mm View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/root_window_host_win.h View 1 chunk +3 lines, -0 lines 0 comments Download
ui/aura/root_window_host_win.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_root_window_host_linux.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_root_window_host_linux.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_root_window_host_win.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_root_window_host_win.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Daniel Erat
https://codereview.chromium.org/11273059/diff/4001/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): https://codereview.chromium.org/11273059/diff/4001/ui/aura/root_window_host_linux.cc#newcode751 ui/aura/root_window_host_linux.cc:751: bool RootWindowHostLinux::DispatchEventForRootWindow( sorry, moved this code without any changes ...
8 years, 1 month ago (2012-10-26 00:41:15 UTC) #1
sky
LGTM https://codereview.chromium.org/11273059/diff/7001/ash/wm/system_background_controller.cc File ash/wm/system_background_controller.cc (right): https://codereview.chromium.org/11273059/diff/7001/ash/wm/system_background_controller.cc#newcode36 ash/wm/system_background_controller.cc:36: ~HostContentLayerDelegate() {} virtual https://codereview.chromium.org/11273059/diff/7001/ash/wm/system_background_controller.cc#newcode92 ash/wm/system_background_controller.cc:92: default: nit: add ...
8 years, 1 month ago (2012-10-26 19:51:33 UTC) #2
Daniel Erat
https://codereview.chromium.org/11273059/diff/7001/ash/wm/system_background_controller.cc File ash/wm/system_background_controller.cc (right): https://codereview.chromium.org/11273059/diff/7001/ash/wm/system_background_controller.cc#newcode36 ash/wm/system_background_controller.cc:36: ~HostContentLayerDelegate() {} On 2012/10/26 19:51:33, sky wrote: > virtual ...
8 years, 1 month ago (2012-10-29 15:50:32 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/11273059/13029
8 years, 1 month ago (2012-10-29 17:18:03 UTC) #4
commit-bot: I haz the power
8 years, 1 month ago (2012-10-29 19:22:21 UTC) #5
Change committed as 164704

Powered by Google App Engine
This is Rietveld 408576698