Revert "Reland VelocityTracker update (again)" (#138863)

Reverts flutter/flutter#138843

This has broken the Mac_ios microbenchmarks_ios. Example failure:
https://ci.chromium.org/ui/p/flutter/builders/prod/Mac_ios%20microbenchmarks_ios/9339/overview
This commit is contained in:
Jackson Gardner
2023-11-21 19:17:46 -08:00
committed by GitHub
parent cf09a8a24f
commit b186c69684
7 changed files with 43 additions and 141 deletions

View File

@@ -425,9 +425,6 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
/// actual current wall-clock time.
Clock get clock;
@override
SamplingClock? get debugSamplingClock => _TestSamplingClock(clock);
/// Triggers a frame sequence (build/layout/paint/etc),
/// then flushes microtasks.
///
@@ -2152,18 +2149,6 @@ class TestViewConfiguration extends ViewConfiguration {
String toString() => 'TestViewConfiguration';
}
class _TestSamplingClock implements SamplingClock {
_TestSamplingClock(this._clock);
@override
DateTime now() => _clock.now();
@override
Stopwatch stopwatch() => _clock.stopwatch();
final Clock _clock;
}
const int _kPointerDecay = -2;
class _LiveTestPointerRecord {