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

Commit b90d28cf authored by Jack Palevich's avatar Jack Palevich
Browse files

Implement the device ConfigurationInfo.reqGlEsVersion field.

This was previously hard-coded to 0. Now set to the value of the
"ro.opengles.version" system property. The default value is
ConfigurationInfo.GL_ES_VERSION_UNDEFINED.
parent 7e263332
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -722,6 +722,11 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
     */
     */
    Configuration mConfiguration = new Configuration();
    Configuration mConfiguration = new Configuration();
    /**
     * Hardware-reported OpenGLES version.
     */
    final int GL_ES_VERSION;
    /**
    /**
     * List of initialization arguments to pass to all processes when binding applications to them.
     * List of initialization arguments to pass to all processes when binding applications to them.
     * For example, references to the commonly used services.
     * For example, references to the commonly used services.
@@ -1395,6 +1400,9 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
        mUsageStatsService = new UsageStatsService( new File(
        mUsageStatsService = new UsageStatsService( new File(
                systemDir, "usagestats").toString());
                systemDir, "usagestats").toString());
        GL_ES_VERSION = SystemProperties.getInt("ro.opengles.version",
            ConfigurationInfo.GL_ES_VERSION_UNDEFINED);
        mConfiguration.makeDefault();
        mConfiguration.makeDefault();
        mProcessStats.init();
        mProcessStats.init();
        
        
@@ -11846,6 +11854,7 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
                    && mConfiguration.keyboard != Configuration.KEYBOARD_NOKEYS) {
                    && mConfiguration.keyboard != Configuration.KEYBOARD_NOKEYS) {
                config.reqInputFeatures |= ConfigurationInfo.INPUT_FEATURE_HARD_KEYBOARD;
                config.reqInputFeatures |= ConfigurationInfo.INPUT_FEATURE_HARD_KEYBOARD;
            }
            }
            config.reqGlEsVersion = GL_ES_VERSION;
        }
        }
        return config;
        return config;
    }
    }