未验证 提交 367c6dbd 编写于 作者: E Emmanuel Garcia 提交者: GitHub

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

上级 841401db
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册