From a3cb758f7952b5cce2dbdf35c746edbcd5038a84 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Wed, 28 Sep 2022 14:50:13 -0700 Subject: [PATCH] Revert egl presentation time (#36485) --- shell/common/rasterizer_unittests.cc | 4 ++++ shell/platform/android/android_egl_surface.cc | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/shell/common/rasterizer_unittests.cc b/shell/common/rasterizer_unittests.cc index 4ae9beb937396..ab10a9b6ea74d 100644 --- a/shell/common/rasterizer_unittests.cc +++ b/shell/common/rasterizer_unittests.cc @@ -915,6 +915,8 @@ TEST(RasterizerTest, TeardownNoSurface) { } TEST(RasterizerTest, presentationTimeSetWhenVsyncTargetInFuture) { + GTEST_SKIP() << "eglPresentationTime is disabled due to " + "https://github.com/flutter/flutter/issues/112503"; std::string test_name = ::testing::UnitTest::GetInstance()->current_test_info()->name(); ThreadHost thread_host("io.flutter.test." + test_name + ".", @@ -995,6 +997,8 @@ TEST(RasterizerTest, presentationTimeSetWhenVsyncTargetInFuture) { } TEST(RasterizerTest, presentationTimeNotSetWhenVsyncTargetInPast) { + GTEST_SKIP() << "eglPresentationTime is disabled due to " + "https://github.com/flutter/flutter/issues/112503"; std::string test_name = ::testing::UnitTest::GetInstance()->current_test_info()->name(); ThreadHost thread_host("io.flutter.test." + test_name + ".", diff --git a/shell/platform/android/android_egl_surface.cc b/shell/platform/android/android_egl_surface.cc index fd0f4567dd53e..fa1573a6e25cc 100644 --- a/shell/platform/android/android_egl_surface.cc +++ b/shell/platform/android/android_egl_surface.cc @@ -193,14 +193,6 @@ AndroidEGLSurface::AndroidEGLSurface(EGLSurface surface, damage_(std::make_unique()), presentation_time_proc_(nullptr) { damage_->init(display_, context); - - const char* extensions = eglQueryString(display, EGL_EXTENSIONS); - - if (HasExtension(extensions, "EGL_ANDROID_presentation_time")) { - presentation_time_proc_ = - reinterpret_cast( - eglGetProcAddress("eglPresentationTimeANDROID")); - } } AndroidEGLSurface::~AndroidEGLSurface() {