@@ -709,17 +709,17 @@ void Shell::OnPlatformViewCreated(std::unique_ptr<Surface> surface) {
709709 //
710710 // This prevents false positives such as this method starts assuming that the
711711 // raster and platform queues have a given thread configuration, but then the
712- // configuration is changed by a task, and the asumption is not longer true.
712+ // configuration is changed by a task, and the assumption is no longer true.
713713 //
714- // This incorrect assumption can lead to dead lock .
714+ // This incorrect assumption can lead to deadlock .
715715 // See `should_post_raster_task` for more.
716716 rasterizer_->DisableThreadMergerIfNeeded ();
717717
718718 // The normal flow executed by this method is that the platform thread is
719719 // starting the sequence and waiting on the latch. Later the UI thread posts
720720 // raster_task to the raster thread which signals the latch. If the raster and
721721 // the platform threads are the same this results in a deadlock as the
722- // raster_task will never be posted to the plaform /raster thread that is
722+ // raster_task will never be posted to the platform /raster thread that is
723723 // blocked on a latch. To avoid the described deadlock, if the raster and the
724724 // platform threads are the same, should_post_raster_task will be false, and
725725 // then instead of posting a task to the raster thread, the ui thread just
@@ -818,18 +818,18 @@ void Shell::OnPlatformViewDestroyed() {
818818 //
819819 // This prevents false positives such as this method starts assuming that the
820820 // raster and platform queues have a given thread configuration, but then the
821- // configuration is changed by a task, and the asumption is not longer true.
821+ // configuration is changed by a task, and the assumption is no longer true.
822822 //
823- // This incorrect assumption can lead to dead lock .
823+ // This incorrect assumption can lead to deadlock .
824824 // See `should_post_raster_task` for more.
825825 rasterizer_->DisableThreadMergerIfNeeded ();
826826
827827 // The normal flow executed by this method is that the platform thread is
828828 // starting the sequence and waiting on the latch. Later the UI thread posts
829829 // raster_task to the raster thread triggers signaling the latch(on the IO
830830 // thread). If the raster and the platform threads are the same this results
831- // in a deadlock as the raster_task will never be posted to the plaform /raster
832- // thread that is blocked on a latch. To avoid the described deadlock, if the
831+ // in a deadlock as the raster_task will never be posted to platform /raster
832+ // thread that is blocked on a latch. To avoid the described deadlock, if the
833833 // raster and the platform threads are the same, should_post_raster_task will
834834 // be false, and then instead of posting a task to the raster thread, the ui
835835 // thread just signals the latch and the platform/raster thread follows with
0 commit comments