-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Augment flutter screenshot with all supported screenshot types
#17478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Previously, the only hook into the rasterizer schreenshot code path was via FlutterDriver.screenshot. This adds the ability for the Flutter tool to hook into all three types of screenshots: 1. device (e.g. `adb shell screencap`) 2. Skia (capture spk) 3. Rasterizer (capture PNG via the engine)
goderbauer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| help: 'The type of screenshot to retrieve.', | ||
| allowed: const <String>[_kDeviceType, _kSkiaType, _kRasterizerType], | ||
| allowedHelp: const <String, String>{ | ||
| _kDeviceType: 'Delegate to the device\'s native screenshot capabilities.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Screenshot the entire screen currently being displayed (includes contents not rendered by Flutter)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* master: Add a golden image test for centered text (flutter#17517) Gallery a11y fix: give the categories and demos pages "route" scope (flutter#17516) Stop Gallery the logo to back-button cross fade shaking (flutter#17513) Correct a typo in InputDecorator, affects computeMinIntrinsicHeight() (flutter#17512) don't fail a test when there are issues deleting a temp dir (flutter#17498) Roll engine to 9ae10ef (flutter#17503) Roll engine to b856303 (flutter#17499) Rebase after package:isolate fixes. (flutter#17289) Add more unit tests for AOT snapshotting (flutter#17493) Update a TODO with issue number (flutter#17494) Fix backdrop demo margin for iPhone X (flutter#17480) Post libtxt/post iOS 11 fidelity fine tuning (flutter#17366) Add onChangeStart and onChangeEnd to slider. (flutter#17298) Use deprecated I/O constants (flutter#17491) Augment `flutter screenshot` with all supported screenshot types (flutter#17478) Roll engine to fade83c (flutter#17488) Fix handling of null body2 text style for chip and slider (flutter#17311) Roll engine to 37e20af (flutter#17481) Mark test as flaky (flutter#17486)
…tter#17478) Previously, the only hook into the rasterizer schreenshot code path was via FlutterDriver.screenshot. This adds the ability for the Flutter tool to hook into all three types of screenshots: 1. device (e.g. `adb shell screencap`) 2. Skia (capture spk) 3. Rasterizer (capture PNG via the engine)
Previously, the only hook into the rasterizer schreenshot code path
was via FlutterDriver.screenshot. This adds the ability for the
Flutter tool to hook into all three types of screenshots:
adb shell screencap)