[web] Enable platform view benchmarks in Skwasm (#160186)
Skwasm has support for platform views already. Let's enable those benchmarks.
This commit is contained in:
parent
688dee4c61
commit
dd437c7a60
@ -36,8 +36,6 @@ import 'src/web/recorder.dart';
|
||||
|
||||
typedef RecorderFactory = Recorder Function();
|
||||
|
||||
const bool isSkwasm = bool.fromEnvironment('FLUTTER_WEB_USE_SKWASM');
|
||||
|
||||
/// List of all benchmarks that run in the devicelab.
|
||||
///
|
||||
/// When adding a new benchmark, add it to this map. Make sure that the name
|
||||
@ -69,12 +67,8 @@ final Map<String, RecorderFactory> benchmarks = <String, RecorderFactory>{
|
||||
BenchMouseRegionGridHover.benchmarkName: () => BenchMouseRegionGridHover(),
|
||||
BenchMouseRegionMixedGridHover.benchmarkName: () => BenchMouseRegionMixedGridHover(),
|
||||
BenchWrapBoxScroll.benchmarkName: () => BenchWrapBoxScroll(),
|
||||
if (!isSkwasm) ...<String, RecorderFactory>{
|
||||
// Platform views are not yet supported with Skwasm.
|
||||
// https://github.com/flutter/flutter/issues/126346
|
||||
BenchPlatformViewInfiniteScroll.benchmarkName: () => BenchPlatformViewInfiniteScroll.forward(),
|
||||
BenchPlatformViewInfiniteScroll.benchmarkNameBackward: () => BenchPlatformViewInfiniteScroll.backward(),
|
||||
},
|
||||
BenchPlatformViewInfiniteScroll.benchmarkName: () => BenchPlatformViewInfiniteScroll.forward(),
|
||||
BenchPlatformViewInfiniteScroll.benchmarkNameBackward: () => BenchPlatformViewInfiniteScroll.backward(),
|
||||
BenchMaterial3Components.benchmarkName: () => BenchMaterial3Components(),
|
||||
BenchMaterial3Semantics.benchmarkName: () => BenchMaterial3Semantics(),
|
||||
BenchMaterial3ScrollSemantics.benchmarkName: () => BenchMaterial3ScrollSemantics(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user