Home
last modified time | relevance | path

Searched refs:GetTaskRunner (Results 1 – 25 of 52) sorted by relevance

123

/third_party/flutter/engine/flutter/fml/
Dgpu_thread_merger_unittests.cc41 fml::TaskQueueId qid1 = loop1->GetTaskRunner()->GetTaskQueueId(); in TEST()
42 fml::TaskQueueId qid2 = loop2->GetTaskRunner()->GetTaskQueueId(); in TEST()
70 loop1->GetTaskRunner()->PostTask([&]() { latch1.Signal(); }); in TEST()
79 loop2->GetTaskRunner()->PostTask([&]() { latch2.Signal(); }); in TEST()
86 fml::TaskQueueId qid1 = loop1->GetTaskRunner()->GetTaskQueueId(); in TEST()
87 fml::TaskQueueId qid2 = loop2->GetTaskRunner()->GetTaskQueueId(); in TEST()
93 loop1->GetTaskRunner()->PostTask([&]() { in TEST()
99 loop2->GetTaskRunner()->PostTask([&]() { in TEST()
109 loop1->GetTaskRunner()->PostTask([&]() { in TEST()
115 loop2->GetTaskRunner()->PostTask([&]() { in TEST()
[all …]
Dmessage_loop_unittests.cc27 ASSERT_TRUE(fml::MessageLoop::GetCurrent().GetTaskRunner()); in TEST()
67 ASSERT_TRUE(loop.GetTaskRunner()); in TEST()
68 loop.GetTaskRunner()->PostTask([&terminated]() { in TEST()
89 loop.GetTaskRunner()->PostTask( in TEST()
119 loop.GetTaskRunner()->PostTaskForTime( in TEST()
145 runner = loop.GetTaskRunner(); in TEST()
147 ASSERT_TRUE(loop.GetTaskRunner()->RunsTasksOnCurrentThread()); in TEST()
161 loop.GetTaskRunner()->PostDelayedTask( in TEST()
183 loop.GetTaskRunner()->PostTaskForTime( in TEST()
207 loop.GetTaskRunner()->PostDelayedTask( in TEST()
[all …]
Dthread_unittests.cc11 ASSERT_TRUE(thread.GetTaskRunner()); in TEST()
16 ASSERT_TRUE(thread.GetTaskRunner()); in TEST()
23 thread.GetTaskRunner()->PostTask([&done]() { done = true; }); in TEST()
Dthread.cc33 runner = loop.GetTaskRunner(); in Thread()
45 fml::RefPtr<fml::TaskRunner> Thread::GetTaskRunner() const { in GetTaskRunner() function in fml::Thread
Dthread.h23 fml::RefPtr<fml::TaskRunner> GetTaskRunner() const;
Dmessage_loop.h31 fml::RefPtr<fml::TaskRunner> GetTaskRunner() const;
/third_party/flutter/engine/flutter/shell/platform/android/
Dandroid_shell_holder.cc46 thread_host_.ui_thread->GetTaskRunner()->PostTask(jni_exit_task); in AndroidShellHolder()
48 thread_host_.gpu_thread->GetTaskRunner()->PostTask(jni_exit_task); in AndroidShellHolder()
86 fml::MessageLoop::GetCurrent().GetTaskRunner(); in AndroidShellHolder()
88 auto single_task_runner = thread_host_.ui_thread->GetTaskRunner(); in AndroidShellHolder()
93 gpu_runner = thread_host_.gpu_thread->GetTaskRunner(); in AndroidShellHolder()
94 ui_runner = thread_host_.ui_thread->GetTaskRunner(); in AndroidShellHolder()
95 io_runner = thread_host_.io_thread->GetTaskRunner(); in AndroidShellHolder()
/third_party/flutter/engine/flutter/shell/platform/embedder/
Dembedder_thread_host.cc107 return fml::MessageLoop::GetCurrent().GetTaskRunner(); in GetCurrentThreadTaskRunner()
170 : thread_host.gpu_thread->GetTaskRunner(); in CreateEmbedderManagedThreadHost()
176 thread_host.ui_thread->GetTaskRunner(), // ui (always engine managed) in CreateEmbedderManagedThreadHost()
177 thread_host.io_thread->GetTaskRunner() // io (always engine managed) in CreateEmbedderManagedThreadHost()
222 thread_host.gpu_thread->GetTaskRunner(), // gpu in CreateEngineManagedThreadHost()
223 thread_host.ui_thread->GetTaskRunner(), // ui in CreateEngineManagedThreadHost()
224 thread_host.io_thread->GetTaskRunner() // io in CreateEngineManagedThreadHost()
/third_party/flutter/engine/flutter/shell/common/
Dshell_benchmarks.cc62 thread_host->platform_thread->GetTaskRunner(), in StartupAndShutdownShell()
63 thread_host->gpu_thread->GetTaskRunner(), in StartupAndShutdownShell()
64 thread_host->ui_thread->GetTaskRunner(), in StartupAndShutdownShell()
65 thread_host->io_thread->GetTaskRunner()); in StartupAndShutdownShell()
Dshell_unittests.cc69 TaskRunners task_runners("test", thread_host.platform_thread->GetTaskRunner(), in TEST_F()
70 thread_host.gpu_thread->GetTaskRunner(), in TEST_F()
71 thread_host.ui_thread->GetTaskRunner(), in TEST_F()
72 thread_host.io_thread->GetTaskRunner()); in TEST_F()
85 auto task_runner = thread_host.platform_thread->GetTaskRunner(); in TEST_F()
99 auto task_runner = fml::MessageLoop::GetCurrent().GetTaskRunner(); in TEST_F()
118 fml::MessageLoop::GetCurrent().GetTaskRunner(), in TEST_F()
119 thread_host.gpu_thread->GetTaskRunner(), in TEST_F()
120 thread_host.ui_thread->GetTaskRunner(), in TEST_F()
121 thread_host.io_thread->GetTaskRunner()); in TEST_F()
[all …]
Dshell_test.cc166 thread_host_->platform_thread->GetTaskRunner(), // platform in GetTaskRunnersForFixture()
167 thread_host_->gpu_thread->GetTaskRunner(), // gpu in GetTaskRunnersForFixture()
168 thread_host_->ui_thread->GetTaskRunner(), // ui in GetTaskRunnersForFixture()
169 thread_host_->io_thread->GetTaskRunner() // io in GetTaskRunnersForFixture()
/third_party/flutter/engine/flutter/testing/
Dthread_test.cc15 thread_task_runner_ = thread_->GetTaskRunner(); in SetUp()
18 current_task_runner_ = fml::MessageLoop::GetCurrent().GetTaskRunner(); in SetUp()
39 auto runner = thread->GetTaskRunner(); in CreateNewThread()
/third_party/cef/libcef/common/
Dtask_impl.cc14 CefTaskRunnerImpl::GetTaskRunner(threadId); in CefCurrentlyOn()
25 CefTaskRunnerImpl::GetTaskRunner(threadId); in CefPostTask()
39 CefTaskRunnerImpl::GetTaskRunner(threadId); in CefPostDelayedTask()
Dtask_runner_impl.cc33 CefTaskRunnerImpl::GetTaskRunner(threadId); in GetForThread()
50 scoped_refptr<base::SingleThreadTaskRunner> CefTaskRunnerImpl::GetTaskRunner( in GetTaskRunner() function in CefTaskRunnerImpl
135 GetTaskRunner(threadId); in BelongsToThread()
Dthread_impl.h29 CefRefPtr<CefTaskRunner> GetTaskRunner() override;
Dtask_runner_impl.h22 static scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner(
/third_party/flutter/engine/flutter/shell/platform/ohos/
Dohos_shell_holder.cc76 auto single_task_runner = thread_host_.ui_thread->GetTaskRunner(); in OhosShellHolder()
84 ui_runner = thread_host_.ui_thread->GetTaskRunner(); in OhosShellHolder()
87 gpu_runner = thread_host_.gpu_thread->GetTaskRunner(); in OhosShellHolder()
92 io_runner = thread_host_.io_thread->GetTaskRunner(); in OhosShellHolder()
/third_party/flutter/engine/flutter/lib/ui/painting/
Dimage_decoder_unittests.cc119 ImageDecoder decoder(std::move(runners), loop->GetTaskRunner(), in TEST_F()
138 ImageDecoder decoder(runners, loop->GetTaskRunner(), in TEST_F()
172 runners, loop->GetTaskRunner(), io_manager->GetWeakIOManager()); in TEST_F()
215 runners, loop->GetTaskRunner(), io_manager->GetWeakIOManager()); in TEST_F()
261 runners, loop->GetTaskRunner(), io_manager->GetWeakIOManager()); in TEST_F()
319 runners, loop->GetTaskRunner(), io_manager->GetWeakIOManager()); in TEST_F()
404 runners, loop->GetTaskRunner(), io_manager->GetWeakIOManager()); in TEST_F()
/third_party/flutter/engine/flutter/shell/platform/darwin/ios/framework/Source/
DFlutterEngine.mm311 fml::MessageLoop::GetCurrent().GetTaskRunner(), // platform
312 fml::MessageLoop::GetCurrent().GetTaskRunner(), // gpu
313 _threadHost.ui_thread->GetTaskRunner(), // ui
314 _threadHost.io_thread->GetTaskRunner() // io
324 fml::MessageLoop::GetCurrent().GetTaskRunner(), // platform
325 _threadHost.gpu_thread->GetTaskRunner(), // gpu
326 _threadHost.ui_thread->GetTaskRunner(), // ui
327 _threadHost.io_thread->GetTaskRunner() // io
/third_party/cef/tests/ceftests/
Dthread_unittest.cc41 thread_task_runner_ = thread_->GetTaskRunner(); in CreateTestThread()
84 EXPECT_TRUE(thread_task_runner_->IsSame(thread_->GetTaskRunner())); in AssertOwnerThread()
92 EXPECT_TRUE(thread_task_runner_->IsSame(thread_->GetTaskRunner())); in AssertTestThread()
/third_party/cef/libcef_dll/ctocpp/
Dthread_ctocpp.h36 CefRefPtr<CefTaskRunner> GetTaskRunner() override;
Dv8context_ctocpp.h37 CefRefPtr<CefTaskRunner> GetTaskRunner() override;
/third_party/cef/include/
Dcef_thread.h92 virtual CefRefPtr<CefTaskRunner> GetTaskRunner() = 0;
/third_party/flutter/engine/flutter/fml/synchronization/
Dcount_down_latch_unittests.cc24 auto decrement_latch_on_thread = [runner = thread.GetTaskRunner(), &latch, in TEST()
/third_party/flutter/engine/flutter/shell/testing/
Dtester_main.cc79 auto current_task_runner = fml::MessageLoop::GetCurrent().GetTaskRunner(); in RunTester()
158 .GetTaskRunner(), // the message loop to terminate in RunTester()

123