mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
When down-scaling images, decode encoded images into smaller images closer to the target size before finally down-scaling them to their target size. For very large images this can avoid inflating the image into its full size first before throwing it away. This can help to significantly reduce peak memory utilization. On a tangent, we could be even more efficient, if we'd interpret the cache(Width|Height) as sizing hints. I also opportunistically added warnings, I don't think a "caching" API should support scaling images up or changing their aspect ratio.
More efficient decoding for down-sampled Flutter images using cache(Width|Height) (flutter/engine#15372)
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%