Skip to content

Commit

Permalink
Revert egl presentation time (#36485) (#36491)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams authored Sep 29, 2022
1 parent f23af29 commit c08d7d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 4 additions & 0 deletions shell/common/rasterizer_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 + ".",
Expand Down Expand Up @@ -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 + ".",
Expand Down
8 changes: 0 additions & 8 deletions shell/platform/android/android_egl_surface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,6 @@ AndroidEGLSurface::AndroidEGLSurface(EGLSurface surface,
damage_(std::make_unique<AndroidEGLSurfaceDamage>()),
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<PFNEGLPRESENTATIONTIMEANDROIDPROC>(
eglGetProcAddress("eglPresentationTimeANDROID"));
}
}

AndroidEGLSurface::~AndroidEGLSurface() {
Expand Down

0 comments on commit c08d7d5

Please sign in to comment.