feat: cost-aware Flutter decoding and request-scoped Surface teardown - #63
Open
q760440238 wants to merge 13 commits into
Open
q760440238 wants to merge 13 commits into
q760440238 wants to merge 13 commits into
Conversation
added 12 commits
July 31, 2026 14:54
- decode animated WebP resources with GlideWebpDecoder - adapt reusable WebP frame buffers to PowerImage texture rendering - support network, file, Flutter asset, and native asset loaders - modernize the example for current Flutter and Android toolchains
Draw animated drawables directly to Flutter surfaces, coalesce stale frame invalidations, use hardware canvases when available, migrate textures to SurfaceProducer lifecycle handling, and decode Glide resources at their target size.
…o feature/android-animated-webp
|
YuQian seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #62.
Summary
decodeFit(contain,cover,exact) and configurable decode-size bucketswaitForPresentto teardown and scope release generations by engine + requestWrapbenchmark, native Glide baseline, 20 GIPHY WebPs, scripts, and raw resultsMeasured results
Huawei VOG-AL10, Android 10 / SDK 29.
The GPU field is a DVFS-frequency proxy only; this device kernel does not expose GPU utilization.
Rejected experiment
A short-loop decoded-frame-cache prototype increased CPU P50 from 125.670% to 137.177% (+9.16%, worse). It was removed from production code; the smoke data remains in the PR for auditability.
Validation
flutter test: 90 passedflutter test test/file_raw_bytes_cache_test.dart: 16 passed:power_image:testDebugUnitTest: passedreleaseAndRebuild100NativeSurfaces: 5/5 iterations passedflutter build apk --release: passedgit diff --check: cleanflutter analyze --no-fatal-warnings: no errors (existing warnings/info remain)Raw benchmark JSON and the PowerShell sampling harness are under
example/android/macrobenchmark/results/2026-08-04-VOG-AL10/andexample/tool/steady20_benchmark.ps1.