|
11 | 11 | #include <utility> |
12 | 12 | #include <vector> |
13 | 13 |
|
14 | | -#if SHELL_ENABLE_GL |
15 | | -#include <EGL/egl.h> |
16 | | -#endif // SHELL_ENABLE_GL |
17 | | - |
18 | 14 | #include "assets/directory_asset_bundle.h" |
19 | 15 | #include "common/graphics/persistent_cache.h" |
20 | 16 | #include "flutter/flow/layers/backdrop_filter_layer.h" |
@@ -3959,11 +3955,6 @@ TEST_F(ShellTest, PictureToImageSync) { |
3959 | 3955 | ShellTestPlatformView::BackendType::kGLBackend // |
3960 | 3956 | ); |
3961 | 3957 |
|
3962 | | - AddNativeCallback("NativeOnBeforeToImageSync", |
3963 | | - CREATE_NATIVE_ENTRY([&](auto args) { |
3964 | | - // nop |
3965 | | - })); |
3966 | | - |
3967 | 3958 | fml::CountDownLatch latch(2); |
3968 | 3959 | AddNativeCallback("NotifyNative", CREATE_NATIVE_ENTRY([&](auto args) { |
3969 | 3960 | // Teardown and set up rasterizer again. |
@@ -4033,58 +4024,6 @@ TEST_F(ShellTest, PictureToImageSyncImpellerNoSurface) { |
4033 | 4024 | DestroyShell(std::move(shell)); |
4034 | 4025 | } |
4035 | 4026 |
|
4036 | | -#if SHELL_ENABLE_GL |
4037 | | -// This test uses the GL backend and refers to symbols in egl.h |
4038 | | -TEST_F(ShellTest, PictureToImageSyncWithTrampledContext) { |
4039 | | - // make it easier to trample the GL context by running on a single task |
4040 | | - // runner. |
4041 | | - ThreadHost thread_host("io.flutter.test." + GetCurrentTestName() + ".", |
4042 | | - ThreadHost::Type::Platform); |
4043 | | - auto task_runner = thread_host.platform_thread->GetTaskRunner(); |
4044 | | - TaskRunners task_runners("test", task_runner, task_runner, task_runner, |
4045 | | - task_runner); |
4046 | | - |
4047 | | - auto settings = CreateSettingsForFixture(); |
4048 | | - std::unique_ptr<Shell> shell = |
4049 | | - CreateShell(settings, // |
4050 | | - task_runners, // |
4051 | | - false, // |
4052 | | - nullptr, // |
4053 | | - false, // |
4054 | | - ShellTestPlatformView::BackendType::kGLBackend // |
4055 | | - ); |
4056 | | - |
4057 | | - AddNativeCallback( |
4058 | | - "NativeOnBeforeToImageSync", CREATE_NATIVE_ENTRY([&](auto args) { |
4059 | | - // Trample the GL context. If the rasterizer fails |
4060 | | - // to make the right one current again, test will |
4061 | | - // fail. |
4062 | | - ::eglMakeCurrent(::eglGetCurrentDisplay(), NULL, NULL, NULL); |
4063 | | - })); |
4064 | | - |
4065 | | - fml::CountDownLatch latch(2); |
4066 | | - AddNativeCallback("NotifyNative", CREATE_NATIVE_ENTRY([&](auto args) { |
4067 | | - // Teardown and set up rasterizer again. |
4068 | | - PlatformViewNotifyDestroyed(shell.get()); |
4069 | | - PlatformViewNotifyCreated(shell.get()); |
4070 | | - latch.CountDown(); |
4071 | | - })); |
4072 | | - |
4073 | | - ASSERT_NE(shell, nullptr); |
4074 | | - ASSERT_TRUE(shell->IsSetup()); |
4075 | | - auto configuration = RunConfiguration::InferFromSettings(settings); |
4076 | | - PlatformViewNotifyCreated(shell.get()); |
4077 | | - configuration.SetEntrypoint("toImageSync"); |
4078 | | - RunEngine(shell.get(), std::move(configuration)); |
4079 | | - PumpOneFrame(shell.get()); |
4080 | | - |
4081 | | - latch.Wait(); |
4082 | | - |
4083 | | - PlatformViewNotifyDestroyed(shell.get()); |
4084 | | - DestroyShell(std::move(shell), task_runners); |
4085 | | -} |
4086 | | -#endif // SHELL_ENABLE_GL |
4087 | | - |
4088 | 4027 | TEST_F(ShellTest, PluginUtilitiesCallbackHandleErrorHandling) { |
4089 | 4028 | auto settings = CreateSettingsForFixture(); |
4090 | 4029 | std::unique_ptr<Shell> shell = |
|
0 commit comments