mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
* Introduce `SkiaObject` an object that's backed by Skia C++ objects that need to be explicitly deleted. * Automatically delete `SkiaObject`s at the end of frame. * Make `SkPaint` a `SkiaObject`. Because `SkiaObject`s are deleted at the end of the frame, the object can be reused as many times as necessary within the frame. `SkPaint` in particular is a fairly expensive object. Reusing this object, for example, on `drawRRect` drops the canvas paint time by 30%.