mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Although we do have a save before this SkAutoCanvasRestore so we can theoretically send in doSave = false, it's safer to set doSave to true to prevent future breakage. As discussed with mtklein@google.com and reed@google.com, saving canvas is very cheap in Skia so this should have no performance impact. Skia is also considering remove doSave argument from SkAutoCanvasRestore and always save the canvas.
Flow
Flow is a simple compositor based on Skia that the Flutter engine uses to cache recoded paint commands and pixels generated from those recordings. Flow runs on the GPU thread and uploads information to the GPU.