Remove unnecessary field lookups in getPointer

getNativeHandle fields are resolved in nativeClassInit.

Bug: 124338141
Test: m -j100
Change-Id: I637975f9835027ec87f0e76ca6528797efa06e5d
This commit is contained in:
Orion Hodson
2019-02-25 08:37:03 +00:00
parent 8e95f0bfb9
commit 8f798b39ee

View File

@@ -171,8 +171,6 @@ getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *o
*array = NULL;
return reinterpret_cast<void*>(pointer);
}
eglimageGetHandleID = _env->GetMethodID(eglimageClass, "getNativeHandle", "()J");
eglsyncGetHandleID = _env->GetMethodID(eglsyncClass, "getNativeHandle", "()J");
*array = (jarray) _env->CallStaticObjectMethod(nioAccessClass,
getBaseArrayID, buffer);