本文整理汇总了Java中android.opengl.EGLExt.eglPresentationTimeANDROID方法的典型用法代码示例。如果您正苦于以下问题:Java EGLExt.eglPresentationTimeANDROID方法的具体用法?Java EGLExt.eglPresentationTimeANDROID怎么用?Java EGLExt.eglPresentationTimeANDROID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.opengl.EGLExt
的用法示例。
在下文中一共展示了EGLExt.eglPresentationTimeANDROID方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setPresentationTime
import android.opengl.EGLExt; //导入方法依赖的package包/类
/**
* Sends the presentation time stamp to EGL.
* @param display an EGL display connection instance
* @param surface an EGL rendering surface
* @param nSecs time is expressed in nanoseconds.
*/
public static void setPresentationTime(@NonNull EGLDisplay display,
@NonNull EGLSurface surface, long nSecs) {
//noinspection StatementWithEmptyBody
if (!EGLExt.eglPresentationTimeANDROID(display, surface, nSecs)) {
logError();
throw new RuntimeException("Unable to set presentation time (" + nSecs +"ns)." +
getDisplayString(display) + "; " + getSurfaceString(surface));
} else {/*
logDebug("Set presentation time (" + nSecs +"ns)." +
getDisplayString(display) + "; " + getSurfaceString(surface));*/
}
}
示例2: swapBuffers
import android.opengl.EGLExt; //导入方法依赖的package包/类
@Override
public void swapBuffers(long timeStampNs) {
checkIsNotReleased();
if (eglSurface == EGL14.EGL_NO_SURFACE) {
throw new RuntimeException("No EGLSurface - can't swap buffers");
}
synchronized (EglBase.lock) {
// See
// https://android.googlesource.com/platform/frameworks/native/+/tools_r22.2/opengl/specs/EGL_ANDROID_presentation_time.txt
EGLExt.eglPresentationTimeANDROID(eglDisplay, eglSurface, timeStampNs);
EGL14.eglSwapBuffers(eglDisplay, eglSurface);
}
}
示例3: swapBuffers
import android.opengl.EGLExt; //导入方法依赖的package包/类
public void swapBuffers(long timeStampNs) {
checkIsNotReleased();
if (eglSurface == EGL14.EGL_NO_SURFACE) {
throw new RuntimeException("No EGLSurface - can't swap buffers");
}
synchronized (EglBase.lock) {
// See
// https://android.googlesource.com/platform/frameworks/native/+/tools_r22.2/opengl/specs/EGL_ANDROID_presentation_time.txt
EGLExt.eglPresentationTimeANDROID(eglDisplay, eglSurface, timeStampNs);
EGL14.eglSwapBuffers(eglDisplay, eglSurface);
}
}
示例4: swapBuffers
import android.opengl.EGLExt; //导入方法依赖的package包/类
@Override
public void swapBuffers(long timestampNs) {
checkIsNotReleased();
if (eglSurface == EGL14.EGL_NO_SURFACE) {
throw new RuntimeException("No EGLSurface - can't swap buffers");
}
synchronized (EglBase.lock) {
// See
// https://android.googlesource.com/platform/frameworks/native/+/tools_r22.2/opengl/specs/EGL_ANDROID_presentation_time.txt
if (timestampNs != -1) {
EGLExt.eglPresentationTimeANDROID(eglDisplay, eglSurface, timestampNs);
}
EGL14.eglSwapBuffers(eglDisplay, eglSurface);
}
}
示例5: setPresentationTime
import android.opengl.EGLExt; //导入方法依赖的package包/类
/**
* Sends the presentation time stamp to EGL.
*
* @param nsecs Timestamp, in nanoseconds.
*/
@Override
public void setPresentationTime(long nsecs) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2 && nsecs != 0) {
EGLExt.eglPresentationTimeANDROID(mEglDisplay, mEglSurface, nsecs);
}
}
示例6: swap
import android.opengl.EGLExt; //导入方法依赖的package包/类
private int swap(final EGLSurface surface, final long presentationTimeNs) {
// if (DEBUG) Log.v(TAG, "swap:");
EGLExt.eglPresentationTimeANDROID(mEglDisplay, surface, presentationTimeNs);
if (!EGL14.eglSwapBuffers(mEglDisplay, surface)) {
final int err = EGL14.eglGetError();
// if (DEBUG) Log.w(TAG, "swap:err=" + err);
return err;
}
return EGL14.EGL_SUCCESS;
}
示例7: setPresentationTime
import android.opengl.EGLExt; //导入方法依赖的package包/类
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
public void setPresentationTime(EGLSurface surface, long time){
EGLExt.eglPresentationTimeANDROID(mEGLDisplay,surface,time);
}
示例8: setPresentationTime
import android.opengl.EGLExt; //导入方法依赖的package包/类
void setPresentationTime(long nsecs) {
EGLExt.eglPresentationTimeANDROID(mEGLDisplay, mEGLSurface, nsecs);
}
示例9: setPresentationTime
import android.opengl.EGLExt; //导入方法依赖的package包/类
public void setPresentationTime(long nsecs) {
EGLExt.eglPresentationTimeANDROID(mEGLDisplay, mEGLSurface, nsecs);
}
示例10: setPresentationTime
import android.opengl.EGLExt; //导入方法依赖的package包/类
public void setPresentationTime(long nsecs) {
EGLExt.eglPresentationTimeANDROID(mEGLDisplay, mEGLSurface, nsecs);
}
示例11: setPresentationTime
import android.opengl.EGLExt; //导入方法依赖的package包/类
/**
* Sends the presentation time stamp to EGL. Time is expressed in nanoseconds.
*/
public void setPresentationTime(long nsecs) {
EGLExt.eglPresentationTimeANDROID(mEGLDisplay, mEGLSurface, nsecs);
}
示例12: setPresentationTime
import android.opengl.EGLExt; //导入方法依赖的package包/类
/**
* Sends the presentation time stamp to EGL. Time is expressed in nanoseconds.
*/
public void setPresentationTime(EGLSurface eglSurface, long nsecs) {
EGLExt.eglPresentationTimeANDROID(mEGLDisplay, eglSurface, nsecs);
}
示例13: setPresentationTime
import android.opengl.EGLExt; //导入方法依赖的package包/类
public void setPresentationTime(EGLSurface eglSurface, long nsecs) {
EGLExt.eglPresentationTimeANDROID(mEGLDisplay, eglSurface, nsecs);
}
示例14: setPresentationTime
import android.opengl.EGLExt; //导入方法依赖的package包/类
/**
* Sends the presentation time stamp to EGL. Time is expressed in nanoseconds.
*/
public void setPresentationTime(long nsecs) {
EGLExt.eglPresentationTimeANDROID(eglDisplay, eglSurface, nsecs);
GlUtil.checkEglError("eglPresentationTimeANDROID");
}
示例15: setPresentationTime
import android.opengl.EGLExt; //导入方法依赖的package包/类
public void setPresentationTime(long nsecs, EglSurface eglSurface) {
EGLExt.eglPresentationTimeANDROID(mEglDisplay, eglSurface.geSurface(), nsecs);
}