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

Issue 10146016: Fix wallpaper fade animation flashing problem. (Closed)

Created:
8 years, 8 months ago by bshe
Modified:
8 years, 8 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Fix wallpaper fade animation flashing problem. This CL fix the wallpaper fade animation problem. The problem was when user switched to a new wallpaper, it seems there is a white flashing before new wallpaper fade in. The reason was I started the hide animation before loading new wallpaper. And it took around 300ms to load while the animation finished around 200ms. So there is 100ms period where the background color (white) showed up. I delayed the hide animation, but then another problem showed up. Now the show and hide animation happened at the same time. At some point in the animation, the background color will have 25% opacity and it also cause a flashing. To fix all, this CL only animate on Show new wallpaper and delete the old widget after the Show animation completed. BUG=118651 TEST=Change wallpaper in chromeos, and verify if the animation is smooth. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133468

Patch Set 1 #

Total comments: 7

Patch Set 2 : nits #

Total comments: 1

Patch Set 3 : More nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -10 lines) Patch
M ash/desktop_background/desktop_background_controller.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M ash/desktop_background/desktop_background_view.cc View 1 2 3 chunks +38 lines, -3 lines 0 comments Download
M ash/shell_factory.h View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
bshe
+ben, flackr Could you take a look please? Thanks! This CL fix the wallpaper fade ...
8 years, 8 months ago (2012-04-20 18:57:12 UTC) #1
flackr
https://chromiumcodereview.appspot.com/10146016/diff/1/ash/desktop_background/desktop_background_view.cc File ash/desktop_background/desktop_background_view.cc (right): https://chromiumcodereview.appspot.com/10146016/diff/1/ash/desktop_background/desktop_background_view.cc#newcode31 ash/desktop_background/desktop_background_view.cc:31: explicit ShowWallpaperAnimationObserver(views::Widget* desktop_widget) : nit: : goes on next ...
8 years, 8 months ago (2012-04-20 19:04:51 UTC) #2
bshe
Done. Thanks! https://chromiumcodereview.appspot.com/10146016/diff/1/ash/desktop_background/desktop_background_view.cc File ash/desktop_background/desktop_background_view.cc (right): https://chromiumcodereview.appspot.com/10146016/diff/1/ash/desktop_background/desktop_background_view.cc#newcode31 ash/desktop_background/desktop_background_view.cc:31: explicit ShowWallpaperAnimationObserver(views::Widget* desktop_widget) : On 2012/04/20 19:04:51, ...
8 years, 8 months ago (2012-04-20 19:13:58 UTC) #3
flackr
lgtm with nit. https://chromiumcodereview.appspot.com/10146016/diff/4001/ash/desktop_background/desktop_background_view.cc File ash/desktop_background/desktop_background_view.cc (right): https://chromiumcodereview.appspot.com/10146016/diff/4001/ash/desktop_background/desktop_background_view.cc#newcode145 ash/desktop_background/desktop_background_view.cc:145: ash::ANIMATE_SHOW); On 2012/04/20 19:04:51, flackr wrote: ...
8 years, 8 months ago (2012-04-20 19:17:11 UTC) #4
Ben Goodger (Google)
lgtm
8 years, 8 months ago (2012-04-23 15:38:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/10146016/6002
8 years, 8 months ago (2012-04-23 15:51:32 UTC) #6
commit-bot: I haz the power
8 years, 8 months ago (2012-04-23 17:29:36 UTC) #7
Change committed as 133468

Powered by Google App Engine
This is Rietveld 408576698