![]() Reverts: flutter/flutter#156549 Initiated by: christopherfujino Reason for reverting: https://github.com/flutter/flutter/issues/156606 Original PR Author: christopherfujino Reviewed By: {matanlurey} This change reverts the following previous change: I manually ran: ``` flutter update-packages --force-upgrade cd dev/tools && dart bin/generate_gradle_lockfiles.dart --no-gradle-generation --no-exclusion ``` Note this bumps the `google_mobile_ads` plugin, which caused https://github.com/flutter/flutter/issues/156474. I expect it to work this time after https://flutter-review.googlesource.com/c/recipes/+/60340 |
||
---|---|---|
.. | ||
android | ||
ios | ||
lib | ||
test_driver | ||
pubspec.yaml | ||
README.md |
external_textures
Tests external texture rendering between a native1 platform and Flutter.
Part of Flutter's API for plugins includes passing external textures, or textures
created outside of Flutter, to Flutter, typically using the Texture
widget. This is useful for plugins that render video, or for plugins that
interact with the camera.
For example:
Because external textures are created outside of Flutter, there is often subtle translation that needs to happen between the native platform and Flutter, which is hard to observe. These integration tests are designed to help catch these subtle translation issues.
How it works
- Each
lib/*_main.dart
file is a Flutter app instrumenting a test case. - There is a corresponding
test_driver/*_test.dart
that runs assertions.
To run the test cases locally, use flutter drive
2:
flutter drive lib/frame_rate_main.dart --driver test_driver/frame_rate_test.dart
Tip
On CI, the test cases are run within our device lab.
See
devicelab/lib/tasks/integration_tests.dart
and search forcreateExternalUiFrameRateIntegrationTest
.The actual tests are run by task runners: