summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Robert Carr <racarr@google.com> 2021-09-28 16:53:03 -0700
committer Robert Carr <racarr@google.com> 2021-10-01 14:49:53 -0700
commitccab42456bc52de0db8f6c4e5fcbd82772229823 (patch)
tree108b3f9143ed535ba6fa3961f0fed10325340e1e /services/surfaceflinger/RegionSamplingThread.cpp
parentd30f78c3e6341e0130770a2014ab81c6862508e9 (diff)
Release buffers early after GL comp
When client comped a layers buffers are never really acquired/released by HWC, since they are already composited by the time they are sent there. This means we don't need to wait on the release fence from the next frame in order to release the buffer. As soon as we receive a new buffer we can directly release with the previous GL comp fence. We accomplish this by plumbing the GL comp fence down to BufferStateLayer, and using it for early release from setBuffer when applicable. Bug: 200284594 Test: Existing tests pass Change-Id: Ib76a8a02efd85ef2925d4fb32c3f096c55d383e1
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions