summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2022-02-24 14:07:11 -0800
committer chaviw <chaviw@google.com> 2022-04-04 17:44:35 -0500
commita314038bf9b507517e75aeb346841e391927bc4e (patch)
treeb6ff6d1d63010cc5bdfe12c9b01d5243d1790878 /libs/gui/BLASTBufferQueue.cpp
parent70379c81822eefb7cb7f7fc7e42f1ee976b90f33 (diff)
SF: Predict HWC composition strategy
Asynchronously run ValidateDisplay to determine client composition strategy. If we can predict that the composition strategy will not change from frame to frame (for example by looking at whether the geometry of the layers is changing), the hwc call is run asynchronously with the gpu composition. If the result of the call is incorrectly predicted, the gpu composition is rerun. ValidateDisplay can take multiple milliseconds to complete and by making it non-blocking in cases where we can predict the strategy chosen by the hardware, we can jump start the client composition and shave valuable milliseconds from the frame time. This feature is disabled by default. Test: perfetto traces Bug: 220031739 Change-Id: Ia5f04f447455bba0bbebbe7642d8ade8313f381a
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions