Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit aa51ea2

Browse files
renyouEmmanuel Garcia
andauthored
Don't use GetTaskQueueId() in rasterizer as it breaks Fuchsia (#20983) (#21001)
Co-authored-by: Emmanuel Garcia <egarciad@google.com>
1 parent 3f05b52 commit aa51ea2

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)