mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Revert egl presentation time (flutter/engine#36485)
This commit is contained in:
parent
5b36e44eaf
commit
463c3d8cba
@ -958,6 +958,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 + ".",
|
||||
@ -1042,6 +1044,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 + ".",
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user