Skip to content

Commit 367c6db

Browse files
author
Emmanuel Garcia
authored
Don't use GetTaskQueueId() in rasterizer as it breaks Fuchsia (flutter#20983)
1 parent 841401d commit 367c6db

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

shell/common/shell.cc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)