diff options
author | Matthew Bouyack <mbouyack@google.com> | 2017-05-12 12:49:32 -0700 |
---|---|---|
committer | Matthew Bouyack <mbouyack@google.com> | 2017-05-12 13:56:21 -0700 |
commit | 4de4ee3cb3ccb3bcf4ea507f7bd6e02ab29aeb75 (patch) | |
tree | b9baced46475cfbe4d0c16d378032d6121a806a4 /opengl/tests/gl_basic/gl_basic.cpp | |
parent | 46d455b3abaa2c7a54c8d4e3b3cd5a03fe59ac2f (diff) |
Fixes vsync behavior in power mode transitions.
Calling EventThread::onScreenAcquired enables hardware vsync and
calling EventThread::onScreenReleased disables hardware vsync.
The power modes 'NORMAL' and 'DOZE' should have hardware vsync
enabled while power modes 'OFF' and 'DOZE_SUSPEND' should have
hardware vsync disabled.
This change correctly handles the transitions from 'OFF' to
'DOZE_SUSPEND' and from either 'OFF' or 'DOZE_SUSPEND' to
'NORMAL'. Previously these cases were handled incorrectly.
Note that redundant calls to onScreenAcquired or onScreenReleased
are safe.
Fixes bug: 38232221
Change-Id: I7b00f97a67b157366364b3d26fe94533da07c263
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions