Get rid of the huge delay in background resize during rotation
commit7a1ba5ffc2e68bafbeefc80a76b71f6221601712
authorafakhry <afakhry@chromium.org>
Tue, 12 May 2015 22:19:01 +0000 (12 15:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 12 May 2015 22:19:11 +0000 (12 22:19 +0000)
tree1cb38b6c149c151a0f1a0fc8c6e070579082a89a
parent355e3f1944627652131a7dc60bf1a92fd4c979ad
Get rid of the huge delay in background resize during rotation

The delay to start updating the wallpaper after rotating the screen used
to be 2 seconds which was also accompanied by unnecessary clearing of
the wallpaper cache resulting in an ugly visual effect.

Now we reduced the delay to only 100 ms and we only clear the cache when
we add another display.

BUG=359654
TEST=manual

Review URL: https://codereview.chromium.org/1131243006

Cr-Commit-Position: refs/heads/master@{#329507}
ash/desktop_background/desktop_background_controller.cc
ash/desktop_background/desktop_background_controller.h