Don't load EGL driver always
EGL driver is preloaded only if HWUI renders with GL. Test: Ran several apps, passed CtsGraphics and CtsUiRendering Change-Id: Ib38d6f51a19a2ee3631c7d9c99283286c389e476
This commit is contained in:
@@ -408,12 +408,13 @@ bool RenderThread::isCurrent() {
|
||||
}
|
||||
|
||||
void RenderThread::preload() {
|
||||
std::thread eglInitThread([]() {
|
||||
//TODO: don't load EGL drivers for Vulkan, when HW bitmap uploader is refactored.
|
||||
eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
});
|
||||
eglInitThread.detach();
|
||||
if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaVulkan) {
|
||||
// EGL driver is always preloaded only if HWUI renders with GL.
|
||||
if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL) {
|
||||
std::thread eglInitThread([]() {
|
||||
eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
});
|
||||
eglInitThread.detach();
|
||||
} else {
|
||||
requireVkContext();
|
||||
}
|
||||
HardwareBitmapUploader::initialize();
|
||||
|
||||
Reference in New Issue
Block a user