Revert "Cleanup Bitmap JNI"

This reverts commit b2915245b7.

Change-Id: Idd7d7f33eec4ea5024c83de6b10d3d1a6ab2b17a
This commit is contained in:
Chad Jones
2015-03-05 19:34:26 +00:00
parent b2915245b7
commit c02977e3bb
21 changed files with 161 additions and 113 deletions

View File

@ -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,