summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Huihong Luo <huisinro@google.com> 2023-03-23 17:29:52 +0000
committer Huihong Luo <huisinro@google.com> 2023-08-02 17:31:59 +0000
commit568661186f0ffddf98a18a1bf53af242776d1e2b (patch)
tree82b2a7bcc372120b2e43f00b0dcba3716a24d47a /libs/gui/ConsumerBase.cpp
parent4e876bf7d2378fbf6cec9117d50a3fd51ad99589 (diff)
Generate texture pool asynchronously
This improves performance by moving allocateHelper to a different thread, which is launched early so that the allocation is ready when it is needed. In addition, each display will only need at most one additional texture per frame, so replace the idea of a minimum pool with making sure there is either at least one texture in the pool or a future which will generate one. Bug: 256184546 Test: atest libcompositionengine_test Change-Id: Icb92a85c07b9f2911d1365aa9bbc8d0750a8c116 Merged-In: Icb92a85c07b9f2911d1365aa9bbc8d0750a8c116
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions