Merge lp:~3v1n0/unity/switcher-no-lowgfx-animation into lp:unity

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Andrea Azzarone
Approved revision: no longer in the source branch.
Merged at revision: 4150
Proposed branch: lp:~3v1n0/unity/switcher-no-lowgfx-animation
Merge into: lp:unity
Diff against target: 26 lines (+1/-2)
1 file modified
launcher/SwitcherView.cpp (+1/-2)
To merge this branch: bzr merge lp:~3v1n0/unity/switcher-no-lowgfx-animation
Reviewer Review Type Date Requested Status
Andrea Azzarone (community) Approve
PS Jenkins bot continuous-integration Pending
Review via email: mp+299979@code.launchpad.net

Commit message

SwitcherView: always disable animations when in lowgfx mode

To post a comment you must log in.
Revision history for this message
Andrea Azzarone (azzar1) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'launcher/SwitcherView.cpp'
2--- launcher/SwitcherView.cpp 2016-07-04 12:35:12 +0000
3+++ launcher/SwitcherView.cpp 2016-07-13 17:28:10 +0000
4@@ -215,6 +215,7 @@
5
6 void SwitcherView::StartAnimation()
7 {
8+ animation_.SetDuration(Settings::Instance().low_gfx() ? 0 : animation_length);
9 animation::Start(animation_, animation::Direction::FORWARD);
10 }
11
12@@ -249,7 +250,6 @@
13 render_targets_.clear();
14 }
15
16- animation_.SetDuration(Settings::Instance().low_gfx() ? 0 : animation_length);
17 SaveLast();
18 }
19
20@@ -260,7 +260,6 @@
21
22 delta_tracker_.ResetState();
23
24- animation_.SetDuration(animation_length);
25 SaveLast();
26 }
27