summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2009-07-22 15:35:24 -0700
committerJack Palevich <jackpal@google.com>2009-07-22 15:35:24 -0700
commitb90d28cf9563701aff813b81cdd75d5e288ccc87 (patch)
tree50a4d908854d586b72d619f908087ac3ad5aa89d /services
parent7e263332e0c68f67868cb3245bf42f41e847d816 (diff)
downloadframeworks_base-b90d28cf9563701aff813b81cdd75d5e288ccc87.zip
frameworks_base-b90d28cf9563701aff813b81cdd75d5e288ccc87.tar.gz
frameworks_base-b90d28cf9563701aff813b81cdd75d5e288ccc87.tar.bz2
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.
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/am/ActivityManagerService.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java
index 8e4c897..81a715d 100644
--- a/services/java/com/android/server/am/ActivityManagerService.java
+++ b/services/java/com/android/server/am/ActivityManagerService.java
@@ -723,6 +723,11 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
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.
* For example, references to the commonly used services.
*/
@@ -1395,6 +1400,9 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
mUsageStatsService = new UsageStatsService( new File(
systemDir, "usagestats").toString());
+ GL_ES_VERSION = SystemProperties.getInt("ro.opengles.version",
+ ConfigurationInfo.GL_ES_VERSION_UNDEFINED);
+
mConfiguration.makeDefault();
mProcessStats.init();
@@ -11846,6 +11854,7 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
&& mConfiguration.keyboard != Configuration.KEYBOARD_NOKEYS) {
config.reqInputFeatures |= ConfigurationInfo.INPUT_FEATURE_HARD_KEYBOARD;
}
+ config.reqGlEsVersion = GL_ES_VERSION;
}
return config;
}