summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Huihong Luo <huisinro@google.com> 2023-03-23 17:29:52 +0000
committer Leon Scroggins <scroggo@google.com> 2023-07-24 19:14:06 +0000
commitbfcc610254119b6a61548357598aa383b06966b1 (patch)
tree64f03eda7acf9a77db1ec42fcb75b93fbfe50ca2 /libs/ultrahdr/jpegencoderhelper.cpp
parent206cc88d1c0e9bb7a4ab94535ae09e094485b8aa (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
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions