Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions shell/common/shell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,7 @@ void Shell::OnPlatformViewCreated(std::unique_ptr<Surface> surface) {
// signals the latch and the platform/raster thread follows with executing
// raster_task.
const bool should_post_raster_task =
!fml::TaskRunnerChecker::RunsOnTheSameThread(
task_runners_.GetRasterTaskRunner()->GetTaskQueueId(),
task_runners_.GetPlatformTaskRunner()->GetTaskQueueId());
!task_runners_.GetRasterTaskRunner()->RunsTasksOnCurrentThread();

// Note:
// This is a synchronous operation because certain platforms depend on
Expand Down Expand Up @@ -750,9 +748,7 @@ void Shell::OnPlatformViewDestroyed() {
// thread just signals the latch and the platform/raster thread follows with
// executing raster_task.
const bool should_post_raster_task =
!fml::TaskRunnerChecker::RunsOnTheSameThread(
task_runners_.GetRasterTaskRunner()->GetTaskQueueId(),
task_runners_.GetPlatformTaskRunner()->GetTaskQueueId());
!task_runners_.GetRasterTaskRunner()->RunsTasksOnCurrentThread();

// Note:
// This is a synchronous operation because certain platforms depend on
Expand Down