summaryrefslogtreecommitdiffstats
path: root/opengl/java/android
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2009-07-22 15:22:59 -0700
committerJack Palevich <jackpal@google.com>2009-07-22 15:22:59 -0700
commit7e263332e0c68f67868cb3245bf42f41e847d816 (patch)
tree52b0cff91b2cad4684c1367f8ca874bc1be7df68 /opengl/java/android
parentef6b66cbbbe7ae8ee0450cbbaae4194b069679a1 (diff)
downloadframeworks_base-7e263332e0c68f67868cb3245bf42f41e847d816.zip
frameworks_base-7e263332e0c68f67868cb3245bf42f41e847d816.tar.gz
frameworks_base-7e263332e0c68f67868cb3245bf42f41e847d816.tar.bz2
Remove recently-added android.opengl.Version API
There's another already-existing way of obtaining this information, the ConfigurationInfo.reqGlEsVersion field returned from ActivityManager.getDeviceConfigurationInfo.
Diffstat (limited to 'opengl/java/android')
-rw-r--r--opengl/java/android/opengl/Version.java47
1 files changed, 0 insertions, 47 deletions
diff --git a/opengl/java/android/opengl/Version.java b/opengl/java/android/opengl/Version.java
deleted file mode 100644
index 6e89d7e..0000000
--- a/opengl/java/android/opengl/Version.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package android.opengl;
-
-import android.os.SystemProperties;
-
-public final class Version {
- /**
- * Return the highest OpenGL ES API level supported by the current device.
- * <p>
- * A device that supports a given API level must also support
- * numerically smaller API levels.
- * <p>
- * A device that supports a given API level may not necessarily
- * support every feature of that API level. API-specific techniques may
- * be used to determine whether specific features are supported.
- *
- * @return the highest OpenGL ES API level supported by the current device.
- */
- public static int getOpenGLESVersion() {
- return SystemProperties.getInt("ro.opengles.version", OPENGLES_11);
- }
-
- /**
- * The version number for OpenGL ES 1.1.
- */
- public final static int OPENGLES_11 = 11;
-
- /**
- * The version number for OpenGL ES 2.0.
- */
- public final static int OPENGLES_20 = 20;
-}