When checking whether render buffer size has changed, apply the device scale factor used to convert points to pixels to ensure we're not needlessly re-allocating render buffer storage. Adds trace + debug log to make this easier to detect in future. Originally introduced in 2d530daeca438ca24562d290616c0aec5ab76b88, but rolled back in 0a6e415b60581ef7934032df20401da1fae9ea9f to test whether it was responsible for regressions to flutter_gallery_ios__transition_perf benchmarks: * average_frame_build_time_millis * missed_frame_build_budget_count Re-landed in d43d35347594c893687dec7402a525d83f57db10, and reverted in 459f722b86415da01386fe41f37bafa842f11ae8 after it appeared to regress the above two benchmarks. After recent changes to microtask execution order which fixed https://github.com/flutter/flutter/issues/9998, re-introducing this fix results in benchmark improvements to the above two benchmarks in local testing.
Flutter Engine
Flutter is a new way to build high-performance, cross-platform mobile apps. Flutter is optimized for today's, and tomorrow's, mobile devices. We are focused on low-latency input and high frame rates on Android and iOS.
The Flutter Engine is the runtime environment for hosting Flutter applications. Most developers will interact with Flutter via the Flutter Framework and APIs, which run inside the engine.
Flutter is an early-stage open-source project. We are still adding features. However, you can build demos and examples today. We hope you try it out and send us feedback.
-
For information about using Flutter to build apps, please see the getting started guide.
-
For information about contributing to the Flutter framework, please see the main Flutter repository.
-
For information about contributing code to the engine itself, please see CONTRIBUTING.md.
Community
Join us in our Gitter chat room or join our mailing list, flutter-dev@googlegroups.com.