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.