Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dad7bd70 authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Load OpenGL drivers libraries in Zygote"

parents fa983457 74c69122
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import static libcore.io.OsConstants.S_IRWXO;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.net.LocalServerSocket;
import android.opengl.EGL14;
import android.os.Debug;
import android.os.Process;
import android.os.SystemClock;
@@ -227,6 +228,11 @@ public class ZygoteInit {
    static void preload() {
        preloadClasses();
        preloadResources();
        preloadOpenGL();
    }

    private static void preloadOpenGL() {
        EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY);
    }

    /**