summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorMatthew Bouyack <mbouyack@google.com>2017-05-12 12:49:32 -0700
committerMatthew Bouyack <mbouyack@google.com>2017-05-12 13:56:21 -0700
commit4de4ee3cb3ccb3bcf4ea507f7bd6e02ab29aeb75 (patch)
treeb9baced46475cfbe4d0c16d378032d6121a806a4 /opengl/tests/gl_basic/gl_basic.cpp
parent46d455b3abaa2c7a54c8d4e3b3cd5a03fe59ac2f (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