Update comments that seem to contradict the code and may confuse the reader (flutter/engine#36556)

This commit is contained in:
fzyzcjy 2022-10-15 01:12:34 +08:00 committed by GitHub
parent 03e35d0c66
commit 9599aff86d

View File

@ -155,8 +155,8 @@ Dart_Handle Picture::RasterizeToImage(const sk_sp<DisplayList>& 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);