Don't use GetTaskQueueId() in rasterizer as it breaks Fuchsia (flutter/engine#20983)

This commit is contained in:
Emmanuel Garcia 2020-09-03 16:40:01 -07:00 committed by GitHub
parent ef54c35abc
commit 5ad2cb4d55

View File

@ -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
@ -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