This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -645,9 +645,7 @@ void Shell::OnPlatformViewCreated(std::unique_ptr<Surface> surface) {
645645 // signals the latch and the platform/raster thread follows with executing
646646 // raster_task.
647647 const bool should_post_raster_task =
648- !fml::TaskRunnerChecker::RunsOnTheSameThread (
649- task_runners_.GetRasterTaskRunner ()->GetTaskQueueId (),
650- task_runners_.GetPlatformTaskRunner ()->GetTaskQueueId ());
648+ !task_runners_.GetRasterTaskRunner ()->RunsTasksOnCurrentThread ();
651649
652650 // Note:
653651 // This is a synchronous operation because certain platforms depend on
@@ -750,9 +748,7 @@ void Shell::OnPlatformViewDestroyed() {
750748 // thread just signals the latch and the platform/raster thread follows with
751749 // executing raster_task.
752750 const bool should_post_raster_task =
753- !fml::TaskRunnerChecker::RunsOnTheSameThread (
754- task_runners_.GetRasterTaskRunner ()->GetTaskQueueId (),
755- task_runners_.GetPlatformTaskRunner ()->GetTaskQueueId ());
751+ !task_runners_.GetRasterTaskRunner ()->RunsTasksOnCurrentThread ();
756752
757753 // Note:
758754 // This is a synchronous operation because certain platforms depend on
You can’t perform that action at this time.
0 commit comments