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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user