mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Don't use GetTaskQueueId() in rasterizer as it breaks Fuchsia (flutter/engine#20983)
This commit is contained in:
parent
ef54c35abc
commit
5ad2cb4d55
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user