mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
* Implement toGpuImage, a synchronous, GPU-resident version of Picture.toImage. This method kicks off asynchronous work on the raster task runner. If it fails to rasterize, it will synchronously throw later when the user attempts to draw to a canvas. This supports several use cases: - Quickly snapping off an expensive-to-rasterize image for reuse across multiple frames. - Applying multi-pass filters to a render target. This patch amends flutter_tester so that it can produce an image object, but that image will always be a grey and white four square checkerboard. Adds support for CanvasKit on Web, which basically already used this method for its Picture.toImage implementation. Throws an UnsupportedError for HTML on Web, since any implementation there would almost certainly be slower than drawPicture.
Description
Flutter makes it easy and fast to build beautiful apps for mobile and beyond
androidapp-frameworkcross-platformdartdart-platformdesktopflutterflutter-packagefuchsiaioslinux-desktopmacosmaterial-designmobilemobile-developmentskiawebweb-frameworkwindows
2.5 GiB
Languages
Dart
75%
C++
16.5%
Objective-C++
2.9%
Java
2.8%
Objective-C
0.7%
Other
1.9%