summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2017-05-23 16:55:08 -0700
committerJesse Hall <jessehall@google.com>2017-05-23 17:05:53 -0700
commitc37984f12227f991c3cea6594a2450eea364a485 (patch)
tree7239c8057f26563ca9c78b07955db313ff350ba1 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent317fa5a92a6088ee2c3ce5e3895560439049664f (diff)
Init EGL only for HW-accelerated Activities
Most processes might end up using EGL, but most don't except for Activities with HW-accelerated UI. And for other cases, the startup latency of initializing EGL on-demand isn't as important. So this change only tries to early-initialize EGL for HWUI Activities. It also fixes a logic problem that may or not have been an actual bug: previously, we only chose a graphics driver if we successfully set up shader cache directories, even though these are mostly unrelated. Now we always choose a graphics driver, except in isolated processes that can't use graphics. Bug: 38215658 Test: systrace framework start and Clock launch, check eglGetDisplay is called by RenderThread in non-HWUI-Activity cases, and is called on a separate thread before RenderThread needs it for HWUI-Activity cases. Change-Id: I101e5578a9d7c508d232d0edeed7ceff9d8a74d6
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions