summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2017-01-19 17:59:08 -0800
committerJesse Hall <jessehall@google.com>2017-01-20 13:50:41 -0800
commit5fa7fb1d9f2a5b078405c5a63fd7ad05115d71d6 (patch)
tree16c2997eedba8fad4ee193bf389a3c3c9e2c212b /tools/aapt2/java/JavaClassGenerator_test.cpp
parentfc6771a9a6d6d5d36ffbd6be5259b2fb686147d9 (diff)
Load EGL early in Activity launch, instead of in Zygote
Preloading EGL in Zygote was originally a memory footprint optimization, but it turns out to be an important app startup time optimization as well. Preloading EGL in Zygote is incompatible with updatable graphics drivers, but we don't want to do it on-demand as part of drawing the first frame either, since that increases first-frame latency unacceptably. This change removes Zygote preload, and instead loads EGL on a low-priority background thread immediately after choosing which graphics driver to use. This means it is usually done well before drawing the first frame, without significantly disrupting other activity launch work. Test: observe systrace of Calculator launch on bullhead Bug: 34404021 Change-Id: I887aa09bd35b088b16f53a89838a0c7c98f15761
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions