diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-10-07 14:54:17 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-10-07 14:54:17 -0700 |
commit | 8b9cf1c8000eb581457713a5c0ce41c59f90c353 (patch) | |
tree | 3ff369a13efd5932b993bbc76098362e84e761cb /services/java/com/android/server/power/ScreenOnBlocker.java | |
parent | 138f272bfcd45f233abfd94faf4aabaa5d01b90b (diff) | |
download | frameworks_base-8b9cf1c8000eb581457713a5c0ce41c59f90c353.zip frameworks_base-8b9cf1c8000eb581457713a5c0ce41c59f90c353.tar.gz frameworks_base-8b9cf1c8000eb581457713a5c0ce41c59f90c353.tar.bz2 |
Reduce screen on latency, eliminate flashes.
Always use the ElectronBeam now, even when we are only animating
the backlight so that we will have a black surface remaining
on the screen after the screen turns off.
When turning on the screen, keep the black surface showing until
we unblock screen on then dismiss it as usual.
This change eliminates the flashing of old display content when
the screen is turned on. It also helps to conceal some of the
latency of turning the screen on. We always turn the screen on
immediately (even when screen on has nominally been blocked) and
rely on the black surface to hide the screen contents until the
last moment. Dismissing the black surface is practically
instantaneous compared to turning the screen on.
Bug: 7299370
Bug: 7139924
Change-Id: I57d13287acd05bd0a48811095bb02dc7bc7cbeb6
Diffstat (limited to 'services/java/com/android/server/power/ScreenOnBlocker.java')
-rw-r--r-- | services/java/com/android/server/power/ScreenOnBlocker.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/power/ScreenOnBlocker.java b/services/java/com/android/server/power/ScreenOnBlocker.java index 2bf0bcf..dbbbc6d 100644 --- a/services/java/com/android/server/power/ScreenOnBlocker.java +++ b/services/java/com/android/server/power/ScreenOnBlocker.java @@ -18,7 +18,7 @@ package com.android.server.power; /** * Low-level screen on blocker mechanism which is used to keep the screen off - * until the window manager is ready to show new content. + * or the contents of the screen hidden until the window manager is ready to show new content. */ interface ScreenOnBlocker { /** |