diff options
author | John Reck <jreck@google.com> | 2018-04-18 16:13:31 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2018-04-18 16:18:17 -0700 |
commit | 1a4a981199860f0f9c4738dc426d8349e16b0dd5 (patch) | |
tree | 3581ca62e7f6ad57d8728332b11937869c0f88fa /libs/hwui/renderthread/EglManager.cpp | |
parent | d4e5725d457cf64efd06cfdae66c2ba68441fdac (diff) |
Revert "Add support for render-ahead"
This reverts commit ec100976e0655acaa204c8800dfb83dadae20cc8.
Reason for revert: b/77971494
Test: hwuiunit passes
Change-Id: I2e7dc719d2df1dd939b275496c0edc38e458c434
Diffstat (limited to 'libs/hwui/renderthread/EglManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/EglManager.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libs/hwui/renderthread/EglManager.cpp b/libs/hwui/renderthread/EglManager.cpp index 3a49bebe7936..6e239e357cf6 100644 --- a/libs/hwui/renderthread/EglManager.cpp +++ b/libs/hwui/renderthread/EglManager.cpp @@ -83,7 +83,6 @@ static struct { bool glColorSpace = false; bool scRGB = false; bool contextPriority = false; - bool presentTime = false; } EglExtensions; EglManager::EglManager(RenderThread& thread) @@ -171,7 +170,6 @@ void EglManager::initExtensions() { EglExtensions.scRGB = extensions.has("EGL_EXT_gl_colorspace_scrgb"); #endif EglExtensions.contextPriority = extensions.has("EGL_IMG_context_priority"); - EglExtensions.presentTime = extensions.has("EGL_ANDROID_presentation_time"); } bool EglManager::hasEglContext() { @@ -244,7 +242,7 @@ void EglManager::loadConfigs() { &numConfigs) || numConfigs != 1) { ALOGE("Device claims wide gamut support, cannot find matching config, error = %s", - eglErrorString()); + eglErrorString()); EglExtensions.pixelFormatFloat = false; } } @@ -439,13 +437,6 @@ bool EglManager::swapBuffers(const Frame& frame, const SkRect& screenDirty) { fence(); } - if (EglExtensions.presentTime && Properties::usePresentTime) { - if (!eglPresentationTimeANDROID(mEglDisplay, frame.mSurface, frame.mPresentTime)) { - LOG_ALWAYS_FATAL("Failed to set presentation time on surface %p, error=%s", - (void*)frame.mSurface, eglErrorString()); - } - } - EGLint rects[4]; frame.map(screenDirty, rects); eglSwapBuffersWithDamageKHR(mEglDisplay, frame.mSurface, rects, screenDirty.isEmpty() ? 0 : 1); |