diff options
author | Andy McFadden <fadden@android.com> | 2013-08-01 13:37:42 -0700 |
---|---|---|
committer | Andy McFadden <fadden@android.com> | 2013-08-01 15:58:08 -0700 |
commit | 14fab7dd794cd6bf29e6425340683c6221062b3c (patch) | |
tree | b8dac9c7ca47ea21852711cb3af0dfad1e343e9e /opengl/libs/EGL/eglApi.cpp | |
parent | 8776c34ca2e6cc92c453f5a83e11bcb67b0d5aff (diff) | |
download | frameworks_native-14fab7dd794cd6bf29e6425340683c6221062b3c.zip frameworks_native-14fab7dd794cd6bf29e6425340683c6221062b3c.tar.gz frameworks_native-14fab7dd794cd6bf29e6425340683c6221062b3c.tar.bz2 |
Drop frames based on presentation timestamp
If there are two or more buffers pending that are ready for
immediate presentation, drop all but the last one.
Any code that didn't explicitly specify timestamps for buffers
was using the default value (auto-generated "now"). As a result,
surfaceflinger would drop frames whenever more than one buffer
was queued. We now use zero as the auto-generated timestamp,
and we don't set the timestamp in eglBeginFrame().
Change-Id: I187f42d33de227cd3411ff0dcd3b9ce1961457eb
Diffstat (limited to 'opengl/libs/EGL/eglApi.cpp')
-rw-r--r-- | opengl/libs/EGL/eglApi.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp index 6c285d3..6dfd306 100644 --- a/opengl/libs/EGL/eglApi.cpp +++ b/opengl/libs/EGL/eglApi.cpp @@ -499,11 +499,6 @@ void EGLAPI eglBeginFrame(EGLDisplay dpy, EGLSurface surface) { setError(EGL_BAD_SURFACE, EGL_FALSE); return; } - - int64_t timestamp = systemTime(SYSTEM_TIME_MONOTONIC); - - egl_surface_t const * const s = get_surface(surface); - native_window_set_buffers_timestamp(s->win.get(), timestamp); } // ---------------------------------------------------------------------------- |