OSDN Git Service

Fix flickering when switching display power modes
authorLucas Dupin <dupin@google.com>
Mon, 26 Mar 2018 20:32:16 +0000 (13:32 -0700)
committerLucas Dupin <dupin@google.com>
Mon, 26 Mar 2018 20:32:16 +0000 (13:32 -0700)
commit0791d97e117f4ebbb960852c1c5aa6c26de089b0
treee3155c086dc1e385d1c7be8d9a0dfc5168f7560f
parent0aeb37438096068c2209c3ac4d2397f7bb6a7bc2
Fix flickering when switching display power modes

So far we've been Waiting for the next frame but it doesn't
mean that it will be visible on the screen.

We're usually rendering with 2 buffers and it's possible that
we'll switch the display power mode before anything has hit
the display.

Increased the timeout for now until we have a better alternative.

Change-Id: I63afc8a9139a4ccbba4f16f5569717e22217da9a
Fixes: 72527083
Test: manual
Test: packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java