Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f798b39 authored by Orion Hodson's avatar Orion Hodson
Browse files

Remove unnecessary field lookups in getPointer

getNativeHandle fields are resolved in nativeClassInit.

Bug: 124338141
Test: m -j100
Change-Id: I637975f9835027ec87f0e76ca6528797efa06e5d
parent 8e95f0bf
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);