summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorChad Jones <chadj@google.com>2015-03-05 19:34:26 +0000
committerChad Jones <chadj@google.com>2015-03-05 19:34:26 +0000
commitc02977e3bbfaaedcb1b1d67e1692becc7dddd59b (patch)
tree24564767d59138f5c039efefe4744ee35c23ac7e /opengl
parentb2915245b74b3b5541b123e38403f8e26426b4b7 (diff)
downloadframeworks_base-c02977e3bbfaaedcb1b1d67e1692becc7dddd59b.zip
frameworks_base-c02977e3bbfaaedcb1b1d67e1692becc7dddd59b.tar.gz
frameworks_base-c02977e3bbfaaedcb1b1d67e1692becc7dddd59b.tar.bz2
Revert "Cleanup Bitmap JNI"
This reverts commit b2915245b74b3b5541b123e38403f8e26426b4b7. Change-Id: Idd7d7f33eec4ea5024c83de6b10d3d1a6ab2b17a
Diffstat (limited to 'opengl')
-rw-r--r--opengl/java/android/opengl/GLUtils.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/opengl/java/android/opengl/GLUtils.java b/opengl/java/android/opengl/GLUtils.java
index 4d890c9..a9d33dd 100644
--- a/opengl/java/android/opengl/GLUtils.java
+++ b/opengl/java/android/opengl/GLUtils.java
@@ -29,6 +29,14 @@ import javax.microedition.khronos.egl.EGL11;
public final class GLUtils {
+ /*
+ * We use a class initializer to allow the native code to cache some
+ * field offsets.
+ */
+ static {
+ nativeClassInit();
+ }
+
private GLUtils() {
}
@@ -267,6 +275,8 @@ public final class GLUtils {
*/
native public static void setTracingLevel(int level);
+ native private static void nativeClassInit();
+
native private static int native_getInternalFormat(Bitmap bitmap);
native private static int native_getType(Bitmap bitmap);
native private static int native_texImage2D(int target, int level, int internalformat,