Decouple Game Driver from preloading graphics driver
Previously, when the Game Driver package name is set, graphics driver preloading is automatically disabled. Now we'd like to decouple the relation here. So Game Driver could still work no matter graphics driver is preloaded in Zygote or not. Bug: 134526352 Test: build, flash and boot. Change-Id: Id720cc11e3365423dd9b984b7d30a2dbeecb6116
This commit is contained in:
@@ -87,7 +87,6 @@ public class ZygoteInit {
|
||||
|
||||
private static final String PROPERTY_DISABLE_GRAPHICS_DRIVER_PRELOADING =
|
||||
"ro.zygote.disable_gl_preload";
|
||||
private static final String PROPERTY_GFX_DRIVER = "ro.gfx.driver.0";
|
||||
|
||||
private static final int LOG_BOOT_PROGRESS_PRELOAD_START = 3020;
|
||||
private static final int LOG_BOOT_PROGRESS_PRELOAD_END = 3030;
|
||||
@@ -203,9 +202,7 @@ public class ZygoteInit {
|
||||
static native void nativePreloadGraphicsDriver();
|
||||
|
||||
private static void maybePreloadGraphicsDriver() {
|
||||
String driverPackageName = SystemProperties.get(PROPERTY_GFX_DRIVER);
|
||||
if (!SystemProperties.getBoolean(PROPERTY_DISABLE_GRAPHICS_DRIVER_PRELOADING, false)
|
||||
&& (driverPackageName == null || driverPackageName.isEmpty())) {
|
||||
if (!SystemProperties.getBoolean(PROPERTY_DISABLE_GRAPHICS_DRIVER_PRELOADING, false)) {
|
||||
nativePreloadGraphicsDriver();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user