Loading opengl/libs/EGL/egl_platform_entries.cpp +3 −1 Original line number Original line Diff line number Diff line Loading @@ -1453,7 +1453,9 @@ EGLBoolean eglSurfaceAttribImpl(EGLDisplay dpy, EGLSurface surface, EGLint attri if (attribute == EGL_TIMESTAMPS_ANDROID) { if (attribute == EGL_TIMESTAMPS_ANDROID) { if (!s->getNativeWindow()) { if (!s->getNativeWindow()) { return setError(EGL_BAD_SURFACE, (EGLBoolean)EGL_FALSE); // According to the spec, "if surface is not a window surface this has no // effect." return EGL_TRUE; } } int err = native_window_enable_frame_timestamps(s->getNativeWindow(), value != 0); int err = native_window_enable_frame_timestamps(s->getNativeWindow(), value != 0); return (err == 0) ? EGL_TRUE : setError(EGL_BAD_SURFACE, (EGLBoolean)EGL_FALSE); return (err == 0) ? EGL_TRUE : setError(EGL_BAD_SURFACE, (EGLBoolean)EGL_FALSE); Loading Loading
opengl/libs/EGL/egl_platform_entries.cpp +3 −1 Original line number Original line Diff line number Diff line Loading @@ -1453,7 +1453,9 @@ EGLBoolean eglSurfaceAttribImpl(EGLDisplay dpy, EGLSurface surface, EGLint attri if (attribute == EGL_TIMESTAMPS_ANDROID) { if (attribute == EGL_TIMESTAMPS_ANDROID) { if (!s->getNativeWindow()) { if (!s->getNativeWindow()) { return setError(EGL_BAD_SURFACE, (EGLBoolean)EGL_FALSE); // According to the spec, "if surface is not a window surface this has no // effect." return EGL_TRUE; } } int err = native_window_enable_frame_timestamps(s->getNativeWindow(), value != 0); int err = native_window_enable_frame_timestamps(s->getNativeWindow(), value != 0); return (err == 0) ? EGL_TRUE : setError(EGL_BAD_SURFACE, (EGLBoolean)EGL_FALSE); return (err == 0) ? EGL_TRUE : setError(EGL_BAD_SURFACE, (EGLBoolean)EGL_FALSE); Loading