Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 015b697

Browse files
committed
Remove surface texture gates and implicit defaults.
1 parent 004fc91 commit 015b697

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

testing/scenario_app/bin/utils/options.dart

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,6 @@ extension type const Options._(ArgResults _args) {
4646
);
4747
}
4848

49-
// Cannot use forceSurfaceProducerSurfaceTexture with Impeller+Vulkan.
50-
if (options.forceSurfaceProducerSurfaceTexture &&
51-
options.enableImpeller &&
52-
options.impellerBackend != 'opengles') {
53-
throw const FormatException(
54-
'Cannot use --force-surface-producer-surface-texture with '
55-
'--enable-impeller unless --impeller-backend="opengles" is used. See '
56-
'https://github.com/flutter/flutter/issues/143539 for details.',
57-
);
58-
}
59-
6049
return options;
6150
}
6251

@@ -322,13 +311,7 @@ extension type const Options._(ArgResults _args) {
322311
String? get outputContentsGolden => _args['output-contents-golden'] as String;
323312

324313
/// Whether to force the use of `SurfaceTexture` for `SurfaceProducer`.
325-
///
326-
/// Always returns `false` if `--enable-impeller` is `true` and
327-
/// `--impeller-backend` is not `opengles`.
328314
bool get forceSurfaceProducerSurfaceTexture {
329-
if (enableImpeller && impellerBackend != 'opengles') {
330-
return false;
331-
}
332315
return _args['force-surface-producer-surface-texture'] as bool;
333316
}
334317

0 commit comments

Comments
 (0)