#include "ui/base/prediction/linear_resampling.h"
#include <algorithm>
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "base/strings/string_number_conversions.h"
#include "ui/base/ui_base_features.h"
namespace ui {
namespace {
constexpr auto kResampleMinDelta = …;
constexpr auto kResampleMaxPrediction = …;
constexpr auto kResampleLatency = …;
constexpr auto kResampleLatencyExperimental = …;
inline gfx::PointF lerp(const InputPredictor::InputData& a,
const InputPredictor::InputData& b,
base::TimeTicks sample_time) { … }
}
LinearResampling::LinearResampling() { … }
LinearResampling::~LinearResampling() { … }
const char* LinearResampling::GetName() const { … }
void LinearResampling::Reset() { … }
void LinearResampling::Update(const InputData& new_input) { … }
bool LinearResampling::HasPrediction() const { … }
std::unique_ptr<InputPredictor::InputData> LinearResampling::GeneratePrediction(
base::TimeTicks frame_time,
base::TimeDelta frame_interval) { … }
base::TimeDelta LinearResampling::TimeInterval() const { … }
base::TimeDelta LinearResampling::LatencyCalculator::GetResampleLatency(
base::TimeDelta frame_interval) { … }
base::TimeDelta LinearResampling::LatencyCalculator::CalculateLatency() { … }
}