From 9599aff86daffd89dae64fcbf1ab8d8b4c868690 Mon Sep 17 00:00:00 2001 From: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com> Date: Sat, 15 Oct 2022 01:12:34 +0800 Subject: [PATCH] Update comments that seem to contradict the code and may confuse the reader (flutter/engine#36556) --- engine/src/flutter/lib/ui/painting/picture.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/lib/ui/painting/picture.cc b/engine/src/flutter/lib/ui/painting/picture.cc index 32ad74fabe3..bac07384b32 100644 --- a/engine/src/flutter/lib/ui/painting/picture.cc +++ b/engine/src/flutter/lib/ui/painting/picture.cc @@ -155,8 +155,8 @@ Dart_Handle Picture::RasterizeToImage(const sk_sp& display_list, // We can't create an image on this task runner because we don't have a // graphics context. Even if we did, it would be slow anyway. Also, this - // thread owns the sole reference to the layer tree. So we flatten the layer - // tree into a picture and use that as the thread transport mechanism. + // thread owns the sole reference to the layer tree. So we do it in the + // raster thread. auto picture_bounds = SkISize::Make(width, height);