Added Java JNI for shared memory texture.