bool NVEventSwapBuffersEGL() { if (!s_SwapBuffersEGL.CallBoolean()) return false; RESET_PROFILING(); return true; }
void NVEventEGLSwapBuffers() { JNIEnv* jniEnv = NVThreadGetCurrentJNIEnv(); PERFBLURB("swap JNI"); if (!jniEnv || !s_globalThiz) { __android_log_print(ANDROID_LOG_DEBUG, MODULE, "Error: No valid JNI env in SwapBuffers"); } else if (!jniEnv->CallBooleanMethod(s_globalThiz, s_swap)) { __android_log_print(ANDROID_LOG_DEBUG, MODULE, "Error: SwapBuffers failed"); } RESET_PROFILING(); }