#include <shell_test_platform_view.h>
Definition at line 46 of file shell_test_platform_view.h.
◆ ShellTestPlatformViewBuilder()
flutter::testing::ShellTestPlatformViewBuilder::ShellTestPlatformViewBuilder |
( |
Config |
config | ) |
|
|
explicit |
◆ ~ShellTestPlatformViewBuilder()
flutter::testing::ShellTestPlatformViewBuilder::~ShellTestPlatformViewBuilder |
( |
| ) |
|
|
default |
◆ operator()()
std::unique_ptr< PlatformView > flutter::testing::ShellTestPlatformViewBuilder::operator() |
( |
Shell & |
shell | ) |
|
Definition at line 63 of file shell_test_platform_view.cc.
64 {
65 const TaskRunners& task_runners =
shell.GetTaskRunners();
66 const auto vsync_clock = std::make_shared<ShellTestVsyncClock>();
68 simulate_vsync =
70 if (simulate_vsync) {
71 return static_cast<std::unique_ptr<VsyncWaiter>>(
72 std::make_unique<ShellTestVsyncWaiter>(task_runners, vsync_clock));
73 } else {
74 return static_cast<std::unique_ptr<VsyncWaiter>>(
75 std::make_unique<VsyncWaiterFallback>(task_runners, true));
76 }
77 };
80 task_runners,
81 vsync_clock,
82 create_vsync_waiter,
85 shell.GetIsGpuDisabledSyncSwitch()
86 );
87}
std::function< std::unique_ptr< VsyncWaiter >()> CreateVsyncWaiter
The documentation for this class was generated from the following files: