summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorMike Stroyan <stroyan@google.com>2017-04-20 12:10:48 -0600
committerMike Stroyan <stroyan@google.com>2017-04-21 08:35:30 -0600
commit0cd7619bce422d46a5f2c45ca97734ae467a1b01 (patch)
tree13505e6bd5702430e77a34d668079d820a2cfcc9 /opengl/tests/gl_basic/gl_basic.cpp
parent84a0b9238af5c138331193bf9cba55fed1eab618 (diff)
Defer surfaceflinger composition until data latch
If layer data is not yet ready, latchBuffer will return an empty region. SurfaceFlinger::handlePageFlip will now check if any layer has a queued frame which succeeded in latching data. If no new frame is latched, handlePageFlip will return false. That will defer refresh until the next vsync. That reduces HWC and GPU load, improving framerates. It prevents dEQP tests from timing out on some devices. Test: dEQP-VK.wsi.android.incremental_present.scale_down.fifo.reference Bug: 37439915 Change-Id: Id46c82f79953f3a147af77bb0e8e81a395c606b3
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions